Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JRuns.hh
Go to the documentation of this file.
1#ifndef __JDB_JRUNS__
2#define __JDB_JRUNS__
3
4#include <TROOT.h>
5#include <TObject.h>
6
7#include <string>
8
9/**
10 * \author mdejong
11 */
12namespace JDATABASE {}
13namespace JPP { using namespace JDATABASE; }
14
15namespace JDATABASE {
16
17 struct JRuns :
18 public TObject
19 {
20 static const char* const getName() { return "runs"; } //!< Table name
21
22 int DETID; ///< constraint
23 int RUN;
24 long long int UNIXSTARTTIME;
26 std::string RUNSETUPID;
27 std::string RUNSETUPNAME;
28 std::string T0_CALIBSETID;
29 std::string POS_CALIBSETID;
30 std::string ROT_CALIBSETID;
31 std::string RUNJOBID;
32 std::string JOBTARGET;
34 long long int UNIXJOBSTART;
35 long long int UNIXJOBEND;
36
37 /**
38 * Get start time of run.
39 *
40 * \return time [s]
41 */
42 inline double getRunStartTime() const
43 {
44 return UNIXSTARTTIME * 1.0e-3;
45 }
46
48 };
49
50
51 /**
52 * Less-than operator.
53 *
54 * \param first first run
55 * \param second second run
56 * \return true if first run less than second; else false
57 */
58 inline bool operator<(const JRuns& first,
59 const JRuns& second)
60 {
61 if (first.DETID == second.DETID)
62 return first.RUN < second.RUN;
63 else
64 return first.DETID < second.DETID;
65 }
66}
67
68#endif
Auxiliary classes and methods for database I/O.
Definition JAHRS.hh:14
bool operator<(const JRunQuality &first, const JRunQuality &second)
Less-than operator.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::string ROT_CALIBSETID
Definition JRuns.hh:30
std::string T0_CALIBSETID
Definition JRuns.hh:28
std::string RUNSETUPID
Definition JRuns.hh:26
long long int UNIXJOBSTART
Definition JRuns.hh:34
std::string RUNJOBID
Definition JRuns.hh:31
long long int UNIXSTARTTIME
Definition JRuns.hh:24
std::string JOBTARGET
Definition JRuns.hh:32
ClassDef(JRuns, 2)
std::string POS_CALIBSETID
Definition JRuns.hh:29
std::string RUNSETUPNAME
Definition JRuns.hh:27
int DETID
constraint
Definition JRuns.hh:22
char STARTTIME_DEFINED
Definition JRuns.hh:25
double getRunStartTime() const
Get start time of run.
Definition JRuns.hh:42
static const char *const getName()
Table name.
Definition JRuns.hh:20
long long int UNIXJOBEND
Definition JRuns.hh:35