Skip to content

Commit bcb16b2

Browse files
Add event timestamps to the trigger_statistics.py output in the DQM (#308)
* feat(src/nectarchain/dqm): - trigger_statistics.py: add arrays of event timestamps to get_results(), to be written into the database * refactor(src/nectarchain/dqm): - trigger_statistics.py: convert event timestamps in output directly to arrays * feat(src/nectarchain/dqm): - trigger_statistics.py: add arrays of event ids to get_results(), to be written into the database
1 parent cf80cd8 commit bcb16b2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/nectarchain/dqm/trigger_statistics.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,20 @@ def get_results(self):
101101
"Others": [len(self.event_other_times)],
102102
"Wrong times": [len(self.event_wrong_times)],
103103
}
104+
self.TriggerStat_Results_Dict["TRIGGER-EVENT-TIMESTAMPS"] = {
105+
"All": np.array(self.event_times),
106+
"Physical": np.array(self.event_phy_times),
107+
"Pedestals": np.array(self.event_ped_times),
108+
"Others": np.array(self.event_other_times),
109+
"Wrong times": np.array(self.event_wrong_times),
110+
}
111+
self.TriggerStat_Results_Dict["TRIGGER-EVENT-IDS"] = {
112+
"All": np.array(self.event_id),
113+
"Physical": np.array(self.event_phy_id),
114+
"Pedestals": np.array(self.event_ped_id),
115+
"Others": np.array(self.event_other_id),
116+
"Wrong times": np.array(self.event_wrong_id),
117+
}
104118
self.TriggerStat_Results_Dict["START-TIMES"] = {
105119
"Run start time": [self.run_start1],
106120
"First event": [self.run_start],

0 commit comments

Comments
 (0)