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()
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 run3_GEM.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
51 
52 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
53 phase2_muon.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([rpcpacker]))
54 
55 from Configuration.Eras.Modifier_fastSim_cff import fastSim
56 fastSim.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData,ctppsRawData]))
57 
58 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
59 phase2_ecal_devel.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([esDigiToRaw]))
cscPacker_cfi
L1TDigiToRaw_cff
gemPacker_cfi
SiPixelDigiToRaw_cfi
rpcPacker_cfi
rawDataCollector_cfi
ecalTriggerPrimitiveDigis_cff
CastorDigiToRaw_cfi
esDigiToRaw_cfi
HcalDigiToRaw_cfi
ctppsDigiToRaw_cff
SiStripDigiToRaw_cfi
dtPacker_cfi