Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:04

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 
0018 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring())
0019 process.source.skipEvents = cms.untracked.uint32(0)
0020 
0021 
0022 #process.source.fileNames = ['/store/relval/CMSSW_11_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/110X_mcRun4_realistic_v2_2026D49noPU-v1/20000/02837764-A8F6-214F-AEE2-BCAEAAD7952A.root']
0023 
0024 process.source.fileNames = ['/store/relval/CMSSW_11_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/110X_mcRun3_2021_realistic_v6-v1/20000/A8E66994-05C0-104A-A0F3-4D393C7E30C8.root']
0025 
0026 ## number of events
0027 process.maxEvents = cms.untracked.PSet(
0028   input = cms.untracked.int32(-1)
0029 )
0030 
0031 process.load("Configuration.StandardSequences.MagneticField_cff")
0032 process.load("DQM.Physics.topElectronID_cff")
0033 process.load('Configuration/StandardSequences/Reconstruction_cff')
0034 
0035 
0036 ## output
0037 process.output = cms.OutputModule("PoolOutputModule",
0038   fileName       = cms.untracked.string('topDQM_production.root'),
0039   outputCommands = cms.untracked.vstring(
0040     'drop *_*_*_*',
0041     'keep *_*_*_TOPDQM',
0042     'drop *_TriggerResults_*_TOPDQM',
0043     'drop *_simpleEleId70cIso_*_TOPDQM',
0044   ),
0045   splitLevel     = cms.untracked.int32(0),
0046   dataset = cms.untracked.PSet(
0047     dataTier   = cms.untracked.string(''),
0048     filterName = cms.untracked.string('')
0049   )
0050 )
0051 
0052 ## load jet corrections
0053 process.load("JetMETCorrections.Configuration.JetCorrectors_cff")
0054 process.dqmAk4PFCHSL1FastL2L3Corrector = process.ak4PFCHSL1FastL2L3Corrector.clone()
0055 process.jetCorrectorsSeq =  cms.Sequence(process.jetCorrectorsTask)
0056 process.dqmAk4PFCHSL1FastL2L3CorrectorChain = cms.Sequence(process.dqmAk4PFCHSL1FastL2L3Corrector)
0057 
0058 ## check the event content
0059 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0060 
0061 ## configure message logger
0062 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0063 process.MessageLogger.cerr.threshold = 'INFO'
0064 process.MessageLogger.cerr.TopSingleLeptonDQM    = cms.untracked.PSet(limit = cms.untracked.int32(1))
0065 process.MessageLogger.cerr.TopDiLeptonOfflineDQM = cms.untracked.PSet(limit = cms.untracked.int32(1))
0066 process.MessageLogger.cerr.SingleTopTChannelLeptonDQM    = cms.untracked.PSet(limit = cms.untracked.int32(1))
0067 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0068 process.MEtoEDMConverter.deleteAfterCopy = cms.untracked.bool(False)  ## line added to avoid crash when changing run number
0069 
0070 #process.load("CommonTools.ParticleFlow.EITopPAG_cff")
0071 process.load("DQM.Physics.topSingleLeptonDQM_cfi")
0072 process.load("DQM.Physics.singleTopDQM_cfi")
0073 
0074 
0075 ## path definitions
0076 process.p      = cms.Path(
0077     
0078     #process.topSingleMuonLooseDQM      +
0079     #process.topSingleMuonMediumDQM     +
0080 #    process.EIsequence * 
0081     process.jetCorrectorsSeq * process.dqmAk4PFCHSL1FastL2L3CorrectorChain *
0082     process.topSingleMuonMediumDQM     +
0083     #process.topSingleElectronLooseDQM  +
0084     #process.ak4PFCHSL1FastL2L3CorrectorChain * 
0085     process.topSingleElectronMediumDQM +
0086     #process.ak4PFCHSL1FastL2L3CorrectorChain * 
0087     process.singleTopMuonMediumDQM      +
0088     #process.ak4PFCHSL1FastL2L3CorrectorChain * 
0089     process.singleTopElectronMediumDQM
0090 
0091 )
0092 process.endjob = cms.Path(
0093     process.endOfProcess
0094 )
0095 process.fanout = cms.EndPath(
0096     process.output
0097 )
0098 
0099 ## schedule definition
0100 process.schedule = cms.Schedule(
0101     process.p,
0102     process.endjob,
0103     process.fanout
0104 )