Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('B2GDQM')
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 
0010 ## --------------------------------------------------------------------
0011 ## Frontier Conditions: (adjust accordingly!!!)
0012 ##
0013 ## For CMSSW_3_8_X MC use             ---> 'START38_V12::All'
0014 ## For Data (38X re-processing) use   ---> 'GR_R_38X_V13::All'
0015 ## For Data (38X prompt reco) use     ---> 'GR10_P_V10::All'
0016 ##
0017 ## For more details have a look at: WGuideFrontierConditions
0018 ## --------------------------------------------------------------------
0019 ##process.GlobalTag.globaltag = 'START38_V12::All'
0020 process.GlobalTag.globaltag = 'START61_V1::All' 
0021 #process.GlobalTag.globaltag   = 'START52_V4A::All'
0022 
0023 ## input file(s) for testing
0024 process.source = cms.Source("PoolSource",
0025     fileNames = cms.untracked.vstring(
0026      #'/store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-RECO/START42_V12-v2/0062/728877FF-717B-E011-9989-00261894395B.root'
0027      #'/store/data/Run2011A/SingleMu/AOD/PromptReco-v4/000/165/999/A2B8A207-838B-E011-B1F5-000423D94908.root'
0028 #    '/store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-RECO/MC_42_V12-v2/0062/60815BF5-387B-E011-805B-0018F3D0970C.root'
0029 #   '/store/relval/CMSSW_5_2_0/RelValTTbar/GEN-SIM-RECO/START52_V4A-v1/0248/14F70731-1A69-E111-B218-0018F3D096EA.root'
0030      "/store/relval/CMSSW_6_1_0_pre3/RelValTTbar/GEN-SIM-RECO/PU_START61_V1-v1/0005/F6E9C904-720F-E211-B55F-003048D373F6.root"
0031      )
0032 )
0033 
0034 ## number of events
0035 process.maxEvents = cms.untracked.PSet(
0036 #  input = cms.untracked.int32(500)
0037   input = cms.untracked.int32(-1)
0038 )
0039 
0040 ## apply VBTF electronID (needed for the current implementation
0041 ## of b2gSingleElectronDQMLoose and b2gSingleElectronDQMMedium)
0042 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0043 process.load("Configuration.StandardSequences.MagneticField_cff")
0044 process.load("DQM.Physics.topElectronID_cff")
0045 
0046 #process.b2gSingleMuonLooseTriggerDQM.setup.triggerExtras.src  = cms.InputTag("TriggerResults","","REDIGI42X")
0047 #process.b2gSingleMuonLooseTriggerDQM.preselection.trigger.src = cms.InputTag("TriggerResults","","REDIGI42X")
0048 #process.b2gSingleMuonLooseTriggerDQM.preselection.trigger.select  = cms.vstring(['HLT_Mu15_v2'])
0049 #process.b2gSingleMuonMediumTriggerDQM.preselection.trigger.select = cms.vstring(['HLT_Mu15_v2'])
0050 
0051 ## output
0052 process.output = cms.OutputModule("PoolOutputModule",
0053   fileName       = cms.untracked.string('b2gDQM_production.root'),
0054   outputCommands = cms.untracked.vstring(
0055     'drop *_*_*_*',
0056     'keep *_*_*_B2GDQM',
0057     'drop *_TriggerResults_*_B2GDQM',
0058     'drop *_simpleEleId70cIso_*_B2GDQM',
0059   ),
0060   splitLevel     = cms.untracked.int32(0),
0061   dataset = cms.untracked.PSet(
0062     dataTier   = cms.untracked.string(''),
0063     filterName = cms.untracked.string('')
0064   )
0065 )
0066 
0067 ## load jet corrections
0068 process.load("JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff")
0069 process.prefer("ak4PFL2L3")
0070 
0071 ## check the event content
0072 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0073 
0074 ## configure message logger
0075 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0076 process.MessageLogger.cerr.threshold = 'INFO'
0077 process.MessageLogger.cerr.B2GSingleLeptonTriggerDQM    = cms.untracked.PSet(limit = cms.untracked.int32(1))
0078 
0079 
0080 
0081 process.b2gSingleMuonMediumTriggerDQM.preselection.trigger.select = cms.vstring(['HLT_IsoMu17_eta2p1_TriCentralPFNoPUJet50_40_30_v1'])
0082 process.b2gSingleElectronMediumTriggerDQM.preselection.trigger.select = cms.vstring(['HLT_Ele25_CaloIdVT_TrkIdT_TriCentralPFNoPUJet50_40_30_v5'])
0083 #process.SingleB2GSingleElectronTriggerDQM.preselection.trigger.select = cms.vstring(['HLT_Ele25_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_CentralPFNoPUJet30_BTagIPIter_v6'])
0084 process.SingleB2GSingleMuonTriggerDQM.preselection.trigger.select = cms.vstring(['HLT_IsoMu17_eta2p1_CentralPFNoPUJet30_BTagIPIter_v1'])
0085 #
0086 ## add it to the p path below
0087 
0088 ## path definitions
0089 process.p      = cms.Path(
0090    #process.content *
0091     process.simpleEleId70cIso          *
0092     process.b2gSingleMuonMediumTriggerDQM     +
0093     process.b2gSingleElectronMediumTriggerDQM +
0094     process.SingleB2GSingleMuonTriggerDQM+
0095     process.SingleB2GSingleElectronTriggerDQM+
0096     process.DiMuonMu17_Mu8 +
0097     process.DiMuonMu17_TkMu8 +
0098     process.DiElectronDQM +
0099     process.ElecMuonMu17Ele8 +
0100     process.ElecMuonMu8Ele17
0101 )
0102 process.endjob = cms.Path(
0103     process.endOfProcess
0104 )
0105 process.fanout = cms.EndPath(
0106     process.output
0107 )
0108 
0109 ## schedule definition
0110 process.schedule = cms.Schedule(
0111     process.p,
0112     process.endjob,
0113     process.fanout
0114 )