Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 # define global tag
0006 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0007 from Configuration.AlCa.GlobalTag import GlobalTag
0008 process.GlobalTag = GlobalTag(process.GlobalTag, '106X_dataRun2_v28', '')
0009 
0010 # minimum of logs
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True),
0017         threshold = cms.untracked.string('WARNING')
0018     )
0019 )
0020 
0021 # data source
0022 process.source = cms.Source("PoolSource",
0023   fileNames = cms.untracked.vstring("/store/data/Run2018D/EGamma/MINIAOD/12Nov2019_UL2018-v4/280000/FF9D0498-30CA-7241-A85C-6F4F272A7A16.root")
0024 )
0025 
0026 #process.maxEvents = cms.untracked.PSet(
0027 #  input = cms.untracked.int32(1000)
0028 #)
0029 
0030 # filter
0031 process.load("CondTools.RunInfo.xangleBetaStarFilter_cfi")
0032 process.xangleBetaStarFilter.xangle_min = 150
0033 process.xangleBetaStarFilter.xangle_max = 170
0034 
0035 # plotters
0036 process.plotterBefore = cms.EDAnalyzer("CTPPSLHCInfoPlotter",
0037   lhcInfoLabel = cms.string(""),
0038   outputFile = cms.string("output_before_filter.root")
0039 )
0040 
0041 process.plotterAfter = cms.EDAnalyzer("CTPPSLHCInfoPlotter",
0042   lhcInfoLabel = cms.string(""),
0043   outputFile = cms.string("output_after_filter.root")
0044 )
0045 
0046 # path
0047 process.p = cms.Path(
0048     process.plotterBefore
0049     * process.xangleBetaStarFilter
0050     * process.plotterAfter
0051 )