Class Reference for E1039 Core & Analysis Software
SQEvent_v2.cxx
Go to the documentation of this file.
1 #include "SQEvent_v2.h"
2 using namespace std;
3 
5 
7  : _run_id (INT_MAX)
8  , _spill_id (INT_MAX)
9  , _event_id (INT_MAX)
10  , _trigger (0)
11  , _data_quality(INT_MAX)
12  , _qie_trig_cnt(INT_MAX)
13  , _qie_turn_id (INT_MAX)
14  , _qie_rf_id (INT_MAX)
15 {
16  memset(_qie_presums, 0, sizeof(_qie_presums));
17  memset(_qie_rf_inte, 0, sizeof(_qie_rf_inte));
18 }
19 
21 {
22  Reset();
23 }
24 
26 {
27  _run_id = INT_MAX;
28  _spill_id = INT_MAX;
29  _event_id = INT_MAX;
30  _trigger = 0;
31  _data_quality = INT_MAX;
32  _qie_trig_cnt = INT_MAX;
33  _qie_turn_id = INT_MAX;
34  _qie_rf_id = INT_MAX;
35  memset(_qie_presums, 0, sizeof(_qie_presums));
36  memset(_qie_rf_inte, 0, sizeof(_qie_rf_inte));
37 }
38 
39 void SQEvent_v2::identify(std::ostream& os) const
40 {
41  os << "---SQEvent_v2::identify:--------------------------\n"
42  << "runID: " << _run_id << " spillID: " << _spill_id << " eventID: " << _event_id << "\n";
43  for(int i = SQEvent::NIM1; i<=SQEvent::NIM5; ++i) {
44  int name = i - SQEvent::NIM1 + 1;
45  os <<"NIM"<<name<<": " << get_trigger(static_cast<SQEvent::TriggerMask>(i)) << "; ";
46  }
47  os <<endl;
48  for(int i = SQEvent::MATRIX1; i<=SQEvent::MATRIX5; ++i){
49  int name = i - SQEvent::MATRIX1 + 1;
50  os <<"MATRIX"<<name<<": " << get_trigger(static_cast<SQEvent::TriggerMask>(i)) << "; ";
51  }
52  os <<endl;
53 }
ClassImp(SQEvent_v2) SQEvent_v2
Definition: SQEvent_v2.cxx:4
virtual void Reset()
Clear Event.
Definition: SQEvent_v2.cxx:25
virtual void identify(std::ostream &os=std::cout) const
Definition: SQEvent_v2.cxx:39
virtual ~SQEvent_v2()
Definition: SQEvent_v2.cxx:20
virtual unsigned short get_trigger() const
Return the full trigger bits.
Definition: SQEvent_v2.h:46
TriggerMask
Definition: SQEvent.h:21
@ NIM5
Definition: SQEvent.h:26
@ MATRIX1
Definition: SQEvent.h:27
@ NIM1
Definition: SQEvent.h:22
@ MATRIX5
Definition: SQEvent.h:31