hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TriggerData.cxx
Go to the documentation of this file.
1
7#include "TriggerData.h"
8
9TriggerData::TriggerData(EVENT::LCGenericObject* trigger_data) {
10 this->parseTriggerData(trigger_data);
11}
12
13void TriggerData::parseTriggerData(EVENT::LCGenericObject* trigger_data) {
14
15 int trigger_data_int = trigger_data->getIntVal(1);
16 single0_ = ((trigger_data_int >> 24) & 1) == 1;
17 single1_ = ((trigger_data_int >> 25) & 1) == 1;
18 pair0_ = ((trigger_data_int >> 26) & 1) == 1;
19 pair1_ = ((trigger_data_int >> 27) & 1) == 1;
20 pulser_ = ((trigger_data_int >> 29) & 1) == 1;
21
22 trigger_data_int = trigger_data->getIntVal(3);
23 long w1 = trigger_data_int & 0xffffffffL;
24 trigger_data_int = trigger_data->getIntVal(4);
25 long w2 = trigger_data_int & 0xffffffffL;
26
27 long timelo = w1;
28 long timehi = (w2 & 0xffff) << 32;
29
30 time_stamp_ = 4 * (timelo + timehi);
31}
Class used to decode TI information.
TriggerData(EVENT::LCGenericObject *trigger_data)
long time_stamp_
Definition TriggerData.h:51
void parseTriggerData(EVENT::LCGenericObject *trigger_data)