Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:54

0001 # tool for testing the automatic assembly of
0002 # DQM histogramming modules from the current MC HLT menu
0003 # (tests code in HLTriggerOffline/Egamma/python/EgammaHLTValidationUtils.py)
0004 
0005 #----------------------------------------------------------------------
0006 # parameters
0007 #----------------------------------------------------------------------
0008 
0009 # the (single) path to run the test for
0010 pathToTest = "HLT_Ele17_SW_TighterEleIdIsol_L1R_v3"
0011 
0012 
0013 #----------------------------------------------------------------------
0014 
0015 import FWCore.ParameterSet.Config as cms
0016 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0017 
0018 process = cms.Process("TEST")
0019 
0020 #----------------------------------------
0021 # input files
0022 #----------------------------------------
0023 process.source = cms.Source("PoolSource",
0024                             fileNames = cms.untracked.vstring(
0025 
0026                                 # /RelValWE/CMSSW_3_10_0_pre7-START310_V1-v1/GEN-SIM-DIGI-RAW-HLTDEBUG
0027                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0103/B4107759-45FD-DF11-AABA-00261894396F.root',
0028                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/F47D670D-E0FC-DF11-89F6-0026189438A7.root',
0029                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/C2469357-DDFC-DF11-AA08-001A92810AA6.root',
0030                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/B8E45D58-DDFC-DF11-8ABD-0018F3D095EC.root',
0031                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/B6F3C564-DEFC-DF11-A322-001A92971BA0.root',
0032                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/8CDB4CD6-DCFC-DF11-A680-001A92971B0E.root',
0033                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/5AAA1057-DDFC-DF11-87A7-0018F3D096DC.root',
0034                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/2C664B9A-E0FC-DF11-A106-0026189438C9.root',
0035                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0101/10B11E80-DFFC-DF11-8B52-002618943924.root',
0036                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0100/8CEAC399-D4FC-DF11-BFE2-00304867BFA8.root',
0037                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0100/3A8A7EAA-D4FC-DF11-91AB-001A92971B48.root',
0038                                 '/store/relval/CMSSW_3_10_0_pre7/RelValWE/GEN-SIM-DIGI-RAW-HLTDEBUG/START310_V1-v1/0100/06F9B0D3-D4FC-DF11-9B78-003048678FDE.root',
0039                                 )
0040                             )
0041 
0042 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0043 
0044 #----------------------------------------
0045 # add the modules we want to test
0046 # (producing the DQM histograms)
0047 #----------------------------------------
0048 
0049 import HLTriggerOffline.Egamma.EgammaHLTValidationUtils as EgammaHLTValidationUtils
0050 
0051 # a 'reference' process to take (and analyze) the HLT menu from
0052 refProcess = cms.Process("REF")
0053 
0054 refProcess.load("HLTrigger.Configuration.HLT_GRun_cff")
0055 process.dqmModule = EgammaHLTValidationUtils.EgammaDQMModuleMaker(refProcess, pathToTest,
0056                                                                    11, # type of generated particle
0057                                                                    1   # number of generated particles
0058                                                                    ).getResult()
0059 
0060 
0061 del refProcess
0062 
0063 process.dqmPath = cms.Path(
0064 
0065     # creates the sequence for requiring the number and type of generated particles
0066     EgammaHLTValidationUtils.makeGeneratedParticleAndFiducialVolumeFilter(process, 11, 1) *
0067     
0068     process.dqmModule)
0069 
0070 #----------------------------------------
0071 # E/gamma HLT specific DQM configuration
0072 #----------------------------------------
0073 
0074 process.post=DQMEDProducer("EmDQMPostProcessor",
0075                             subDir = cms.untracked.string("HLT/HLTEgammaValidation"),
0076                             dataSet = cms.untracked.string("unknown"),
0077     )
0078 
0079 #----------------------------------------
0080 # add DQM configuration
0081 #----------------------------------------
0082 process.load("DQMServices.Core.DQM_cfg")
0083 
0084 process.load("DQMServices.Components.DQMEnvironment_cfi")
0085 
0086 process.p = cms.EndPath(process.post + process.dqmSaver)
0087 
0088 # process.testW = cms.Path(process.egammaValidationSequence)
0089 
0090 process.DQMStore.verbose = 0
0091 process.DQM.collectorHost = ''
0092 process.dqmSaver.convention = 'Online'
0093 process.dqmSaver.saveByRun = 1
0094 process.dqmSaver.saveAtJobEnd = True
0095 
0096 #----------------------------------------