Jpp
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
JDATABASE::JDatalogNumbers
Definition: JDatalogNumbers.hh:17
JDATABASE::JDatalogNumbers::ClassDef
ClassDef(JDatalogNumbers, 1)
JDATABASE::JDatalogNumbers::SOURCE_NAME
std::string SOURCE_NAME
Definition: JDatalogNumbers.hh:25
TObject
Definition: JRoot.hh:19
JDATABASE::JDatalogNumbers::RUN
int RUN
Definition: JDatalogNumbers.hh:23
JDATABASE::JDatalogNumbers::DATA_VALUE
double DATA_VALUE
Definition: JDatalogNumbers.hh:27
JDATABASE::JDatalogNumbers::PARAMETER_NAME
std::string PARAMETER_NAME
Definition: JDatalogNumbers.hh:26
JDATABASE
Auxiliary classes and methods for database I/O.
Definition: JAHRS.hh:12
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JDATABASE::JDatalogNumbers::getName
static const char *const getName()
Table name.
Definition: JDatalogNumbers.hh:20
JDATABASE::JDatalogNumbers::UNIXTIME
long long int UNIXTIME
Definition: JDatalogNumbers.hh:24
JDATABASE::JDatalogNumbers::getTime
double getTime() const
Get time.
Definition: JDatalogNumbers.hh:34
JDATABASE::JDatalogNumbers::DETID
std::string DETID
constraint
Definition: JDatalogNumbers.hh:22