CMS 3D CMS Logo

HcalSimHitsValidation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 HcalSimHitsAnalyser = DQMEDAnalyzer('HcalSimHitsValidation',
5  outputFile = cms.untracked.string(''),
6  hf1 = cms.double(1/0.383),
7  hf2 = cms.double(1/0.368)
8 )
9 
10 from Configuration.Eras.Modifier_fastSim_cff import fastSim
11 fastSim.toModify( HcalSimHitsAnalyser, ModuleLabel = cms.untracked.string("fastSimProducer") )
12 
13 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
14 (run2_HCAL_2017 & ~fastSim).toModify( HcalSimHitsAnalyser, TestNumber = cms.untracked.bool(True) )
15 
16 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
17 phase2_hcal.toModify( HcalSimHitsAnalyser, EEHitCollection = cms.untracked.string("") )
18 
19 # post-LS1 switch for sampling factors
20 from Configuration.Eras.Modifier_run2_common_cff import run2_common
21 run2_common.toModify( HcalSimHitsAnalyser,
22  hf1 = cms.double(1/0.67),
23  hf2 = cms.double(1/0.67)
24 )
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1