Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-16 01:49:59

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