CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OfflineSourceSequence_pp.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #-----------------
4 # HCAL DQM Offline Source Sequence Definition for pp
5 # To be used for Offline DQM importing
6 #-----------------
7 
8 # import the tasks
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
14 
15 # set processing type to Offine
16 digiTask.ptype = 1
17 tpTask.ptype = 1
18 recHitTask.ptype = 1
19 rawTask.ptype = 1
20 recHitPreRecoTask.ptype = 1
21 hcalGPUComparisonTask.ptype = 1
22 
23 # set the label for Emulator TP Task
24 tpTask.tagEmul = "valHcalTriggerPrimitiveDigis"
25 
26 hcalOfflineSourceSequence = cms.Sequence(
27  digiTask +
28  tpTask +
29  recHitTask +
30  rawTask )
31 
32 hcalOnlyOfflineSourceSequence = cms.Sequence(
33  digiTask +
34  recHitPreRecoTask +
35  rawTask )
36 
37 hcalOnlyOfflineSourceSequenceGPU = cms.Sequence(
38  digiTask +
39  recHitTask +
40  rawTask +
41  hcalGPUComparisonTask
42 )
43 
44 from Configuration.ProcessModifiers.gpuValidationHcal_cff import gpuValidationHcal
45 gpuValidationHcal.toReplaceWith(hcalOnlyOfflineSourceSequence, hcalOnlyOfflineSourceSequenceGPU)
46 
47 
48 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
49 _phase1_hcalOnlyOfflineSourceSequence = hcalOnlyOfflineSourceSequence.copy()
50 _phase1_hcalOnlyOfflineSourceSequence.replace(recHitPreRecoTask, recHitTask)
51 run3_HB.toReplaceWith(hcalOnlyOfflineSourceSequence, _phase1_hcalOnlyOfflineSourceSequence)
52 
53 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
54 _phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([tpTask,rawTask])
55 phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
56 phase2_hcal.toModify(digiTask,
57  tagHBHE = "simHcalDigis:HBHEQIE11DigiCollection",
58  tagHO = "simHcalDigis",
59  tagHF = "simHcalDigis:HFQIE10DigiCollection"
60 )
61 
62 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
63 (premix_stage2 & phase2_hcal).toModify(digiTask,
64  tagHBHE = "DMHcalDigis:HBHEQIE11DigiCollection",
65  tagHO = "DMHcalDigis",
66  tagHF = "DMHcalDigis:HFQIE10DigiCollection"
67 )