CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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.DigiPhase1Task import digiPhase1Task
11 from DQM.HcalTasks.RawTask import rawTask
12 from DQM.HcalTasks.TPTask import tpTask
13 from DQM.HcalTasks.RecHitTask import recHitTask
14 
15 # set processing type to Offine
16 digiTask.ptype = cms.untracked.int32(1)
17 digiPhase1Task.ptype = cms.untracked.int32(1)
18 tpTask.ptype = cms.untracked.int32(1)
19 recHitTask.ptype = cms.untracked.int32(1)
20 rawTask.ptype = cms.untracked.int32(1)
21 
22 # set the label for Emulator TP Task
23 tpTask.tagEmul = cms.untracked.InputTag("valHcalTriggerPrimitiveDigis")
24 
25 hcalOfflineSourceSequence = cms.Sequence(
26  digiTask
27  +tpTask
28  +recHitTask
29  +rawTask)
30 
31 _phase1_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copy()
32 _phase1_hcalOfflineSourceSequence.insert(0,digiPhase1Task)
33 
34 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
35 run2_HCAL_2017.toReplaceWith( hcalOfflineSourceSequence, _phase1_hcalOfflineSourceSequence )
36 
37 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
38 _phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([digiTask,tpTask,rawTask])
39 phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
40 phase2_hcal.toModify(digiPhase1Task,
41  tagHBHE = cms.untracked.InputTag("simHcalDigis","HBHEQIE11DigiCollection"),
42  tagHO = cms.untracked.InputTag("simHcalDigis"),
43  tagHF = cms.untracked.InputTag("simHcalDigis","HFQIE10DigiCollection")
44 )