Jpp  19.1.0-rc.1
the software that should make you happy
JRunInfo.hh
Go to the documentation of this file.
1 #ifndef RUNINFO
2 #define RUNINFO
3 
4 #include "TObject.h"
5 
7 
8 struct run_info:
9  public TObject
10 {
12  det_id(0),
13  run_id(0),
14  daq_livetime(0),
15  mc_livetime(0)
16  {}
17 
18  run_info(const int det_id, const int run_id, const double daq_livetime, const double mc_livetime):
19  det_id(det_id),
20  run_id(run_id),
23  {}
24 
25  virtual ~run_info()
26  {}
27 
29 
30  int det_id;
31  int run_id;
32  double daq_livetime;
33  double mc_livetime;
34 };
35 
36 
37 /**
38  * \param type data type
39  * \return TTree parameters
40  */
42 {
43  return JROOT::JTreeParameters("RUNINFO", "run_info", "", 2, 65536, 2);
44 }
45 
46 
47 #endif
48 
JROOT::JTreeParameters getTreeParameters(const JLANG::JType< run_info > &type)
Definition: JRunInfo.hh:41
Data structure for TTree parameters.
Auxiliary class for a type holder.
Definition: JType.hh:19
Definition: JRoot.hh:19
int run_id
Definition: JRunInfo.hh:31
run_info(const int det_id, const int run_id, const double daq_livetime, const double mc_livetime)
Definition: JRunInfo.hh:18
int det_id
Definition: JRunInfo.hh:30
double mc_livetime
Definition: JRunInfo.hh:33
double daq_livetime
Definition: JRunInfo.hh:32
ClassDef(run_info, 1)
run_info()
Definition: JRunInfo.hh:11
virtual ~run_info()
Definition: JRunInfo.hh:25