Jpp  15.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JRunQuality.hh
Go to the documentation of this file.
1 #ifndef __JDB_JRUNQUALITY__
2 #define __JDB_JRUNQUALITY__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 #include <string>
8 #include <istream>
9 
11 
12 /**
13  * \author mdejong
14  */
15 namespace JDATABASE {}
16 namespace JPP { using namespace JDATABASE; }
17 
18 namespace KM3NeT {
19  namespace DB {
20  class ResultSet;
21  }
22 }
23 
24 namespace JDATABASE {
25 
26  using KM3NeT::DB::ResultSet;
27 
28  /**
29  * Auxiliary data structure for data quality.
30  *
31  * For ASCII I/O, the number, order and type of the data members of this data structure
32  * should be compatible with the output of the script JQAQC.sh.
33  */
34  struct JRunQuality :
35  public TObject
36  {
37  static const char* const getName() { return JRunSummaryNumbers::getName(); } //!< Table name
38 
39  struct JPrescaler :
40  public TObject
41  {
43  prescale(0)
44  {}
45 
46  int prescale;
47 
48  ClassDef(JPrescaler, 1);
49  };
50 
51  struct JEnabled :
52  public TObject
53  {
55  enabled(0)
56  {}
57 
58  int enabled;
59 
60  ClassDef(JEnabled, 1);
61  };
62 
63 
65  GIT(),
66  detector(0),
67  run(0),
68  livetime_s(0.0),
69  UTCMin_s (0.0),
70  UTCMax_s (0.0),
71  trigger3DMuon(),
74  triggerNB(),
75  writeL0(),
76  writeL1(),
77  writeL2(),
78  writeSN(),
79  JDAQTimeslice (0),
80  JDAQTimesliceL0 (0),
81  JDAQTimesliceL1 (0),
82  JDAQTimesliceL2 (0),
83  JDAQTimesliceSN (0),
85  JDAQEvent (0),
88  JTrigger3DMuon (0),
89  JTriggerNB (0),
90  in_sync (0),
91  out_sync(0),
92  DAQ (0.0),
93  WR (0.0),
94  HRV (0.0),
95  FIFO(0.0),
96  PMTs(0.0),
97  MEAN_Rate_Hz(0.0),
98  RMS_Rate_Hz (0.0),
99  Acoustics(0),
100  AHRS(0.0)
101  {}
102 
103  /**
104  * Put value at given key.
105  *
106  * \param key key
107  * \param value value
108  */
109  void put(const std::string& key,
110  const std::string& value);
111 
112 
113  std::string GIT;
114  int detector;
115  int run;
116  double livetime_s;
117  double UTCMin_s;
118  double UTCMax_s;
138  int in_sync;
139  int out_sync;
140  double DAQ;
141  double WR;
142  double HRV;
143  double FIFO;
144  double PMTs;
145  double MEAN_Rate_Hz;
146  double RMS_Rate_Hz;
148  double AHRS;
149 
150  ClassDef(JRunQuality, 2);
151  };
152 
153 
154  /**
155  * Less-than operator.
156  *
157  * \param first first run quality
158  * \param second second run quality
159  * \return true if first run quality less than second; else false
160  */
161  inline bool operator<(const JRunQuality& first,
162  const JRunQuality& second)
163  {
164  if (first.detector == second.detector)
165  return first.run < second.run;
166  else
167  return first.detector < second.detector;
168  }
169 }
170 
171 #endif
bool operator<(const Head &first, const Head &second)
Less than operator.
Definition: JHead.hh:1603
Definition: JRoot.hh:19
static const char *const getName()
Table name.
Definition: JRunQuality.hh:37
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
void put(const std::string &key, const std::string &value)
Put value at given key.
Definition: JRunQuality.cc:25
then for DETECTOR in Antares KM3NeT
Definition: JMultiPMT.sh:45
ClassDef(JRunQuality, 2)
static const char *const getName()
Table name.
Auxiliary data structure for data quality.
Definition: JRunQuality.hh:34