CMS 3D CMS Logo

OfflineSourceSequence_hi.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 Heavy Ions
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 from DQM.HcalTasks.DigiPhase1Task import digiPhase1Task
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 run key(value and name)
23 digiTask.runkeyVal = cms.untracked.int32(4)
24 tpTask.runkeyVal = cms.untracked.int32(4)
25 recHitTask.runkeyVal = cms.untracked.int32(4)
26 rawTask.runkeyVal = cms.untracked.int32(4)
27 
28 digiTask.runkeyName = cms.untracked.string("hi_run")
29 tpTask.runkeyName = cms.untracked.string("hi_run")
30 recHitTask.runkeyName = cms.untracked.string("hi_run")
31 rawTask.runkeyName = cms.untracked.string("hi_run")
32 
33 # Set the Emulator label for TP Task
34 tpTask.tagEmul = cms.untracked.InputTag("valHcalTriggerPrimitiveDigis")
35 
36 hcalOfflineSourceSequence = cms.Sequence(
37  digiTask
38  +tpTask
39  +recHitTask
40  +rawTask)
41 
42 _phase1_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copy()
43 _phase1_hcalOfflineSourceSequence.insert(0,digiPhase1Task)
44 
45 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
46 run2_HCAL_2017.toReplaceWith( hcalOfflineSourceSequence, _phase1_hcalOfflineSourceSequence )
47