File indexing completed on 2024-04-06 11:58:37
0001 import FWCore.ParameterSet.Config as cms
0002
0003 minIov = 1
0004 maxIov = 999999999
0005 subSystemName = ""
0006
0007 process = cms.Process('test')
0008
0009
0010 process.MessageLogger = cms.Service("MessageLogger",
0011 destinations = cms.untracked.vstring('cout'),
0012 cout = cms.untracked.PSet(
0013 threshold = cms.untracked.string('ERROR')
0014 )
0015 )
0016
0017 process.source = cms.Source("EmptyIOVSource",
0018 timetype = cms.string('runnumber'),
0019 firstValue = cms.uint64(minIov),
0020 lastValue = cms.uint64(minIov),
0021 interval = cms.uint64(1)
0022 )
0023
0024
0025 process.load("CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi")
0026 process.totemDAQMappingESSourceXML.subSystem = subSystemName
0027 process.totemDAQMappingESSourceXML.sampicSubDetId = cms.uint32(7)
0028 process.totemDAQMappingESSourceXML.multipleChannelsPerPayload = False
0029 process.totemDAQMappingESSourceXML.configuration = cms.VPSet(
0030 cms.PSet(
0031 validityRange = cms.EventRange(f"{minIov}:min - {maxIov}:max"),
0032 mappingFileNames = cms.vstring(),
0033 maskFileNames = cms.vstring(),
0034 )
0035 )
0036
0037
0038 process.load('CondCore.CondDB.CondDB_cfi')
0039 process.CondDB.connect = "sqlite_file:CTPPS_AnalysisMask.db"
0040 process.PoolDBESSource = cms.ESSource('PoolDBESSource',
0041 process.CondDB,
0042 toGet = cms.VPSet(
0043 cms.PSet(
0044 record = cms.string('TotemAnalysisMaskRcd'),
0045 tag = cms.string('AnalysisMask'),
0046 label = cms.untracked.string(subSystemName)),
0047 ))
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057 process.es_prefer_totemTimingMapping = cms.ESPrefer("TotemDAQMappingESSourceXML", "totemDAQMappingESSourceXML", TotemReadoutRcd=cms.vstring(f"TotemAnalysisMask/"))
0058
0059
0060 process.writeTotemDAQMapping = cms.EDAnalyzer("WriteTotemDAQMapping",
0061 subSystem = cms.untracked.string(subSystemName),
0062 fileName = cms.untracked.string("all__xml.txt"),
0063 readMap = cms.untracked.bool(False),
0064 readMask = cms.untracked.bool(True),
0065 )
0066
0067 process.path = cms.Path(
0068 process.writeTotemDAQMapping
0069 )