Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-20 23:11:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # This object is used to make changes for different running scenarios. In
0004 # this case for Run 2
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 #if we don't have hcal raw data
0035 from Configuration.Eras.Modifier_hcalSkipPacker_cff import hcalSkipPacker
0036 hcalSkipPacker.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([hcalRawDataTask]))
0037 
0038 # Remove siPixelRawData until we have phase2 pixel digis
0039 # No Strip detector in Phase-2 Tracker
0040 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0041 phase2_tracker.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw])) # FIXME
0042 
0043 # GEM settings
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 & ~phase2_GEM).toReplaceWith(DigiToRawTask, _gem_DigiToRawTask)
0053 
0054 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0055 phase2_muon.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([rpcpacker]))
0056 
0057 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0058 fastSim.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData,ctppsRawData]))
0059 
0060 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0061 phase2_ecal_devel.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([L1TDigiToRawTask, ecalPacker, esDigiToRaw, cscpacker]))