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()
19 #DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*rawDataCollector)
20 DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*castorRawData*rawDataCollector)
21 ecalPacker.Label = 'simEcalDigis'
22 ecalPacker.InstanceEB = 'ebDigis'
23 ecalPacker.InstanceEE = 'eeDigis'
24 ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
25 ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"
26 
27 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
28 phase2_common.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([castorRawData]))
29 
30 #until we have hcal raw data for phase 2....
31 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
32 phase2_hcal.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([hcalRawData]))
33 
34 # Remove siPixelRawData until we have phase1 pixel digis
35 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
36 phase2_tracker.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([siPixelRawData])) # FIXME
37 
38 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
39 phase2_muon.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([rpcpacker]))
40 
41 from Configuration.Eras.Modifier_fastSim_cff import fastSim
42 if fastSim.isChosen() :
43  for _entry in [siPixelRawData,SiStripDigiToRaw,castorRawData]:
44  DigiToRaw.remove(_entry)