1 import FWCore.ParameterSet.Config
as cms
9 from DQM.HcalTasks.DigiTask
import digiTask
10 from DQM.HcalTasks.RawTask
import rawTask
11 from DQM.HcalTasks.TPTask
import tpTask
12 from DQM.HcalTasks.RecHitTask
import recHitTask, recHitPreRecoTask
13 from DQM.HcalTasks.hcalGPUComparisonTask_cfi
import hcalGPUComparisonTask
20 recHitPreRecoTask.ptype = 1
21 hcalGPUComparisonTask.ptype = 1
24 tpTask.tagEmul =
"valHcalTriggerPrimitiveDigis" 26 hcalOfflineSourceSequence = cms.Sequence(
32 hcalOnlyOfflineSourceSequence = cms.Sequence(
37 hcalOnlyOfflineSourceSequenceGPU = cms.Sequence(
45 gpuValidationHcal.toReplaceWith(hcalOnlyOfflineSourceSequence, hcalOnlyOfflineSourceSequenceGPU)
47 from Configuration.Eras.Modifier_run2_HCAL_2018_cff
import run2_HCAL_2018
48 run2_HCAL_2018.toModify(hcalGPUComparisonTask,
49 tagHBHE_ref =
"hbheprereco@cpu",
50 tagHBHE_target =
"hbheprereco@cuda" 52 run2_HCAL_2018.toModify(recHitTask,
53 tagHBHE =
"hbheprereco" 56 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
58 run3_HB.toModify(hcalGPUComparisonTask,
59 tagHBHE_ref =
"hbhereco@cpu",
60 tagHBHE_target =
"hbhereco@cuda" 62 run3_HB.toModify(recHitTask,
65 _phase1_hcalOnlyOfflineSourceSequence = hcalOnlyOfflineSourceSequence.copy()
66 _phase1_hcalOnlyOfflineSourceSequence.replace(recHitPreRecoTask, recHitTask)
67 run3_HB.toReplaceWith(hcalOnlyOfflineSourceSequence, _phase1_hcalOnlyOfflineSourceSequence)
69 from Configuration.Eras.Modifier_phase2_hcal_cff
import phase2_hcal
70 _phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([tpTask,rawTask])
71 phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
72 phase2_hcal.toModify(digiTask,
73 tagHBHE =
"simHcalDigis:HBHEQIE11DigiCollection",
74 tagHO =
"simHcalDigis",
75 tagHF =
"simHcalDigis:HFQIE10DigiCollection" 78 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
79 (premix_stage2 & phase2_hcal).toModify(digiTask,
80 tagHBHE =
"DMHcalDigis:HBHEQIE11DigiCollection",
81 tagHO =
"DMHcalDigis",
82 tagHF =
"DMHcalDigis:HFQIE10DigiCollection"