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