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/Reconstruction_cff')
0010 process.ak4JetTracksAssociatorAtVertex.jets = cms.InputTag("ak4PFJets")
0011 ## --------------------------------------------------------------------
0012 ## Frontier Conditions: (adjust accordingly!!!)
0013 ##
0014 ## For CMSSW_3_8_X MC use             ---> 'START38_V12::All'
0015 ## For Data (38X re-processing) use   ---> 'GR_R_38X_V13::All'
0016 ## For Data (38X prompt reco) use     ---> 'GR10_P_V10::All'
0017 ##
0018 ## For more details have a look at: WGuideFrontierConditions
0019 ## --------------------------------------------------------------------
0020 #process.GlobalTag.globaltag = 'START53_V14::All'
0021 #process.GlobalTag.globaltag = 'GR_R_42_V14::All' 
0022 process.GlobalTag.globaltag = 'START61_V8::All'
0023 #process.GlobalTag.globaltag = 'GR_R_42_V14::All' 
0024 ##process.GlobalTag.globaltag   = 'START42_V12::All'
0025 
0026 ## input file(s) for testing
0027 process.source = cms.Source("PoolSource",
0028     fileNames = cms.untracked.vstring(
0029      #'/store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-RECO/START42_V12-v2/0062/728877FF-717B-E011-9989-00261894395B.root'
0030      #'/store/data/Run2011A/SingleMu/AOD/PromptReco-v4/000/165/999/A2B8A207-838B-E011-B1F5-000423D94908.root'
0031 #    '/store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-RECO/MC_42_V12-v2/0062/60815BF5-387B-E011-805B-0018F3D0970C.root'
0032 #   "/store/relval/CMSSW_5_3_6/RelValTTbar/GEN-SIM-RECO/PU_START53_V14-v1/0003/3E3EDF4A-E92C-E211-A1BF-003048D2BD66.root",
0033     "/store/relval/CMSSW_6_2_0_pre1-START61_V8/RelValTTbarLepton/GEN-SIM-RECO/v1/00000/C6CC53CC-6E6D-E211-8EAB-003048D3756A.root",
0034      )
0035 )
0036 
0037 ## number of events
0038 process.maxEvents = cms.untracked.PSet(
0039   input = cms.untracked.int32(100)
0040 )
0041 
0042 ## apply VBTF electronID (needed for the current implementation
0043 ## of topSingleElectronDQMLoose and topSingleElectronDQMMedium)
0044 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0045 process.load("Configuration.StandardSequences.MagneticField_cff")
0046 process.load("DQM.Physics.topElectronID_cff")
0047 
0048 #process.topSingleMuonLooseDQM.setup.triggerExtras.src  = cms.InputTag("TriggerResults","","REDIGI42X")
0049 #process.topSingleMuonLooseDQM.preselection.trigger.src = cms.InputTag("TriggerResults","","REDIGI42X")
0050 #process.topSingleMuonLooseDQM.preselection.trigger.select  = cms.vstring(['HLT_Mu15_v2'])
0051 #process.topSingleMuonMediumDQM.preselection.trigger.select = cms.vstring(['HLT_Mu15_v2'])
0052 
0053 ## output
0054 process.output = cms.OutputModule("PoolOutputModule",
0055   fileName       = cms.untracked.string('topDQM_production.root'),
0056   outputCommands = cms.untracked.vstring(
0057     'drop *_*_*_*',
0058     'keep *_*_*_TOPDQM',
0059     'drop *_TriggerResults_*_TOPDQM',
0060     'drop *_simpleEleId70cIso_*_TOPDQM',
0061     'drop *_ak4JetTracksAssociatorAtVertex_*_TOPDQM',
0062     'drop *_btagging_*_TOPDQM',
0063     'drop *_jetProbabilityBJetTags_*_TOPDQM',
0064     'drop *_ghostTrackBJetTags_*_TOPDQM',
0065     'drop *_combinedSecondaryVertexMVABJetTags_*_TOPDQM',
0066     'drop *_trackCountingHighPurBJetTags_*_TOPDQM',
0067     'drop *_trackCountingHighEffBJetTags_*_TOPDQM',
0068     'drop *_simpleSecondaryVertexHighEffBJetTags_*_TOPDQM',
0069     'drop *_simpleSecondaryVertexHighPurBJetTags_*_TOPDQM',
0070     'drop *_softElectronByIP3dBJetTags_*_TOPDQM',
0071     'drop *_softElectronByPtBJetTags_*_TOPDQM',
0072     'drop *_softMuonBJetTags_*_TOPDQM',
0073     'drop *_softMuonByIP3dBJetTags_*_TOPDQM',
0074     'drop *_impactParameterTagInfos_*_TOPDQM',
0075     'drop *_combinedSecondaryVertexBJetTags_*_TOPDQM',
0076     'drop *_softMuonByPtBJetTags_*_TOPDQM',
0077     'drop *_ghostTrackVertexTagInfos_*_TOPDQM',
0078     'drop *_secondaryVertexTagInfos_*_TOPDQM',
0079     'drop *_softElectronCands_*_TOPDQM',
0080     'drop *_softMuonTagInfos_*_TOPDQM',
0081     'drop *_softElectronTagInfos_*_TOPDQM',
0082   ),
0083   splitLevel     = cms.untracked.int32(0),
0084   dataset = cms.untracked.PSet(
0085     dataTier   = cms.untracked.string(''),
0086     filterName = cms.untracked.string('')
0087   )
0088 )
0089 
0090 ## load jet corrections
0091 process.load("JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff")
0092 #process.prefer("ak4CaloL2L3")
0093 process.prefer("ak4PFL2L3")
0094 
0095 ## check the event content
0096 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0097 
0098 ## configure message logger
0099 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0100 process.MessageLogger.cerr.threshold = 'INFO'
0101 #
0102 #process.MessageLogger.cerr.TopSingleLeptonDQM    = cms.untracked.PSet(limit = cms.untracked.int32(1))
0103 #
0104 #process.MessageLogger.cerr.TopDiLeptonOfflineDQM = cms.untracked.PSet(limit = cms.untracked.int32(1))
0105 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0106 
0107 
0108 ## path definitions
0109 process.p      = cms.Path(
0110    #process.content *
0111     process.ak4JetTracksAssociatorAtVertex *
0112     process.btagging *
0113     process.simpleEleId70cIso          *
0114 #    process.topDiLeptonOfflineDQM      +
0115 #    process.topSingleLeptonDQM         +
0116 #    process.topSingleMuonLooseDQM_PU      +    
0117     process.topSingleMuonMediumDQM_PU   #  +
0118 #    process.topSingleElectronLooseDQM_PU  +    
0119 #    process.topSingleElectronMediumDQM_PU
0120 )
0121 process.endjob = cms.Path(
0122     process.endOfProcess
0123 )
0124 process.fanout = cms.EndPath(
0125     process.output
0126 )
0127 
0128 ## schedule definition
0129 process.schedule = cms.Schedule(
0130     process.p,
0131     process.endjob,
0132     process.fanout
0133 )
0134 ##process.GlobalTag.globaltag   = 'START42_V12::All'
0135 
0136 ## input file(s) for testing
0137 process.source = cms.Source("PoolSource",
0138     fileNames = cms.untracked.vstring(
0139      #'/store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-RECO/START42_V12-v2/0062/728877FF-717B-E011-9989-00261894395B.root'
0140      #'/store/data/Run2011A/SingleMu/AOD/PromptReco-v4/000/165/999/A2B8A207-838B-E011-B1F5-000423D94908.root'
0141 #    '/store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-RECO/MC_42_V12-v2/0062/60815BF5-387B-E011-805B-0018F3D0970C.root'
0142 #   "/store/relval/CMSSW_5_3_6/RelValTTbar/GEN-SIM-RECO/PU_START53_V14-v1/0003/3E3EDF4A-E92C-E211-A1BF-003048D2BD66.root",
0143     "/store/relval/CMSSW_6_2_0_pre1-START61_V8/RelValTTbarLepton/GEN-SIM-RECO/v1/00000/C6CC53CC-6E6D-E211-8EAB-003048D3756A.root",
0144      )
0145 )
0146 
0147 ## number of events
0148 process.maxEvents = cms.untracked.PSet(
0149   input = cms.untracked.int32(100)
0150 )
0151 
0152 ## apply VBTF electronID (needed for the current implementation
0153 ## of topSingleElectronDQMLoose and topSingleElectronDQMMedium)
0154 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0155 process.load("Configuration.StandardSequences.MagneticField_cff")
0156 process.load("DQM.Physics.topElectronID_cff")
0157 
0158 #process.topSingleMuonLooseDQM.setup.triggerExtras.src  = cms.InputTag("TriggerResults","","REDIGI42X")
0159 #process.topSingleMuonLooseDQM.preselection.trigger.src = cms.InputTag("TriggerResults","","REDIGI42X")
0160 #process.topSingleMuonLooseDQM.preselection.trigger.select  = cms.vstring(['HLT_Mu15_v2'])
0161 #process.topSingleMuonMediumDQM.preselection.trigger.select = cms.vstring(['HLT_Mu15_v2'])
0162 
0163 ## output
0164 process.output = cms.OutputModule("PoolOutputModule",
0165   fileName       = cms.untracked.string('topDQM_production.root'),
0166   outputCommands = cms.untracked.vstring(
0167     'drop *_*_*_*',
0168     'keep *_*_*_TOPDQM',
0169     'drop *_TriggerResults_*_TOPDQM',
0170     'drop *_simpleEleId70cIso_*_TOPDQM',
0171     'drop *_ak4JetTracksAssociatorAtVertex_*_TOPDQM',
0172     'drop *_btagging_*_TOPDQM',
0173     'drop *_jetProbabilityBJetTags_*_TOPDQM',
0174     'drop *_ghostTrackBJetTags_*_TOPDQM',
0175     'drop *_combinedSecondaryVertexMVABJetTags_*_TOPDQM',
0176     'drop *_trackCountingHighPurBJetTags_*_TOPDQM',
0177     'drop *_trackCountingHighEffBJetTags_*_TOPDQM',
0178     'drop *_simpleSecondaryVertexHighEffBJetTags_*_TOPDQM',
0179     'drop *_simpleSecondaryVertexHighPurBJetTags_*_TOPDQM',
0180     'drop *_softElectronByIP3dBJetTags_*_TOPDQM',
0181     'drop *_softElectronByPtBJetTags_*_TOPDQM',
0182     'drop *_softMuonBJetTags_*_TOPDQM',
0183     'drop *_softMuonByIP3dBJetTags_*_TOPDQM',
0184     'drop *_impactParameterTagInfos_*_TOPDQM',
0185     'drop *_combinedSecondaryVertexBJetTags_*_TOPDQM',
0186     'drop *_softMuonByPtBJetTags_*_TOPDQM',
0187     'drop *_ghostTrackVertexTagInfos_*_TOPDQM',
0188     'drop *_secondaryVertexTagInfos_*_TOPDQM',
0189     'drop *_softElectronCands_*_TOPDQM',
0190     'drop *_softMuonTagInfos_*_TOPDQM',
0191     'drop *_softElectronTagInfos_*_TOPDQM',
0192   ),
0193   splitLevel     = cms.untracked.int32(0),
0194   dataset = cms.untracked.PSet(
0195     dataTier   = cms.untracked.string(''),
0196     filterName = cms.untracked.string('')
0197   )
0198 )
0199 
0200 ## load jet corrections
0201 process.load("JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff")
0202 #process.prefer("ak4CaloL2L3")
0203 process.prefer("ak4PFL2L3")
0204 
0205 ## check the event content
0206 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0207 
0208 ## configure message logger
0209 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0210 process.MessageLogger.cerr.threshold = 'INFO'
0211 process.MessageLogger.cerr.TopSingleLeptonDQM    = cms.untracked.PSet(limit = cms.untracked.int32(1))
0212 process.MessageLogger.cerr.TopDiLeptonOfflineDQM = cms.untracked.PSet(limit = cms.untracked.int32(1))
0213 
0214 
0215 
0216 ## path definitions
0217 process.p      = cms.Path(
0218    #process.content *
0219     process.ak4JetTracksAssociatorAtVertex *
0220     process.btagging *
0221     process.simpleEleId70cIso          *
0222 #    process.topDiLeptonOfflineDQM      +
0223 #    process.topSingleLeptonDQM         +
0224 #    process.topSingleMuonLooseDQM_PU      +    
0225     process.topSingleMuonMediumDQM_PU   +
0226 #    process.topSingleElectronLooseDQM_PU  +    
0227     process.topSingleElectronMediumDQM_PU
0228 )
0229 process.endjob = cms.Path(
0230     process.endOfProcess
0231 )
0232 process.fanout = cms.EndPath(
0233     process.output
0234 )
0235 
0236 ## schedule definition
0237 process.schedule = cms.Schedule(
0238     process.p,
0239     process.endjob,
0240     process.fanout
0241 )