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 
14 # set processing type to Offine
15 digiTask.ptype = 1
16 tpTask.ptype = 1
17 recHitTask.ptype = 1
18 rawTask.ptype = 1
19 recHitPreRecoTask.ptype = 1
20 
21 # set the label for Emulator TP Task
22 tpTask.tagEmul = "valHcalTriggerPrimitiveDigis"
23 
24 hcalOfflineSourceSequence = cms.Sequence(
25  digiTask +
26  tpTask +
27  recHitTask +
28  rawTask )
29 
30 hcalOnlyOfflineSourceSequence = cms.Sequence(
31  digiTask +
32  recHitPreRecoTask +
33  rawTask )
34 
35 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
36 _phase1_hcalOnlyOfflineSourceSequence = hcalOnlyOfflineSourceSequence.copy()
37 _phase1_hcalOnlyOfflineSourceSequence.replace(recHitPreRecoTask, recHitTask)
38 run3_HB.toReplaceWith(hcalOnlyOfflineSourceSequence, _phase1_hcalOnlyOfflineSourceSequence)
39 
40 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
41 _phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([tpTask,rawTask])
42 phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
43 phase2_hcal.toModify(digiTask,
44  tagHBHE = "simHcalDigis:HBHEQIE11DigiCollection",
45  tagHO = "simHcalDigis",
46  tagHF = "simHcalDigis:HFQIE10DigiCollection"
47 )
48 
49 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
50 (premix_stage2 & phase2_hcal).toModify(digiTask,
51  tagHBHE = "DMHcalDigis:HBHEQIE11DigiCollection",
52  tagHO = "DMHcalDigis",
53  tagHF = "DMHcalDigis:HFQIE10DigiCollection"
54 )