Jpp  19.0.0
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 
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),
21  daq_livetime(daq_livetime),
22  mc_livetime(mc_livetime)
23  {}
24 
25  virtual ~run_info()
26  {}
27 
28  ClassDef(run_info, 1);
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 
virtual ~run_info()
Definition: JRunInfo.hh:25
double mc_livetime
Definition: JRunInfo.hh:33
double daq_livetime
Definition: JRunInfo.hh:32
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:18
run_info()
Definition: JRunInfo.hh:11
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:30
int run_id
Definition: JRunInfo.hh:31
then set_variable DETECTOR set_variable OUTPUT_FILE set_variable DAQ_FILE set_variable PMT_FILE else fatal Wrong number of arguments fi JPrintTree f $DAQ_FILE type