Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:39:14

0001 import FWCore.ParameterSet.Config as cms
0002 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarPileUpGENSIMRECO
0003 
0004 process = cms.Process("Demo")
0005 
0006 ###################################################################
0007 # Messages
0008 ###################################################################
0009 process.load("FWCore.MessageService.MessageLogger_cfi")
0010 MessageLogger = cms.Service("MessageLogger",
0011                             cout = cms.untracked.PSet(
0012                                 threshold = cms.untracked.string('WARNING')
0013                             ),
0014                             destinations = cms.untracked.vstring('cout')
0015                             )
0016 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0017 
0018 ###################################################################
0019 # Conditions
0020 ###################################################################
0021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0022 from Configuration.AlCa.GlobalTag import GlobalTag
0023 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')
0024 
0025 ###################################################################
0026 # Event source
0027 ###################################################################
0028 process.source = cms.Source("PoolSource",
0029                             fileNames = filesRelValTTbarPileUpGENSIMRECO)
0030 
0031 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0032 
0033 ###################################################################
0034 # Analyzer
0035 ###################################################################
0036 process.LhcTrackAnalyzer = cms.EDAnalyzer("LhcTrackAnalyzer",
0037                                           TrackCollectionTag = cms.InputTag("generalTracks"),
0038                                           #TrackCollectionTag = cms.InputTag("ALCARECOTkAlMinBias"),
0039                                           PVtxCollectionTag = cms.InputTag("offlinePrimaryVertices"),
0040                                           acceptedBX        = cms.vuint32(), # (51,2724)
0041                                           OutputFileName    = cms.string("AnalyzerOutput_1.root"),
0042                                           Debug = cms.bool(False)
0043                                           )
0044 
0045 process.p = cms.Path(process.LhcTrackAnalyzer)