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 phase2 pixel digis
39 # No Strip detector in Phase-2 Tracker
40 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
41 phase2_tracker.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw])) # FIXME
42 
43 # GEM settings
44 _gem_DigiToRawTask = DigiToRawTask.copy()
45 _gem_DigiToRawTask.add(gemPacker)
46 
47 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
48 run2_GEM_2017.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
49 
50 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
51 from Configuration.Eras.Modifier_phase2_GEM_cff import phase2_GEM
52 run3_GEM.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
53 phase2_GEM.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
54 
55 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
56 phase2_muon.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([rpcpacker]))
57 
58 from Configuration.Eras.Modifier_fastSim_cff import fastSim
59 fastSim.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData,ctppsRawData]))
60 
61 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
62 phase2_ecal_devel.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([L1TDigiToRawTask, ecalPacker, esDigiToRaw, cscpacker]))