Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-28 03:54:28

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('TOPDQM')
0004 
0005 ## imports of standard configurations
0006 #process.load('DQMOffline.Configuration.DQMOffline_cff')
0007 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0008 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0009 process.load('Configuration.StandardSequences.Services_cff')
0010 #process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0011 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0012 
0013 from Configuration.AlCa.GlobalTag import GlobalTag
0014 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T15', '')
0015 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0016 
0017 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring())
0018 process.source.skipEvents = cms.untracked.uint32(0)
0019 
0020 process.source.fileNames = ['root://cmsxrootd.fnal.gov//store/relval/CMSSW_14_2_0_pre3/RelValTTbar_14TeV/GEN-SIM-RECO/PU_140X_mcRun3_2024_realistic_v26_STD_2024_PU-v1/2590000/3c568c90-b6ff-43be-9b24-8b4e9d862185.root']
0021 
0022 ## number of events
0023 process.maxEvents = cms.untracked.PSet(
0024   input = cms.untracked.int32(-1)
0025 )
0026 
0027 process.load("Configuration.StandardSequences.MagneticField_cff")
0028 process.load("DQM.Physics.topElectronID_cff")
0029 process.load('Configuration/StandardSequences/Reconstruction_cff')
0030 
0031 
0032 ## output
0033 process.output = cms.OutputModule("PoolOutputModule",
0034   fileName       = cms.untracked.string('topDQM_production.root'),
0035   outputCommands = cms.untracked.vstring(
0036     'drop *_*_*_*',
0037     'keep *_*_*_TOPDQM',
0038     'drop *_TriggerResults_*_TOPDQM',
0039     'drop *_simpleEleId70cIso_*_TOPDQM',
0040   ),
0041   splitLevel     = cms.untracked.int32(0),
0042   dataset = cms.untracked.PSet(
0043     dataTier   = cms.untracked.string(''),
0044     filterName = cms.untracked.string('')
0045   )
0046 )
0047 
0048 ## load jet corrections
0049 process.load("JetMETCorrections.Configuration.JetCorrectors_cff")
0050 process.dqmAk4PFCHSL1FastL2L3Corrector = process.ak4PFCHSL1FastL2L3Corrector.clone()
0051 process.jetCorrectorsSeq =  cms.Sequence(process.jetCorrectorsTask)
0052 process.dqmAk4PFCHSL1FastL2L3CorrectorChain = cms.Sequence(process.dqmAk4PFCHSL1FastL2L3Corrector)
0053 
0054 ## check the event content
0055 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0056 
0057 ## configure message logger
0058 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0059 process.MessageLogger.cerr.threshold = 'INFO'
0060 process.MessageLogger.cerr.TopSingleLeptonDQM    = cms.untracked.PSet(limit = cms.untracked.int32(1))
0061 process.MessageLogger.cerr.TopDiLeptonOfflineDQM = cms.untracked.PSet(limit = cms.untracked.int32(1))
0062 process.MessageLogger.cerr.SingleTopTChannelLeptonDQM    = cms.untracked.PSet(limit = cms.untracked.int32(1))
0063 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0064 process.MEtoEDMConverter.deleteAfterCopy = cms.untracked.bool(False)  ## line added to avoid crash when changing run number
0065 
0066 #process.load("CommonTools.ParticleFlow.EITopPAG_cff")
0067 process.load("DQM.Physics.topSingleLeptonDQM_cfi")
0068 process.load("DQM.Physics.singleTopDQM_cfi")
0069 
0070 
0071 ## path definitions
0072 process.p      = cms.Path(
0073     
0074     #process.topSingleMuonLooseDQM      +
0075     #process.topSingleMuonMediumDQM     +
0076 #    process.EIsequence * 
0077     process.jetCorrectorsSeq * process.dqmAk4PFCHSL1FastL2L3CorrectorChain *
0078     process.topSingleMuonMediumDQM      +
0079     #process.topSingleElectronLooseDQM  +
0080     #process.ak4PFCHSL1FastL2L3CorrectorChain * 
0081     process.topSingleElectronMediumDQM  +
0082     #process.ak4PFCHSL1FastL2L3CorrectorChain * 
0083     process.singleTopMuonMediumDQM      +
0084     #process.ak4PFCHSL1FastL2L3CorrectorChain * 
0085     process.singleTopElectronMediumDQM
0086 
0087 )
0088 process.endjob = cms.Path(
0089     process.endOfProcess
0090 )
0091 process.fanout = cms.EndPath(
0092     process.output
0093 )
0094 
0095 ## schedule definition
0096 process.schedule = cms.Schedule(
0097     process.p,
0098     process.endjob,
0099     process.fanout
0100 )