Jpp  master_rocky-43-ge265d140c
the software that should make you happy
JDatalogNumbers.hh
Go to the documentation of this file.
1 #ifndef __JDB_JDATALOGNUMBERS__
2 #define __JDB_JDATALOGNUMBERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 #include <string>
8 
9 /**
10  * \author mdejong
11  */
12 namespace JDATABASE {}
13 namespace JPP { using namespace JDATABASE; }
14 
15 namespace JDATABASE {
16 
17  struct JDatalogNumbers :
18  public TObject
19  {
20  static const char* const getName() { return "datalognumbers"; } //!< Table name
21 
22  std::string DETID; ///< constraint
23  int RUN;
24  long long int UNIXTIME;
25  std::string SOURCE_NAME;
26  std::string PARAMETER_NAME;
27  double DATA_VALUE;
28 
29  /**
30  * Get time.
31  *
32  * \return time [s]
33  */
34  inline double getTime() const
35  {
36  return UNIXTIME * 1.0e-3;
37  }
38 
40  };
41 }
42 
43 #endif
Auxiliary classes and methods for database I/O.
Definition: JAHRS.hh:14
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const char *const getName()
Table name.
double getTime() const
Get time.
std::string DETID
constraint
ClassDef(JDatalogNumbers, 1)
Definition: JRoot.hh:19