Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JRunInfo.hh
Go to the documentation of this file.
1#ifndef RUNINFO
2#define RUNINFO
3
4#include "TObject.h"
5
7
8struct run_info:
9 public TObject
10{
12 det_id(0),
13 run_id(0),
14 daq_livetime(0),
16 {}
17
18 run_info(const int det_id, const int run_id, const double daq_livetime, const double mc_livetime):
23 {}
24
25 virtual ~run_info()
26 {}
27
29
30 int det_id;
31 int run_id;
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(JLANG::JType< JRECONSTRUCTION::JEvt >)
Get TTree parameters for given data type.
Data structure for TTree parameters.
Auxiliary class for a type holder.
Definition JType.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)
virtual ~run_info()
Definition JRunInfo.hh:25