CMS 3D CMS Logo

DigiToRawPreMixing_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()
18 #from L1Trigger.Configuration.L1TDigiToRaw_cff import * # no L1 DigiToRaw in first PreMixing step
19 #DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*rawDataCollector)
20 DigiToRaw = cms.Sequence(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 hcalRawDatauHTR.premix = cms.bool(True)
27 
28 from Configuration.Eras.Modifier_run3_common_cff import run3_common
29 run3_common.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([castorRawData]))
30 
31 #until we have hcal raw data for phase 2....
32 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
33 phase2_hcal.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([hcalRawData]))
34 
35 # Remove siPixelRawData until we have phase1 pixel digis
36 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
37 phase2_tracker.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([siPixelRawData])) # FIXME
38 
39 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
40 phase2_muon.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([rpcpacker]))
41 
42 from Configuration.Eras.Modifier_fastSim_cff import fastSim
43 if fastSim.isChosen() :
44  for _entry in [siPixelRawData,SiStripDigiToRaw,castorRawData]:
45  DigiToRaw.remove(_entry)