Class Reference for E1039 Core & Analysis Software
SQHardEvent_v1.h
Go to the documentation of this file.
1 #ifndef _H_SQHardEvent_v1_H_
2 #define _H_SQHardEvent_v1_H_
3 #include <map>
4 #include <iostream>
5 //#include <limits>
6 //#include <climits>
7 #include "SQHardEvent.h"
8 
9 class SQHardEvent_v1: public SQHardEvent {
10  int _coda_event_id;
11  int _vme_time;
12  int _raw_matrix[5];
13  int _after_inh_matrix[5];
14 
15  short _flag_v1495;
16  short _n_board_qie;
17  short _n_board_v1495;
18  short _n_board_taiwan;
19  short _n_board_trig_b;
20  short _n_board_trig_c;
21 
22  public:
24  virtual ~SQHardEvent_v1();
25 
26  virtual void Reset();
27  virtual void identify(std::ostream& os = std::cout) const;
28  virtual int isValid() const { return 1; }
29  virtual SQHardEvent* Clone() const { return new SQHardEvent_v1(*this); }
30 
31  virtual int get_coda_event_id() const { return _coda_event_id; }
32  virtual void set_coda_event_id(const int a) { _coda_event_id = a; }
33 
34  virtual int get_vme_time() const { return _vme_time; }
35  virtual void set_vme_time(const int a) { _vme_time = a; }
36 
37  virtual int get_raw_matrix(const unsigned short i) const;
38  virtual void set_raw_matrix(const unsigned short i, const bool a);
39 
40  virtual int get_after_inh_matrix(const unsigned short i) const;
41  virtual void set_after_inh_matrix(const unsigned short i, const bool a);
42 
43  virtual short get_flag_v1495() const { return _flag_v1495; }
44  virtual void set_flag_v1495(const short a) { _flag_v1495 = a; }
45 
46  virtual short get_n_board_qie() const { return _n_board_qie; }
47  virtual void set_n_board_qie(const short a) { _n_board_qie = a; }
48 
49  virtual short get_n_board_v1495() const { return _n_board_v1495; }
50  virtual void set_n_board_v1495(const short a) { _n_board_v1495 = a; }
51 
52  virtual short get_n_board_taiwan() const { return _n_board_taiwan; }
53  virtual void set_n_board_taiwan(const short a) { _n_board_taiwan = a; }
54 
55  virtual short get_n_board_trig_bit() const { return _n_board_trig_b; }
56  virtual void set_n_board_trig_bit(const short a) { _n_board_trig_b = a; }
57 
58  virtual short get_n_board_trig_count() const { return _n_board_trig_c; }
59  virtual void set_n_board_trig_count(const short a) { _n_board_trig_c = a; }
60 
62 };
63 
64 #endif /* _H_SQHardEvent_v1_H_ */
virtual void set_coda_event_id(const int a)
virtual void set_n_board_trig_bit(const short a)
virtual void set_after_inh_matrix(const unsigned short i, const bool a)
virtual void set_flag_v1495(const short a)
virtual ~SQHardEvent_v1()
virtual short get_n_board_qie() const
Return the number of QIE boards read out.
virtual void set_n_board_v1495(const short a)
virtual void set_n_board_taiwan(const short a)
virtual void set_n_board_trig_count(const short a)
virtual int get_raw_matrix(const unsigned short i) const
Return the raw count of the selected trigger channel.
virtual short get_n_board_trig_count() const
Return the number of trigger-count boards read out.
virtual SQHardEvent * Clone() const
virtual short get_n_board_v1495() const
Return the number of V1495 boards read out.
virtual void Reset()
Clear Event.
virtual int get_after_inh_matrix(const unsigned short i) const
Return the after-inhibited count of the selected trigger channel.
virtual int isValid() const
isValid returns non zero if object contains vailid data
virtual short get_n_board_taiwan() const
Return the number of Taiwan-TDC boards read out.
virtual int get_vme_time() const
Return the VME time.
virtual void set_vme_time(const int a)
virtual void set_n_board_qie(const short a)
virtual short get_n_board_trig_bit() const
Return the number of trigger-bit boards read out.
virtual void set_raw_matrix(const unsigned short i, const bool a)
ClassDef(SQHardEvent_v1, 1)
virtual int get_coda_event_id() const
Return the Coda-event ID, which is unique per run.
virtual short get_flag_v1495() const
Return the quality flag of the V1495 readout.
virtual void identify(std::ostream &os=std::cout) const
An SQ interface class to hold one hardware-related event info.
Definition: SQHardEvent.h:7