1 import FWCore.ParameterSet.Config
as cms
9 from DQM.HcalTasks.DigiTask_cfi
import digiTask
10 from DQM.HcalTasks.RawTask_cfi
import rawTask
11 from DQM.HcalTasks.TPTask_cfi
import tpTask
12 from DQM.HcalTasks.RecHitTask_cfi
import recHitTask, recHitPreRecoTask
13 from DQM.HcalTasks.hcalGPUComparisonTask_cfi
import hcalGPUComparisonTask
20 recHitPreRecoTask.ptype = 1
21 hcalGPUComparisonTask.ptype = 1
23 hcalAlpakaComparisonTask = hcalGPUComparisonTask.clone()
26 tpTask.tagEmul =
"valHcalTriggerPrimitiveDigis" 28 hcalOfflineSourceSequence = cms.Sequence(
34 hcalOnlyOfflineSourceSequence = cms.Sequence(
39 hcalOnlyOfflineSourceSequenceGPU = cms.Sequence(
45 hcalOnlyOfflineSourceSequenceAlpaka = cms.Sequence(
49 hcalAlpakaComparisonTask
54 gpuValidationHcal.toReplaceWith(hcalOnlyOfflineSourceSequence, hcalOnlyOfflineSourceSequenceGPU)
56 from Configuration.Eras.Modifier_run2_HCAL_2018_cff
import run2_HCAL_2018
57 run2_HCAL_2018.toModify(hcalGPUComparisonTask,
58 tagHBHE_ref =
"hbheprereco@cpu",
59 tagHBHE_target =
"hbheprereco@cuda" 61 run2_HCAL_2018.toModify(recHitTask,
62 tagHBHE =
"hbheprereco" 65 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
68 run3_HB.toModify(hcalGPUComparisonTask,
69 tagHBHE_ref =
"hbhereco@cpu",
70 tagHBHE_target =
"hbhereco@cuda" 72 run3_HB.toModify(recHitTask,
75 (alpaka & run3_HB).toModify(hcalGPUComparisonTask,
76 tagHBHE_ref =
"hbherecoSerial",
77 tagHBHE_target =
"hbhereco" 79 run3_HB.toModify(hcalAlpakaComparisonTask,
80 tagHBHE_ref =
"hbherecoLegacy",
81 tagHBHE_target =
"hbhereco" 84 _phase1_hcalOnlyOfflineSourceSequence = hcalOnlyOfflineSourceSequence.copy()
85 _phase1_hcalOnlyOfflineSourceSequence.replace(recHitPreRecoTask, recHitTask)
86 run3_HB.toReplaceWith(hcalOnlyOfflineSourceSequence, _phase1_hcalOnlyOfflineSourceSequence)
88 from Configuration.Eras.Modifier_phase2_hcal_cff
import phase2_hcal
89 _phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([tpTask,rawTask])
90 phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
91 phase2_hcal.toModify(digiTask,
92 tagHBHE =
"simHcalDigis:HBHEQIE11DigiCollection",
93 tagHO =
"simHcalDigis",
94 tagHF =
"simHcalDigis:HFQIE10DigiCollection" 97 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
98 (premix_stage2 & phase2_hcal).toModify(digiTask,
99 tagHBHE =
"DMHcalDigis:HBHEQIE11DigiCollection",
100 tagHO =
"DMHcalDigis",
101 tagHF =
"DMHcalDigis:HFQIE10DigiCollection"