CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OfflineSourceSequence_cosmic.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 Cosmics
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 run key(value and name)
23 digiTask.runkeyVal = cms.untracked.int32(2)
24 tpTask.runkeyVal = cms.untracked.int32(2)
25 recHitTask.runkeyVal = cms.untracked.int32(2)
26 rawTask.runkeyVal = cms.untracked.int32(2)
27 
28 digiTask.runkeyName = cms.untracked.string("cosmic_run")
29 tpTask.runkeyName = cms.untracked.string("cosmic_run")
30 recHitTask.runkeyName = cms.untracked.string("cosmic_run")
31 rawTask.runkeyName = cms.untracked.string("cosmic_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  +recHitTask
39  +rawTask)
40 
41 _phase1_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copy()
42 _phase1_hcalOfflineSourceSequence.insert(0,digiPhase1Task)
43 
44 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
45 run2_HCAL_2017.toReplaceWith( hcalOfflineSourceSequence, _phase1_hcalOfflineSourceSequence )
46