Jpp
19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
software
JDB
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
*/
12
namespace
JDATABASE
{}
13
namespace
JPP
{
using namespace
JDATABASE
; }
14
15
namespace
JDATABASE
{
16
17
struct
JDatalog
:
18
public
TObject
19
{
20
/**
21
* Default constructor.
22
*/
23
JDatalog
() :
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
),
54
position
(
position
),
55
parameter
(
parameter
),
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
;
73
int
position
;
74
std::string
parameter
;
75
long
long
int
time
;
76
double
value
;
77
78
ClassDef
(
JDatalog
, 2);
79
};
80
}
81
82
#endif
JDATABASE
Auxiliary classes and methods for database I/O.
Definition
JAHRS.hh:14
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition
JAAnetToolkit.hh:43
JDATABASE::JDatalog
Definition
JDatalog.hh:19
JDATABASE::JDatalog::value
double value
Definition
JDatalog.hh:76
JDATABASE::JDatalog::time
long long int time
Definition
JDatalog.hh:75
JDATABASE::JDatalog::string
int string
Definition
JDatalog.hh:71
JDATABASE::JDatalog::run
int run
Definition
JDatalog.hh:70
JDATABASE::JDatalog::JDatalog
JDatalog(const int run, const int string, const int floor, const int position, const std::string ¶meter, const long long int time, const double value)
Constructor.
Definition
JDatalog.hh:44
JDATABASE::JDatalog::floor
int floor
Definition
JDatalog.hh:72
JDATABASE::JDatalog::getTime
double getTime() const
Get time.
Definition
JDatalog.hh:65
JDATABASE::JDatalog::parameter
std::string parameter
Definition
JDatalog.hh:74
JDATABASE::JDatalog::JDatalog
JDatalog()
Default constructor.
Definition
JDatalog.hh:23
JDATABASE::JDatalog::ClassDef
ClassDef(JDatalog, 2)
JDATABASE::JDatalog::position
int position
Definition
JDatalog.hh:73
TObject
Definition
JROOT_t.hh:19
Generated by
1.12.0