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 from Configuration.ProcessModifiers.gpu_cff import gpu
0003 
0004 # This object is used to selectively make changes for different running
0005 # scenarios. In this case it makes changes for Run 2.
0006 
0007 from EventFilter.SiPixelRawToDigi.siPixelDigis_cff import *
0008 
0009 from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import *
0010 
0011 from SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cff import *
0012 
0013 from EventFilter.EcalRawToDigi.ecalDigis_cff import *
0014 
0015 import EventFilter.ESRawToDigi.esRawToDigi_cfi
0016 ecalPreshowerDigis = EventFilter.ESRawToDigi.esRawToDigi_cfi.esRawToDigi.clone()
0017 
0018 import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
0019 hcalDigis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
0020 
0021 import EventFilter.CSCRawToDigi.cscUnpacker_cfi
0022 muonCSCDigis = EventFilter.CSCRawToDigi.cscUnpacker_cfi.muonCSCDigis.clone()
0023 
0024 import EventFilter.DTRawToDigi.dtunpacker_cfi
0025 muonDTDigis = EventFilter.DTRawToDigi.dtunpacker_cfi.muonDTDigis.clone()
0026 
0027 import EventFilter.RPCRawToDigi.RPCRawToDigi_cfi 
0028 muonRPCDigis = EventFilter.RPCRawToDigi.RPCRawToDigi_cfi.muonRPCDigis.clone()
0029 
0030 import EventFilter.GEMRawToDigi.muonGEMDigis_cfi
0031 muonGEMDigis = EventFilter.GEMRawToDigi.muonGEMDigis_cfi.muonGEMDigis.clone()
0032 
0033 from EventFilter.CastorRawToDigi.CastorRawToDigi_cff import *
0034 castorDigis = EventFilter.CastorRawToDigi.CastorRawToDigi_cfi.castorDigis.clone( FEDs = cms.untracked.vint32(690,691,692, 693,722) )
0035 
0036 from EventFilter.ScalersRawToDigi.ScalersRawToDigi_cfi import *
0037 
0038 from EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi import *
0039 tcdsDigis = EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi.tcdsRawToDigi.clone()
0040 
0041 from EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi import *
0042 onlineMetaDataDigis = EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi.onlineMetaDataRawToDigi.clone()
0043 
0044 from L1Trigger.Configuration.L1TRawToDigi_cff import *
0045 
0046 from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import *
0047 
0048 RawToDigiTask = cms.Task(L1TRawToDigiTask,
0049                          siPixelDigisTask,
0050                          siStripDigis,
0051                          ecalDigisTask,
0052                          ecalPreshowerDigis,
0053                          hcalDigis,
0054                          muonCSCDigis,
0055                          muonDTDigis,
0056                          muonRPCDigis,
0057                          castorDigis,
0058                          scalersRawToDigi,
0059                          tcdsDigis,
0060                          onlineMetaDataDigis,
0061                          )
0062 RawToDigi = cms.Sequence(RawToDigiTask)
0063 
0064 RawToDigiTask_noTk = RawToDigiTask.copyAndExclude([siPixelDigisTask, siStripDigis])
0065 RawToDigi_noTk = cms.Sequence(RawToDigiTask_noTk)
0066 
0067 RawToDigiTask_pixelOnly = cms.Task(siPixelDigisTask, scalersRawToDigi)
0068 RawToDigi_pixelOnly = cms.Sequence(RawToDigiTask_pixelOnly)
0069 
0070 RawToDigiTask_ecalOnly = cms.Task(ecalDigisTask, ecalPreshowerDigis, scalersRawToDigi)
0071 RawToDigi_ecalOnly = cms.Sequence(RawToDigiTask_ecalOnly)
0072 
0073 RawToDigiTask_hcalOnly = cms.Task(hcalDigis)
0074 RawToDigi_hcalOnly = cms.Sequence(RawToDigiTask_hcalOnly)
0075 
0076 scalersRawToDigi.scalersInputTag = 'rawDataCollector'
0077 siPixelDigis.cpu.InputLabel = 'rawDataCollector'
0078 ecalDigis.cpu.InputLabel = 'rawDataCollector'
0079 ecalPreshowerDigis.sourceTag = 'rawDataCollector'
0080 hcalDigis.InputLabel = 'rawDataCollector'
0081 muonCSCDigis.InputObjects = 'rawDataCollector'
0082 muonDTDigis.inputLabel = 'rawDataCollector'
0083 muonRPCDigis.InputLabel = 'rawDataCollector'
0084 castorDigis.InputLabel = 'rawDataCollector'
0085 
0086 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0087 run3_common.toReplaceWith(RawToDigiTask, RawToDigiTask.copyAndExclude([castorDigis]))
0088 
0089 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0090 # Remove siPixelDigis until we have phase2 pixel digis
0091 # No Strips in the Phase-2 tracker
0092 phase2_tracker.toReplaceWith(RawToDigiTask, RawToDigiTask.copyAndExclude([siPixelDigis,siStripDigis])) # FIXME
0093 
0094 # add CTPPS 2016 raw-to-digi modules
0095 from Configuration.Eras.Modifier_ctpps_cff import ctpps
0096 
0097 _ctpps_RawToDigiTask = RawToDigiTask.copy()
0098 _ctpps_RawToDigiTask.add(ctppsRawToDigiTask)
0099 ctpps.toReplaceWith(RawToDigiTask, _ctpps_RawToDigiTask)
0100 
0101 _ctpps_RawToDigiTask_noTk = RawToDigiTask_noTk.copy()
0102 _ctpps_RawToDigiTask_noTk.add(ctppsRawToDigiTask)
0103 ctpps.toReplaceWith(RawToDigiTask_noTk, _ctpps_RawToDigiTask_noTk)
0104 
0105 # GEM settings
0106 _gem_RawToDigiTask = RawToDigiTask.copy()
0107 _gem_RawToDigiTask.add(muonGEMDigis)
0108 
0109 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
0110 run2_GEM_2017.toReplaceWith(RawToDigiTask, _gem_RawToDigiTask)
0111 
0112 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0113 from Configuration.Eras.Modifier_phase2_GEM_cff import phase2_GEM
0114 (run3_GEM & ~phase2_GEM).toReplaceWith(RawToDigiTask, _gem_RawToDigiTask)
0115 
0116 from EventFilter.HGCalRawToDigi.HGCalRawToDigi_cfi import *
0117 _hgcal_RawToDigiTask = RawToDigiTask.copy()
0118 _hgcal_RawToDigiTask.add(hgcalDigis)
0119 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0120 phase2_hgcal.toReplaceWith(RawToDigiTask,_hgcal_RawToDigiTask)
0121 
0122 _hfnose_RawToDigiTask = RawToDigiTask.copy()
0123 _hfnose_RawToDigiTask.add(hfnoseDigis)
0124 
0125 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
0126 phase2_hfnose.toReplaceWith(RawToDigiTask,_hfnose_RawToDigiTask)
0127