71 def _readPartitions(self, p):
72 self.o2o_partitions = []
73 partitionDict = {
'PartTECM':
'TEC-',
'PartTECP':
'TEC+',
'PartTIBD':
'TIB/TID',
'PartTOB':
'TOB'}
74 o2otimestamp = datetime.datetime.utcnow()
75 for part
in partitionDict:
76 psetPart = p.SiStripConfigDb.Partitions.getParameter(part)
77 if not psetPart:
continue
78 entry = self.GainO2OPartition(
80 iovstart = self.iovstart,
81 o2otimestamp = o2otimestamp,
82 subDetector = partitionDict[part],
83 partitionname = psetPart.getParameter(
'PartitionName').
value(),
84 fecVersionMajorId = psetPart.getParameter(
'FecVersion')[0],
85 fecVersionMinorId = psetPart.getParameter(
'FecVersion')[1],
86 fedVersionMajorId = psetPart.getParameter(
'FedVersion')[0],
87 fedVersionMinorId = psetPart.getParameter(
'FedVersion')[1],
88 connectionVersionMajorId = psetPart.getParameter(
'CablingVersion')[0],
89 connectionVersionMinorId = psetPart.getParameter(
'CablingVersion')[1],
90 dcuInfoVersionMajorId = psetPart.getParameter(
'DcuDetIdsVersion')[0],
91 dcuInfoVersionMinorId = psetPart.getParameter(
'DcuDetIdsVersion')[1],
92 dcuPsuMapVersionMajorId = psetPart.getParameter(
'DcuPsuMapVersion')[0],
93 dcuPsuMapVersionMinorId = psetPart.getParameter(
'DcuPsuMapVersion')[1],
94 maskVersionMajorId = psetPart.getParameter(
'MaskVersion')[0],
95 maskVersionMinorId = psetPart.getParameter(
'MaskVersion')[1],
96 apvTimingVersionMajorId = psetPart.getParameter(
'ApvTimingVersion')[0],
97 apvTimingVersionMinorId = psetPart.getParameter(
'ApvTimingVersion')[1],
98 timingRunNumber = psetPart.getParameter(
'RunNumber').
value()
100 self.o2o_partitions.
append(entry)