Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # ---------- Si strips ----------
0004 totemDAQMappingESSourceXML_TrackingStrip = cms.ESSource("TotemDAQMappingESSourceXML",
0005   verbosity = cms.untracked.uint32(0),
0006   subSystem = cms.untracked.string("TrackingStrip"),
0007   sampicSubDetId = cms.uint32(6),
0008   configuration = cms.VPSet(
0009     # 2016, before TS2
0010     cms.PSet(
0011       validityRange = cms.EventRange("1:min - 280385:max"),
0012       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2016_to_fill_5288.xml"),
0013       maskFileNames = cms.vstring()
0014     ),
0015     # 2016, during TS2
0016     cms.PSet(
0017       validityRange = cms.EventRange("280386:min - 281600:max"),
0018       mappingFileNames = cms.vstring(),
0019       maskFileNames = cms.vstring()
0020     ),
0021     # 2016, after TS2
0022     cms.PSet(
0023       validityRange = cms.EventRange("281601:min - 290872:max"),
0024       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2016_from_fill_5330.xml"),
0025       maskFileNames = cms.vstring()
0026     ),
0027     # 2017
0028     cms.PSet(
0029       validityRange = cms.EventRange("290873:min - 311625:max"),
0030       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2017.xml"),
0031       maskFileNames = cms.vstring()
0032     ),
0033     # 2018
0034     cms.PSet(
0035       validityRange = cms.EventRange("311626:min - 339999:max"),
0036       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2018.xml"),
0037       maskFileNames = cms.vstring()
0038     ),
0039     # 2022
0040     cms.PSet(
0041       validityRange = cms.EventRange("340000:min - 999999999:max"),
0042       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2022.xml"),
0043       maskFileNames = cms.vstring()
0044     )
0045 
0046   )
0047 )
0048 
0049 from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi
0050 totemRPRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
0051 
0052 # various error/warning/info output may be enabled with these flags
0053 #  totemRPRawToDigi.RawUnpacking.verbosity = 1
0054 #  totemRPRawToDigi.RawToDigi.verbosity = 1 # or higher number for more output
0055 #  totemRPRawToDigi.RawToDigi.printErrorSummary = True
0056 #  totemRPRawToDigi.RawToDigi.printUnknownFrameSummary = True
0057 
0058 # ---------- diamonds ----------
0059 totemDAQMappingESSourceXML_TimingDiamond = cms.ESSource("TotemDAQMappingESSourceXML",
0060   verbosity = cms.untracked.uint32(0),
0061   subSystem = cms.untracked.string("TimingDiamond"),
0062   sampicSubDetId = cms.uint32(6),
0063   configuration = cms.VPSet(
0064     # 2016, before diamonds inserted in DAQ
0065     cms.PSet(
0066       validityRange = cms.EventRange("1:min - 283819:max"),
0067       mappingFileNames = cms.vstring(),
0068       maskFileNames = cms.vstring()
0069     ),
0070     # 2016, after diamonds inserted in DAQ
0071     cms.PSet(
0072       validityRange = cms.EventRange("283820:min - 292520:max"),
0073       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond.xml"),
0074       maskFileNames = cms.vstring()
0075     ),
0076     # 2017
0077     cms.PSet(
0078       validityRange = cms.EventRange("292521:min - 310000:max"),
0079       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond_2017.xml"),
0080       maskFileNames = cms.vstring()
0081     ),
0082     # 2018
0083     cms.PSet(
0084       validityRange = cms.EventRange("310001:min - 339999:max"),
0085       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond_2018.xml"),
0086       maskFileNames = cms.vstring()
0087     ),
0088     # 2022
0089     cms.PSet(
0090       validityRange = cms.EventRange("340000:min - 362919:max"),
0091       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond_2022.xml"),
0092       maskFileNames = cms.vstring()
0093     ),
0094     # 2023
0095     cms.PSet(
0096       validityRange = cms.EventRange("362920:min - 999999999:max"),
0097       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond_2023.xml"),
0098       maskFileNames = cms.vstring()
0099     )
0100 
0101   )
0102 )
0103 
0104 from EventFilter.CTPPSRawToDigi.ctppsDiamondRawToDigi_cfi import ctppsDiamondRawToDigi
0105 ctppsDiamondRawToDigi.rawDataTag = "rawDataCollector"
0106 
0107 # ---------- Totem Timing ----------
0108 totemDAQMappingESSourceXML_TotemTiming = cms.ESSource("TotemDAQMappingESSourceXML",
0109   verbosity = cms.untracked.uint32(0),
0110   subSystem = cms.untracked.string("TotemTiming"),
0111   sampicSubDetId = cms.uint32(5),
0112   configuration = cms.VPSet(
0113     # 2017, before detector inserted in DAQ
0114     cms.PSet(
0115       validityRange = cms.EventRange("1:min - 310000:max"),
0116       mappingFileNames = cms.vstring(),
0117       maskFileNames = cms.vstring()
0118     ),
0119     # 2018
0120     cms.PSet(
0121       validityRange = cms.EventRange("310001:min - 339999:max"),
0122       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_totem_timing_2018.xml"),
0123       maskFileNames = cms.vstring()
0124     ),
0125     # 2022
0126     cms.PSet(
0127       validityRange = cms.EventRange("340000:min - 999999999:max"),
0128       mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_totem_timing_2022.xml"),
0129       maskFileNames = cms.vstring()
0130     )
0131   )
0132 )
0133 
0134 from EventFilter.CTPPSRawToDigi.totemTimingRawToDigi_cfi import totemTimingRawToDigi
0135 totemTimingRawToDigi.rawDataTag = "rawDataCollector"
0136 
0137 # ---------- Totem nT2 ----------
0138 from CalibPPS.ESProducers.totemT2DAQMapping_cff import totemDAQMappingESSourceXML as totemDAQMappingESSourceXML_TotemT2
0139 from EventFilter.CTPPSRawToDigi.totemT2Digis_cfi import totemT2Digis
0140 totemT2Digis.rawDataTag = "rawDataCollector"
0141 
0142 # ---------- pixels ----------
0143 from EventFilter.CTPPSRawToDigi.ctppsPixelDigis_cfi import ctppsPixelDigis
0144 ctppsPixelDigis.inputLabel = "rawDataCollector"
0145 
0146 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
0147 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
0148 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
0149 (ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(ctppsPixelDigis, isRun3 = False )
0150 (ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(totemDAQMappingESSourceXML_TotemTiming, sampicSubDetId = 6)
0151 
0152 # raw-to-digi task and sequence
0153 ctppsRawToDigiTask = cms.Task(
0154   totemRPRawToDigi,
0155   ctppsDiamondRawToDigi,
0156   totemTimingRawToDigi,
0157   totemT2Digis,
0158   ctppsPixelDigis
0159 )
0160 ctppsRawToDigi = cms.Sequence(ctppsRawToDigiTask)