CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DigiToRaw_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # This object is used to make changes for different running scenarios. In
4 # this case for Run 2
5 
9 import EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi
10 ecalPacker = EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi.ecaldigitorawzerosup.clone()
21 
22 DigiToRawTask = cms.Task(L1TDigiToRawTask, siPixelRawData, SiStripDigiToRaw, ecalPacker, esDigiToRaw, hcalRawDataTask, cscpacker, dtpacker, rpcpacker, ctppsRawData, castorRawData, rawDataCollector)
23 DigiToRaw = cms.Sequence(DigiToRawTask)
24 
25 ecalPacker.Label = 'simEcalDigis'
26 ecalPacker.InstanceEB = 'ebDigis'
27 ecalPacker.InstanceEE = 'eeDigis'
28 ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
29 ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"
30 
31 from Configuration.Eras.Modifier_run3_common_cff import run3_common
32 run3_common.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([castorRawData]))
33 
34 #if we don't have hcal raw data
35 from Configuration.Eras.Modifier_hcalSkipPacker_cff import hcalSkipPacker
36 hcalSkipPacker.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([hcalRawDataTask]))
37 
38 # Remove siPixelRawData until we have phase1 pixel digis
39 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
40 phase2_tracker.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData])) # FIXME
41 
42 # GEM settings
43 _gem_DigiToRawTask = DigiToRawTask.copy()
44 _gem_DigiToRawTask.add(gemPacker)
45 
46 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
47 run2_GEM_2017.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
48 
49 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
50 from Configuration.Eras.Modifier_phase2_GEM_cff import phase2_GEM
51 (run3_GEM & ~phase2_GEM).toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
52 
53 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
54 phase2_muon.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([rpcpacker]))
55 
56 from Configuration.Eras.Modifier_fastSim_cff import fastSim
57 fastSim.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData,ctppsRawData]))
58 
59 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
60 phase2_ecal_devel.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([esDigiToRaw]))