Jpp  17.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  */
12 namespace JDATABASE {}
13 namespace JPP { using namespace JDATABASE; }
14 
15 namespace 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;
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 
47  ClassDef(JRuns, 2);
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
bool operator<(const Head &first, const Head &second)
Less than operator.
Definition: JHead.hh:1741
Definition: JRoot.hh:19
long long int UNIXJOBSTART
Definition: JRuns.hh:34
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
double getRunStartTime() const
Get start time of run.
Definition: JRuns.hh:42
std::string RUNSETUPNAME
Definition: JRuns.hh:27
std::string JOBTARGET
Definition: JRuns.hh:32
then awk string
int JOBPRIORITY
Definition: JRuns.hh:33
std::string ROT_CALIBSETID
Definition: JRuns.hh:30
char STARTTIME_DEFINED
Definition: JRuns.hh:25
static const char *const getName()
Table name.
Definition: JRuns.hh:20
std::string T0_CALIBSETID
Definition: JRuns.hh:28
long long int UNIXJOBEND
Definition: JRuns.hh:35
std::string RUNJOBID
Definition: JRuns.hh:31
ClassDef(JRuns, 2)
std::string POS_CALIBSETID
Definition: JRuns.hh:29
int DETID
constraint
Definition: JRuns.hh:22
long long int UNIXSTARTTIME
Definition: JRuns.hh:24
std::string RUNSETUPID
Definition: JRuns.hh:26