Class Reference for E1039 Core & Analysis Software
SQEvent_v1.cxx
Go to the documentation of this file.
1 /*
2  * SQEvent_v1.C
3  *
4  * Created on: Oct 29, 2017
5  * Author: yuhw
6  */
7 
8 
9 
10 #include "SQEvent_v1.h"
11 
12 using namespace std;
13 
15 
17 _run_id(INT_MAX),
18 _spill_id(INT_MAX),
19 _event_id(INT_MAX),
20 _coda_event_id(INT_MAX),
21 _trigger(0),
22 _data_quality(INT_MAX),
23 _vme_time(INT_MAX),
24 _qie_trig_cnt(INT_MAX),
25 _qie_turn_id(INT_MAX),
26 _qie_rf_id(INT_MAX),
27 _flag_v1495(SHRT_MAX),
28 _n_board_qie(SHRT_MAX),
29 _n_board_v1495(SHRT_MAX),
30 _n_board_taiwan(SHRT_MAX),
31 _n_board_trig_b(SHRT_MAX),
32 _n_board_trig_c(SHRT_MAX)
33 {
34  memset(_raw_matrix , 0, sizeof(_raw_matrix));
35  memset(_after_inh_matrix, 0, sizeof(_after_inh_matrix));
36  memset(_qie_presums , 0, sizeof(_qie_presums));
37  memset(_qie_rf_inte , 0, sizeof(_qie_rf_inte));
38 }
39 
41  Reset();
42 }
43 
45  _run_id = INT_MAX;
46  _spill_id = INT_MAX;
47  _event_id = INT_MAX;
48  _coda_event_id = INT_MAX;
49  _trigger = 0;
50  _data_quality = INT_MAX;
51  _vme_time = INT_MAX;
52  _qie_trig_cnt = INT_MAX;
53  _qie_turn_id = INT_MAX;
54  _qie_rf_id = INT_MAX;
55  _flag_v1495 = SHRT_MAX;
56  _n_board_qie = SHRT_MAX;
57  _n_board_v1495 = SHRT_MAX;
58  _n_board_taiwan = SHRT_MAX;
59  _n_board_trig_b = SHRT_MAX;
60  _n_board_trig_c = SHRT_MAX;
61  memset(_raw_matrix , 0, sizeof(_raw_matrix));
62  memset(_after_inh_matrix, 0, sizeof(_after_inh_matrix));
63  memset(_qie_presums , 0, sizeof(_qie_presums));
64  memset(_qie_rf_inte , 0, sizeof(_qie_rf_inte));
65  return;
66 }
67 
68 void SQEvent_v1::identify(std::ostream& os) const {
69  cout << "---SQEvent_v1::identify:--------------------------" << endl;
70  cout
71  << "runID: " << _run_id
72  << " spillID: " << _spill_id
73  << " eventID: " << _event_id
74  << " codaEventID: " << _coda_event_id
75  << endl;
76  for(int i = SQEvent::NIM1; i<=SQEvent::NIM5; ++i) {
77  int name = i - SQEvent::NIM1 + 1;
78  cout <<"NIM"<<name<<": " << get_trigger(static_cast<SQEvent::TriggerMask>(i)) << "; ";
79  }
80  cout <<endl;
81  for(int i = SQEvent::MATRIX1; i<=SQEvent::MATRIX5; ++i){
82  int name = i - SQEvent::MATRIX1 + 1;
83  cout <<"MATRIX"<<name<<": " << get_trigger(static_cast<SQEvent::TriggerMask>(i)) << "; ";
84  }
85  cout <<endl;
86  return;
87 }
ClassImp(SQEvent_v1) SQEvent_v1
Definition: SQEvent_v1.cxx:14
virtual unsigned short get_trigger() const
Return the full trigger bits.
Definition: SQEvent_v1.h:55
unsigned short _trigger
Definition: SQEvent_v1.h:129
short _n_board_taiwan
Definition: SQEvent_v1.h:148
short _n_board_v1495
Definition: SQEvent_v1.h:147
int _spill_id
Definition: SQEvent_v1.h:125
short _n_board_qie
Definition: SQEvent_v1.h:146
short _flag_v1495
Definition: SQEvent_v1.h:145
int _event_id
Definition: SQEvent_v1.h:126
int _coda_event_id
Definition: SQEvent_v1.h:127
int _vme_time
Definition: SQEvent_v1.h:137
int _after_inh_matrix[5]
Definition: SQEvent_v1.h:133
short _n_board_trig_c
Definition: SQEvent_v1.h:150
int _qie_trig_cnt
Definition: SQEvent_v1.h:140
int _qie_rf_inte[33]
Definition: SQEvent_v1.h:143
int _qie_rf_id
Definition: SQEvent_v1.h:142
int _qie_turn_id
Definition: SQEvent_v1.h:141
void Reset()
Clear Event.
Definition: SQEvent_v1.cxx:44
int _data_quality
Definition: SQEvent_v1.h:135
int _qie_presums[4]
Definition: SQEvent_v1.h:139
virtual ~SQEvent_v1()
Definition: SQEvent_v1.cxx:40
int _raw_matrix[5]
Definition: SQEvent_v1.h:131
short _n_board_trig_b
Definition: SQEvent_v1.h:149
virtual void identify(std::ostream &os=std::cout) const
Definition: SQEvent_v1.cxx:68
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