1 import FWCore.ParameterSet.Config
as cms
9 from DQM.HcalTasks.DigiTask
import digiTask
10 from DQM.HcalTasks.DigiPhase1Task
import digiPhase1Task
11 from DQM.HcalTasks.RawTask
import rawTask
12 from DQM.HcalTasks.TPTask
import tpTask
13 from DQM.HcalTasks.RecHitTask
import recHitTask
16 digiTask.ptype = cms.untracked.int32(1)
17 digiPhase1Task.ptype = cms.untracked.int32(1)
18 tpTask.ptype = cms.untracked.int32(1)
19 recHitTask.ptype = cms.untracked.int32(1)
20 rawTask.ptype = cms.untracked.int32(1)
23 tpTask.tagEmul = cms.untracked.InputTag(
"valHcalTriggerPrimitiveDigis")
25 hcalOfflineSourceSequence = cms.Sequence(
31 _phase1_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copy()
32 _phase1_hcalOfflineSourceSequence.insert(0,digiPhase1Task)
34 from Configuration.Eras.Modifier_run2_HCAL_2017_cff
import run2_HCAL_2017
35 run2_HCAL_2017.toReplaceWith( hcalOfflineSourceSequence, _phase1_hcalOfflineSourceSequence )
37 from Configuration.Eras.Modifier_phase2_hcal_cff
import phase2_hcal
38 _phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([digiTask,tpTask,rawTask])
39 phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
40 phase2_hcal.toModify(digiPhase1Task,
41 tagHBHE = cms.untracked.InputTag(
"simHcalDigis",
"HBHEQIE11DigiCollection"),
42 tagHO = cms.untracked.InputTag(
"simHcalDigis"),
43 tagHF = cms.untracked.InputTag(
"simHcalDigis",
"HFQIE10DigiCollection")
46 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
47 (premix_stage2 & phase2_hcal).toModify(digiPhase1Task,
48 tagHBHE =
"DMHcalDigis:HBHEQIE11DigiCollection",
49 tagHO =
"DMHcalDigis",
50 tagHF =
"DMHcalDigis:HFQIE10DigiCollection"