Jpp
19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
software
JRunAnalyzer
JRunInfo.hh
Go to the documentation of this file.
1
#ifndef RUNINFO
2
#define RUNINFO
3
4
#include "TObject.h"
5
6
#include "
JROOT/JTreeParameters.hh
"
7
8
struct
run_info
:
9
public
TObject
10
{
11
run_info
():
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
*/
41
inline
JROOT::JTreeParameters
getTreeParameters
(
const
JLANG::JType<run_info>
& type)
42
{
43
return
JROOT::JTreeParameters
(
"RUNINFO"
,
"run_info"
,
""
, 2, 65536, 2);
44
}
45
46
47
#endif
48
getTreeParameters
JROOT::JTreeParameters getTreeParameters(JLANG::JType< JRECONSTRUCTION::JEvt >)
Get TTree parameters for given data type.
Definition
JReconstruction/JEvt.hh:501
JTreeParameters.hh
JROOT::JTreeParameters
Data structure for TTree parameters.
Definition
JTreeParameters.hh:30
JLANG::JType
Auxiliary class for a type holder.
Definition
JType.hh:19
TObject
Definition
JROOT_t.hh:19
run_info
Definition
JRunInfo.hh:10
run_info::run_id
int run_id
Definition
JRunInfo.hh:31
run_info::run_info
run_info(const int det_id, const int run_id, const double daq_livetime, const double mc_livetime)
Definition
JRunInfo.hh:18
run_info::det_id
int det_id
Definition
JRunInfo.hh:30
run_info::mc_livetime
double mc_livetime
Definition
JRunInfo.hh:33
run_info::daq_livetime
double daq_livetime
Definition
JRunInfo.hh:32
run_info::ClassDef
ClassDef(run_info, 1)
run_info::run_info
run_info()
Definition
JRunInfo.hh:11
run_info::~run_info
virtual ~run_info()
Definition
JRunInfo.hh:25
Generated by
1.12.0