Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JDatalog.hh
Go to the documentation of this file.
1#ifndef __JDB_JDATALOG__
2#define __JDB_JDATALOG__
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 JDatalog :
18 public TObject
19 {
20 /**
21 * Default constructor.
22 */
24 run (-1),
25 string (-1),
26 floor (-1),
27 position (-1),
28 parameter(),
29 time (),
30 value (0.0)
31 {}
32
33 /**
34 * Constructor.
35 *
36 * \param run run
37 * \param string string
38 * \param floor floor
39 * \param position position
40 * \param parameter parameter
41 * \param time time
42 * \param value value
43 */
44 JDatalog(const int run,
45 const int string,
46 const int floor,
47 const int position,
48 const std::string& parameter,
49 const long long int time,
50 const double value) :
51 run (run),
52 string (string),
53 floor (floor),
56 time (time),
57 value (value)
58 {}
59
60 /**
61 * Get time.
62 *
63 * \return time [s]
64 */
65 inline double getTime() const
66 {
67 return time * 1.0e-3;
68 }
69
70 int run;
71 int string;
72 int floor;
74 std::string parameter;
75 long long int time;
76 double value;
77
79 };
80}
81
82#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).
long long int time
Definition JDatalog.hh:75
JDatalog(const int run, const int string, const int floor, const int position, const std::string &parameter, const long long int time, const double value)
Constructor.
Definition JDatalog.hh:44
double getTime() const
Get time.
Definition JDatalog.hh:65
std::string parameter
Definition JDatalog.hh:74
JDatalog()
Default constructor.
Definition JDatalog.hh:23
ClassDef(JDatalog, 2)