Jpp  16.0.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  */
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
double getTime() const
Get time.
Definition: JDatalog.hh:65
Definition: JRoot.hh:19
JDatalog()
Default constructor.
Definition: JDatalog.hh:23
ClassDef(JDatalog, 2)
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
std::string parameter
Definition: JDatalog.hh:74
long long int time
Definition: JDatalog.hh:75