Class Reference for E1039 Core & Analysis Software
SQRun.h
Go to the documentation of this file.
1 /*
2  * SQRun.h
3  *
4  * Created on: Oct 29, 2017
5  * Author: yuhw
6  */
7 
8 #ifndef _H_SQRun_H_
9 #define _H_SQRun_H_
10 
11 #include <phool/PHObject.h>
12 
13 #include <map>
14 #include <iostream>
15 #include <limits>
16 
18 class SQRun: public PHObject {
19 
20 public:
21 
22  virtual ~SQRun() {}
23 
24  void Reset() {}
25 
26  virtual void identify(std::ostream& os = std::cout) const {
27  std::cout
28  << "---SQRun::identify: -------------------"
29  << std::endl;
30  }
31 
32  virtual int get_run_id() const {return std::numeric_limits<int>::max();}
33  virtual void set_run_id(const int a) {}
34 
35  virtual int get_unix_time_begin() const {return std::numeric_limits<int>::max();}
36  virtual void set_unix_time_begin(const int a) {}
37 
38  virtual int get_unix_time_end() const {return std::numeric_limits<int>::max();}
39  virtual void set_unix_time_end(const int a) {}
40 
41  virtual int get_fpga_enabled(const int chan) const {return std::numeric_limits<int>::max();}
42  virtual void set_fpga_enabled(const int chan, const int a) {}
43 
44  virtual int get_nim_enabled(const int chan) const {return std::numeric_limits<int>::max();}
45  virtual void set_nim_enabled(const int chan, const int a) {}
46 
47  virtual int get_fpga_prescale(const int chan) const {return std::numeric_limits<int>::max();}
48  virtual void set_fpga_prescale(const int chan, const int a) {}
49 
50  virtual int get_nim_prescale(const int chan) const {return std::numeric_limits<int>::max();}
51  virtual void set_nim_prescale(const int chan, const int a) {}
52 
53  virtual int get_v1495_id(const int chan) const {return std::numeric_limits<int>::max();}
54  virtual void set_v1495_id(const int chan, const int id) {}
55 
56  virtual std::string get_run_desc() const {return "";}
57  virtual void set_run_desc(const std::string a) {}
58 
59  virtual int get_n_fee_event() const {return std::numeric_limits<int>::max();}
60  virtual void set_n_fee_event(const int a) {}
61 
62  virtual int get_n_fee_prescale() const {return std::numeric_limits<int>::max();}
63  virtual void set_n_fee_prescale(const int a) {}
64 
65  virtual int get_n_run_desc() const {return std::numeric_limits<int>::max();}
66  virtual void set_n_run_desc(const int a) {}
67 
68  virtual int get_n_spill() const {return std::numeric_limits<int>::max();}
69  virtual void set_n_spill(const int a) {}
70 
71  virtual int get_n_evt_all() const {return std::numeric_limits<int>::max();}
72  virtual void set_n_evt_all(const int a) {}
73 
74  virtual int get_n_evt_dec() const {return std::numeric_limits<int>::max();}
75  virtual void set_n_evt_dec(const int a) {}
76 
77  virtual int get_n_phys_evt() const {return std::numeric_limits<int>::max();}
78  virtual void set_n_phys_evt(const int a) {}
79 
80  virtual int get_n_phys_evt_bad() const {return std::numeric_limits<int>::max();}
81  virtual void set_n_phys_evt_bad(const int a) {}
82 
83  virtual int get_n_flush_evt() const {return std::numeric_limits<int>::max();}
84  virtual void set_n_flush_evt(const int a) {}
85 
86  virtual int get_n_flush_evt_bad() const {return std::numeric_limits<int>::max();}
87  virtual void set_n_flush_evt_bad(const int a) {}
88 
89  virtual int get_n_hit() const {return std::numeric_limits<int>::max();}
90  virtual void set_n_hit(const int a) {}
91 
92  virtual int get_n_t_hit() const {return std::numeric_limits<int>::max();}
93  virtual void set_n_t_hit(const int a) {}
94 
95  virtual int get_n_hit_bad() const {return std::numeric_limits<int>::max();}
96  virtual void set_n_hit_bad(const int a) {}
97 
98  virtual int get_n_t_hit_bad() const {return std::numeric_limits<int>::max();}
99  virtual void set_n_t_hit_bad(const int a) {}
100 
101  virtual int get_n_v1495() const {return std::numeric_limits<int>::max();}
102  virtual void set_n_v1495(const int a) {}
103 
104  virtual int get_n_v1495_d1ad() const {return std::numeric_limits<int>::max();}
105  virtual void set_n_v1495_d1ad(const int a) {}
106 
107  virtual int get_n_v1495_d2ad() const {return std::numeric_limits<int>::max();}
108  virtual void set_n_v1495_d2ad(const int a) {}
109 
110  virtual int get_n_v1495_d3ad() const {return std::numeric_limits<int>::max();}
111  virtual void set_n_v1495_d3ad(const int a) {}
112 
113 protected:
114 
115  SQRun(){};
116 
118 };
119 
120 #endif /* _H_SQRun_H_ */
An SQ interface class to hold the run-level info.
Definition: SQRun.h:18
virtual int get_unix_time_end() const
Return the Unix time when this run ended.
Definition: SQRun.h:38
virtual int get_n_t_hit() const
Return the number of all V1495-TDC (i.e. trigger) hits.
Definition: SQRun.h:92
virtual void set_n_v1495_d1ad(const int a)
Definition: SQRun.h:105
virtual void set_run_id(const int a)
Definition: SQRun.h:33
virtual void set_n_spill(const int a)
Definition: SQRun.h:69
virtual void set_n_evt_all(const int a)
Definition: SQRun.h:72
virtual void set_fpga_enabled(const int chan, const int a)
Definition: SQRun.h:42
virtual void set_n_run_desc(const int a)
Definition: SQRun.h:66
virtual void set_n_v1495_d2ad(const int a)
Definition: SQRun.h:108
virtual std::string get_run_desc() const
Return the run description of this run.
Definition: SQRun.h:56
virtual int get_n_hit_bad() const
Return the number of bad Taiwan-TDC hits.
Definition: SQRun.h:95
virtual void set_n_flush_evt(const int a)
Definition: SQRun.h:84
virtual int get_fpga_prescale(const int chan) const
Return the prescale factor of the given channel ('chan') of the FPGA trigger in this run.
Definition: SQRun.h:47
virtual int get_nim_enabled(const int chan) const
Return 'true' if the given channel ('chan') of the NIM trigger was enabled in this run.
Definition: SQRun.h:44
virtual void set_n_t_hit_bad(const int a)
Definition: SQRun.h:99
virtual int get_n_v1495() const
Return the number of all V1495 events.
Definition: SQRun.h:101
virtual void set_n_phys_evt(const int a)
Definition: SQRun.h:78
virtual int get_n_evt_all() const
Return the number of all recorded events.
Definition: SQRun.h:71
virtual int get_n_v1495_d2ad() const
Return the number of V1495 events having 'd2ad'.
Definition: SQRun.h:107
virtual int get_n_spill() const
Return the number of spill events.
Definition: SQRun.h:68
virtual void set_n_t_hit(const int a)
Definition: SQRun.h:93
virtual int get_n_flush_evt() const
Return the number of all FLUSH events.
Definition: SQRun.h:83
virtual int get_n_t_hit_bad() const
Return the number of bad V1495-TDC (i.e. trigger) hits.
Definition: SQRun.h:98
virtual int get_n_hit() const
Return the number of all Taiwan-TDC hits.
Definition: SQRun.h:89
virtual void set_unix_time_begin(const int a)
Definition: SQRun.h:36
virtual int get_unix_time_begin() const
Return the Unix time when this run began.
Definition: SQRun.h:35
virtual int get_n_phys_evt_bad() const
Return the number of bad PHYSICS events.
Definition: SQRun.h:80
virtual void set_v1495_id(const int chan, const int id)
Definition: SQRun.h:54
virtual int get_n_v1495_d1ad() const
Return the number of V1495 events having 'd1ad'.
Definition: SQRun.h:104
SQRun()
Definition: SQRun.h:115
virtual int get_nim_prescale(const int chan) const
Return the prescale factor of the given channel ('chan') of the NIM trigger in this run.
Definition: SQRun.h:50
void Reset()
Clear Event.
Definition: SQRun.h:24
virtual void set_n_v1495(const int a)
Definition: SQRun.h:102
virtual void set_unix_time_end(const int a)
Definition: SQRun.h:39
virtual void set_n_hit_bad(const int a)
Definition: SQRun.h:96
virtual void set_run_desc(const std::string a)
Definition: SQRun.h:57
virtual int get_fpga_enabled(const int chan) const
Return 'true' if the given channel ('chan') of the FPGA trigger was enabled in this run.
Definition: SQRun.h:41
virtual int get_n_fee_prescale() const
Return the number of FEE-prescale events.
Definition: SQRun.h:62
virtual void set_fpga_prescale(const int chan, const int a)
Definition: SQRun.h:48
virtual int get_v1495_id(const int chan) const
Return the ID of the chan-th V1495 boards.
Definition: SQRun.h:53
virtual int get_n_evt_dec() const
Return the number of decoded events. The online decoding usually skips a part of events in order to f...
Definition: SQRun.h:74
ClassDef(SQRun, 1)
virtual void set_n_phys_evt_bad(const int a)
Definition: SQRun.h:81
virtual int get_n_run_desc() const
Return the number of run-description events.
Definition: SQRun.h:65
virtual void set_n_evt_dec(const int a)
Definition: SQRun.h:75
virtual ~SQRun()
Definition: SQRun.h:22
virtual void set_n_fee_prescale(const int a)
Definition: SQRun.h:63
virtual void set_n_fee_event(const int a)
Definition: SQRun.h:60
virtual void set_nim_enabled(const int chan, const int a)
Definition: SQRun.h:45
virtual void set_n_flush_evt_bad(const int a)
Definition: SQRun.h:87
virtual void set_n_v1495_d3ad(const int a)
Definition: SQRun.h:111
virtual void identify(std::ostream &os=std::cout) const
Definition: SQRun.h:26
virtual void set_n_hit(const int a)
Definition: SQRun.h:90
virtual int get_n_fee_event() const
Return the number of FEE events.
Definition: SQRun.h:59
virtual int get_n_v1495_d3ad() const
Return the number of V1495 events having 'd3ad'.
Definition: SQRun.h:110
virtual int get_run_id() const
Return the run ID.
Definition: SQRun.h:32
virtual void set_nim_prescale(const int chan, const int a)
Definition: SQRun.h:51
virtual int get_n_phys_evt() const
Return the number of all PHYSICS events.
Definition: SQRun.h:77
virtual int get_n_flush_evt_bad() const
Return the number of bad FLUSH events.
Definition: SQRun.h:86