CMS 3D CMS Logo

DigiTask.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
3 from DQM.HcalTasks.LEDCalibrationChannels import ledCalibrationChannels
4 
5 digiTask = DQMEDAnalyzer(
6  "DigiTask",
7 
8  # Externals
9  ledCalibrationChannels = ledCalibrationChannels,
10 
11  # standard parameters
12  name = cms.untracked.string("DigiTask"),
13  debug = cms.untracked.int32(0),
14  runkeyVal = cms.untracked.int32(0),
15  runkeyName = cms.untracked.string("pp_run"),
16  ptype = cms.untracked.int32(0),
17  mtype = cms.untracked.bool(True),
18  subsystem = cms.untracked.string("Hcal"),
19 
20  # tags
21  tagHBHE = cms.untracked.InputTag("hcalDigis"),
22  tagHO = cms.untracked.InputTag("hcalDigis"),
23  tagHF = cms.untracked.InputTag("hcalDigis"),
24 
25  # Cuts
26  cutSumQ_HBHE = cms.untracked.double(20),
27  cutSumQ_HO = cms.untracked.double(20),
28  cutSumQ_HF = cms.untracked.double(20),
29 
30  # ratio thresholds
31  thresh_unifh = cms.untracked.double(0.2),
32  thresh_led = cms.untracked.double(20),
33 
34  qie10InConditions = cms.untracked.bool(False),
35 
36  # Reference digi sizes
37  refDigiSize = cms.untracked.vuint32(10, 10, 10, 4), # HB, HE, HO, HF
38 
39 )
40 
41 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
42 run2_HF_2017.toModify(digiTask, qie10InConditions=True)
43 run2_HF_2017.toModify(digiTask, refDigiSize=[10, 10, 10, 3])
44 
45 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
46 run2_HCAL_2018.toModify(digiTask, qie10InConditions=True)
47 run2_HCAL_2018.toModify(digiTask, refDigiSize=[8, 8, 10, 3])