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 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 process = cms.Process("emdqm")
0005 
0006 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0007 process.GlobalTag.globaltag = 'START72_V1::All'
0008 
0009 process.load("FWCore.MessageService.MessageLogger_cfi")
0010 # suppress printout of error messages on every event when a collection is missing in the event
0011 process.MessageLogger.cerr.EmDQMInvalidRefs = cms.untracked.PSet(limit = cms.untracked.int32(5))
0012 
0013 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0014 #process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2) )
0015 
0016 process.source = cms.Source("PoolSource",
0017     fileNames = cms.untracked.vstring(
0018         'file:../../../HLTrigger/Configuration/test/outputAForPP.root',
0019 #        '/store/relval/CMSSW_7_1_0_pre7/RelValH130GGgluonfusion_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PRE_LS171_V7-v1/00000/C87CDC3A-B1D0-E311-8890-02163E00E6DE.root',
0020 #        '/store/relval/CMSSW_7_1_0_pre7/RelValWE_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PRE_LS171_V7-v1/00000/665BE840-B4D0-E311-BBA6-02163E00E694.root',
0021 #        '/store/relval/CMSSW_7_1_0_pre7/RelValPhotonJets_Pt_10_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PRE_LS171_V7-v1/00000/C0AB31B9-A2D0-E311-A15D-02163E00E725.root',
0022     )
0023 )
0024 
0025 process.load("HLTriggerOffline.Egamma.EgammaValidationAutoConf_cff")
0026 
0027 # set output to verbose = all
0028 process.emdqm.verbosity = cms.untracked.uint32(3)
0029 # switch to select between only MC matched histograms or all histograms
0030 process.emdqm.mcMatchedOnly = cms.untracked.bool(False)
0031 # switch for phi plots
0032 process.emdqm.noPhiPlots = cms.untracked.bool(False)
0033 # switch for 2D isolation plots
0034 process.emdqm.noIsolationPlots = cms.untracked.bool(False)
0035 # which trigger object and process should we run on?
0036 #process.emdqm.triggerobject = cms.InputTag("hltTriggerSummaryRAW","","HLTTEST")
0037 
0038 process.p = cms.Path(
0039                      # require generated particles in fiducial volume
0040                      process.egammaSelectors *     
0041                      process.egammaValidationSequence
0042                     )
0043 
0044 #----------------------------------------
0045 process.post=DQMEDHarvester("EmDQMPostProcessor",
0046                             subDir = cms.untracked.string("HLT/HLTEgammaValidation"),
0047                             dataSet = cms.untracked.string("unknown"),
0048                             noPhiPlots = cms.untracked.bool(False),
0049                             ignoreEmpty = cms.untracked.bool(False),
0050                            )
0051 
0052 #process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
0053 
0054 #----------------------------------------
0055 # DQM service
0056 #----------------------------------------
0057 process.load("DQMServices.Core.DQM_cfg")
0058 process.load("DQMServices.Components.DQMEnvironment_cfi")
0059 process.dqmSaver.convention = 'Offline'
0060 process.dqmSaver.workflow = '/RelVal/HLTriggerOffline/Egamma'
0061 process.dqmSaver.saveByRun = cms.untracked.int32(-1)
0062 process.dqmSaver.saveAtJobEnd = cms.untracked.bool(True)
0063 
0064 process.ppost = cms.EndPath(process.post+process.dqmSaver)
0065 
0066 #----------------------------------------
0067 # End of original testEmDQM_cfg.py
0068 #----------------------------------------