CMS 3D CMS Logo

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 = cms.untracked.int32(1)
16 tpTask.ptype = cms.untracked.int32(1)
17 recHitTask.ptype = cms.untracked.int32(1)
18 rawTask.ptype = cms.untracked.int32(1)
19 recHitPreRecoTask.ptype = cms.untracked.int32(1)
20 
21 # set the label for Emulator TP Task
22 tpTask.tagEmul = cms.untracked.InputTag("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_phase2_hcal_cff import phase2_hcal
36 _phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([tpTask,rawTask])
37 phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
38 phase2_hcal.toModify(digiTask,
39  tagHBHE = cms.untracked.InputTag("simHcalDigis","HBHEQIE11DigiCollection"),
40  tagHO = cms.untracked.InputTag("simHcalDigis"),
41  tagHF = cms.untracked.InputTag("simHcalDigis","HFQIE10DigiCollection")
42 )
43 
44 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
45 (premix_stage2 & phase2_hcal).toModify(digiTask,
46  tagHBHE = "DMHcalDigis:HBHEQIE11DigiCollection",
47  tagHO = "DMHcalDigis",
48  tagHF = "DMHcalDigis:HFQIE10DigiCollection"
49 )