File indexing completed on 2024-04-06 12:03:44
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006 from EventFilter.SiPixelRawToDigi.SiPixelDigiToRaw_cfi import *
0007 from EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi import *
0008 from SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cff import *
0009 import EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi
0010 ecalPacker = EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi.ecaldigitorawzerosup.clone()
0011 from EventFilter.ESDigiToRaw.esDigiToRaw_cfi import *
0012 from EventFilter.HcalRawToDigi.HcalDigiToRaw_cfi import *
0013 from EventFilter.CSCRawToDigi.cscPacker_cfi import *
0014 from EventFilter.DTRawToDigi.dtPacker_cfi import *
0015 from EventFilter.RPCRawToDigi.rpcPacker_cfi import *
0016 from EventFilter.GEMRawToDigi.gemPacker_cfi import *
0017 from EventFilter.CastorRawToDigi.CastorDigiToRaw_cfi import *
0018 from EventFilter.RawDataCollector.rawDataCollector_cfi import *
0019 from L1Trigger.Configuration.L1TDigiToRaw_cff import *
0020 from EventFilter.CTPPSRawToDigi.ctppsDigiToRaw_cff import *
0021
0022 DigiToRawTask = cms.Task(L1TDigiToRawTask, siPixelRawData, SiStripDigiToRaw, ecalPacker, esDigiToRaw, hcalRawDataTask, cscpacker, dtpacker, rpcpacker, ctppsRawData, castorRawData, rawDataCollector)
0023 DigiToRaw = cms.Sequence(DigiToRawTask)
0024
0025 ecalPacker.Label = 'simEcalDigis'
0026 ecalPacker.InstanceEB = 'ebDigis'
0027 ecalPacker.InstanceEE = 'eeDigis'
0028 ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
0029 ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"
0030
0031 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0032 run3_common.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([castorRawData]))
0033
0034
0035 from Configuration.Eras.Modifier_hcalSkipPacker_cff import hcalSkipPacker
0036 hcalSkipPacker.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([hcalRawDataTask]))
0037
0038
0039
0040 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0041 phase2_tracker.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw]))
0042
0043
0044 _gem_DigiToRawTask = DigiToRawTask.copy()
0045 _gem_DigiToRawTask.add(gemPacker)
0046
0047 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
0048 run2_GEM_2017.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
0049
0050 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0051 from Configuration.Eras.Modifier_phase2_GEM_cff import phase2_GEM
0052 run3_GEM.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
0053 phase2_GEM.toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
0054
0055 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0056 phase2_muon.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([rpcpacker]))
0057
0058 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0059 fastSim.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData,ctppsRawData]))
0060
0061 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0062 phase2_ecal_devel.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([L1TDigiToRawTask, ecalPacker, esDigiToRaw, cscpacker]))