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.RawTask import rawTask
11 from DQM.HcalTasks.TPTask import tpTask
12 from DQM.HcalTasks.RecHitTask import recHitTask
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 
20 # set the run key(value and name)
21 digiTask.runkeyVal = cms.untracked.int32(2)
22 tpTask.runkeyVal = cms.untracked.int32(2)
23 recHitTask.runkeyVal = cms.untracked.int32(2)
24 rawTask.runkeyVal = cms.untracked.int32(2)
25 
26 digiTask.runkeyName = cms.untracked.string("cosmic_run")
27 tpTask.runkeyName = cms.untracked.string("cosmic_run")
28 recHitTask.runkeyName = cms.untracked.string("cosmic_run")
29 rawTask.runkeyName = cms.untracked.string("cosmic_run")
30 
31 # set the Emulator label for TP Task
32 tpTask.tagEmul = cms.untracked.InputTag("valHcalTriggerPrimitiveDigis")
33 
34 hcalOfflineSourceSequence = cms.Sequence(
35  digiTask
36  +recHitTask
37  +rawTask)
38