Definition at line 20 of file LumiDeadtimeHandler.py.
◆ __init__()
def python.LumiDeadtimeHandler.LumiDeadtimeHandler.__init__ |
( |
|
self | ) |
|
Definition at line 23 of file LumiDeadtimeHandler.py.
28 self.vetoReader =
None
29 self.menuReader =
None
30 self.countsReader =
None
33 self.trigList=[
'L1_EM30']
36 self.liveFracBCID = dict()
39 self.liveFracTrig = dict()
42 self.trigChan = dict()
◆ calculateAll()
def python.LumiDeadtimeHandler.LumiDeadtimeHandler.calculateAll |
( |
|
self, |
|
|
|
run |
|
) |
| |
◆ findBCIDDeadtime()
def python.LumiDeadtimeHandler.LumiDeadtimeHandler.findBCIDDeadtime |
( |
|
self | ) |
|
Definition at line 145 of file LumiDeadtimeHandler.py.
145 def findBCIDDeadtime(self):
146 if self.verbose:
print(
'Calculating per-BCID deadtime')
149 self.liveFracBCID = dict()
152 for obj
in self.vetoReader.data:
158 lb = key & 0xFFFFFFFF
159 bloblength = obj.payload()[
'HighPriority'].
size()
160 print(
'%d %d Found trigger counter blob of length %d' % (run, lb, bloblength))
164 self.liveFracBCID[key] = liveVec
◆ loadData()
def python.LumiDeadtimeHandler.LumiDeadtimeHandler.loadData |
( |
|
self, |
|
|
|
run |
|
) |
| |
Definition at line 48 of file LumiDeadtimeHandler.py.
48 def loadData(self, run):
49 self.loadVetoData(run)
50 self.loadTrigChannels(run)
51 self.loadTrigCounts(run)
◆ loadTrigChannels()
def python.LumiDeadtimeHandler.LumiDeadtimeHandler.loadTrigChannels |
( |
|
self, |
|
|
|
run |
|
) |
| |
Definition at line 68 of file LumiDeadtimeHandler.py.
68 def loadTrigChannels(self, run):
69 if self.verbose:
print(
'Loading trigger channel data')
71 self.trigChan = dict()
72 for trig
in self.trigList:
73 self.trigChan[trig] = -1
75 if self.menuReader
is None:
76 self.menuReader = CoolDataReader(
'COOLONL_TRIGGER/COMP200',
'/TRIGGER/LVL1/Menu')
78 self.menuReader.setIOVRangeFromRun(run)
79 self.menuReader.readData()
81 for obj
in self.menuReader.data:
82 trigName = obj.payload()[
'ItemName']
83 if trigName
in self.trigList:
84 self.trigChan[trigName] =
int(obj.channelId())
86 for trig
in self.trigList:
87 if self.trigChan[trig] == -1:
88 print(
"Couldn't find", trig,
"in run", run)
91 print(
'Found', trig,
'in channel', self.trigChan[trig])
◆ loadTrigCounts()
def python.LumiDeadtimeHandler.LumiDeadtimeHandler.loadTrigCounts |
( |
|
self, |
|
|
|
run |
|
) |
| |
Definition at line 96 of file LumiDeadtimeHandler.py.
96 def loadTrigCounts(self, run):
99 print(
'loading Trigger Counts data')
101 self.liveFracTrig = dict()
103 if self.countsReader
is None:
104 self.countsReader = CoolDataReader(
'COOLONL_TRIGGER/COMP200',
'/TRIGGER/LUMI/LVL1COUNTERS')
106 self.countsReader.setIOVRangeFromRun(run)
109 chanList = self.trigChan.
values()
114 for chan
in chanList:
115 if chan < 0:
continue
116 tmpList.append( chan )
119 self.countsReader.setChannel(chanList)
120 self.countsReader.readData()
122 for obj
in self.countsReader.data:
130 if ss
not in self.liveFracTrig:
131 self.liveFracTrig[ss] = dict()
133 for (trig, chan)
in self.trigChan.
iteritems():
134 if chan != obj.channelId():
continue
137 if obj.payload()[
'AfterPrescale'] > 0:
138 ratio =
float(obj.payload()[
'L1Accept'])/obj.payload()[
'AfterPrescale']
140 self.liveFracTrig[ss][trig] = ratio
143 print(obj.since()>>32,
'/', obj.since()&0xFFFFFFFF, trig, ratio)
◆ loadVetoData()
def python.LumiDeadtimeHandler.LumiDeadtimeHandler.loadVetoData |
( |
|
self, |
|
|
|
run |
|
) |
| |
Definition at line 53 of file LumiDeadtimeHandler.py.
53 def loadVetoData(self, run):
54 if self.verbose:
print(
'Loading trigger veto data')
57 if self.vetoReader
is None:
58 self.vetoReader = CoolDataReader(
'COOLONL_TRIGGER/COMP200',
'/TRIGGER/LUMI/PerBcidDeadtime')
60 self.vetoReader.setIOVRangeFromRun(run)
61 self.vetoReader.readData()
64 print(
'Read %d Trig veto records' % len(self.vetoReader.data))
◆ countsReader
python.LumiDeadtimeHandler.LumiDeadtimeHandler.countsReader |
◆ liveFracBCID
python.LumiDeadtimeHandler.LumiDeadtimeHandler.liveFracBCID |
◆ liveFracTrig
python.LumiDeadtimeHandler.LumiDeadtimeHandler.liveFracTrig |
◆ menuReader
python.LumiDeadtimeHandler.LumiDeadtimeHandler.menuReader |
◆ trigChan
python.LumiDeadtimeHandler.LumiDeadtimeHandler.trigChan |
◆ trigList
python.LumiDeadtimeHandler.LumiDeadtimeHandler.trigList |
◆ verbose
python.LumiDeadtimeHandler.LumiDeadtimeHandler.verbose |
◆ vetoReader
python.LumiDeadtimeHandler.LumiDeadtimeHandler.vetoReader |
The documentation for this class was generated from the following file: