CMS 3D CMS Logo

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()
20 
21 #DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*rawDataCollector)
22 DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*castorRawData*rawDataCollector)
23 
24 ecalPacker.Label = 'simEcalDigis'
25 ecalPacker.InstanceEB = 'ebDigis'
26 ecalPacker.InstanceEE = 'eeDigis'
27 ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
28 ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"
29 
30 from Configuration.Eras.Modifier_run3_common_cff import run3_common
31 run3_common.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([castorRawData]))
32 
33 #if we don't have hcal raw data
34 from Configuration.Eras.Modifier_hcalSkipPacker_cff import hcalSkipPacker
35 hcalSkipPacker.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([hcalRawData]))
36 
37 # Remove siPixelRawData until we have phase1 pixel digis
38 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
39 phase2_tracker.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([siPixelRawData])) # FIXME
40 
41 # GEM settings
42 _gem_DigiToRaw = DigiToRaw.copy()
43 _gem_DigiToRaw.insert(-2,gemPacker)
44 
45 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
46 run2_GEM_2017.toReplaceWith(DigiToRaw, _gem_DigiToRaw)
47 
48 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
49 run3_GEM.toReplaceWith(DigiToRaw, _gem_DigiToRaw)
50 
51 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
52 phase2_muon.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([rpcpacker]))
53 
54 from Configuration.Eras.Modifier_fastSim_cff import fastSim
55 fastSim.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData]))