Jpp  18.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JRunInfo.hh
Go to the documentation of this file.
1 #ifndef RUNINFO
2 #define RUNINFO
3 
5 
6 struct run_info:
7  public TObject
8 {
10  det_id(0),
11  run_id(0),
12  daq_livetime(0),
13  mc_livetime(0)
14  {}
15 
16  run_info(const int det_id, const int run_id, const double daq_livetime, const double mc_livetime):
17  det_id(det_id),
18  run_id(run_id),
19  daq_livetime(daq_livetime),
20  mc_livetime(mc_livetime)
21  {}
22 
23  virtual ~run_info()
24  {}
25 
26  ClassDef(run_info, 1);
27 
28  int det_id;
29  int run_id;
30  double daq_livetime;
31  double mc_livetime;
32 };
33 
34 
35 /**
36  * \param type data type
37  * \return TTree parameters
38  */
40 {
41  return JROOT::JTreeParameters("RUNINFO", "run_info", "", 2, 65536, 2);
42 }
43 
44 
45 #endif
46 
virtual ~run_info()
Definition: JRunInfo.hh:23
double mc_livetime
Definition: JRunInfo.hh:31
double daq_livetime
Definition: JRunInfo.hh:30
Definition: JRoot.hh:19
Auxiliary class for a type holder.
Definition: JType.hh:19
run_info(const int det_id, const int run_id, const double daq_livetime, const double mc_livetime)
Definition: JRunInfo.hh:16
run_info()
Definition: JRunInfo.hh:9
Data structure for TTree parameters.
JROOT::JTreeParameters getTreeParameters(JLANG::JType< JRECONSTRUCTION::JEvt >)
Get TTree parameters for given data type.
ClassDef(run_info, 1)
int det_id
Definition: JRunInfo.hh:28
int run_id
Definition: JRunInfo.hh:29