Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garana
garana
Accessors
HeaderTree.h
Go to the documentation of this file.
1
/*
2
* HeaderTree.h
3
*
4
* Created on: Feb 9, 2021
5
* Author: chilgenb
6
*/
7
8
#ifndef GARANA_HEADERTREE_H_
9
#define GARANA_HEADERTREE_H_
10
11
#include "
garana/Base/TreeReader.h
"
12
#include <string>
13
14
namespace
garana
{
15
16
class
HeaderTree
:
public
TreeReader
{
17
18
public
:
19
20
HeaderTree
();
21
HeaderTree
(TTree*
tree
);
22
HeaderTree
(TTree* tree,
char
opt
);
23
24
Int_t
const
&
Run
()
const
;
25
Int_t
const
&
SubRun
()
const
;
26
Int_t
const
&
POT
()
const
;
27
Int_t
const
&
NSpills
()
const
;
28
const
std::string
*
const
TreeType
()
const
;
29
TLorentzVector*
const
&
TpcCenter
()
const
;
30
std::string
const
&
Geometry
()
const
;
31
void
SetRun
(
const
Int_t
run
);
32
void
SetSubRun
(
const
Int_t subrun);
33
void
SetTreeType
(
std::string
type
);
34
35
private
:
36
37
bool
SetBranchAddresses
()
override
;
38
39
//leaf types
40
Int_t
fRun
= -1;
41
Int_t
fSubRun
= -1;
42
Int_t
fPOT
= -1;
43
Int_t
fNSpills
= -1;
44
TLorentzVector*
fTpcCenter
=
nullptr
;
45
std::string
fGeometry
;
46
std::string
fTreeType
;
47
std::string
*
fTreeTypePtr
= &
fTreeType
;
48
std::string
*
fGeometryPtr
= &
fGeometry
;
49
50
//branches
51
TBranch*
b_Run
=
nullptr
;
52
TBranch*
b_SubRun
=
nullptr
;
53
TBranch*
b_TreeType
=
nullptr
;
54
TBranch*
b_TpcCenter
=
nullptr
;
55
TBranch*
b_POT
=
nullptr
;
56
TBranch*
b_NSpills
=
nullptr
;
57
TBranch*
b_Geometry
=
nullptr
;
58
59
};
//class
60
}
//namespace
61
#endif
/* HEADERTREE_H_ */
garana::TreeReader
Definition:
TreeReader.h:26
garana::HeaderTree::Geometry
std::string const & Geometry() const
Definition:
HeaderTree.cxx:70
garana::HeaderTree::TpcCenter
TLorentzVector *const & TpcCenter() const
Definition:
HeaderTree.cxx:75
garana::HeaderTree::fNSpills
Int_t fNSpills
Definition:
HeaderTree.h:43
garana::HeaderTree::SubRun
Int_t const & SubRun() const
Definition:
HeaderTree.cxx:55
garana::HeaderTree::b_TreeType
TBranch * b_TreeType
Definition:
HeaderTree.h:53
garana
Definition:
FlatDetTree.h:15
string
std::string string
Definition:
nybbler.cc:12
train.opt
opt
Definition:
train.py:196
garana::HeaderTree::SetSubRun
void SetSubRun(const Int_t subrun)
Definition:
HeaderTree.cxx:114
garana::HeaderTree::fSubRun
Int_t fSubRun
Definition:
HeaderTree.h:41
garana::HeaderTree::b_Run
TBranch * b_Run
Definition:
HeaderTree.h:51
garana::HeaderTree::POT
Int_t const & POT() const
Definition:
HeaderTree.cxx:60
garana::HeaderTree::fGeometry
std::string fGeometry
Definition:
HeaderTree.h:45
filelisting.run
int run
Definition:
filelisting.py:13
garana::HeaderTree::SetBranchAddresses
bool SetBranchAddresses() override
Definition:
HeaderTree.cxx:80
garana::HeaderTree::fTpcCenter
TLorentzVector * fTpcCenter
Definition:
HeaderTree.h:44
garana::HeaderTree::NSpills
Int_t const & NSpills() const
Definition:
HeaderTree.cxx:65
garana::HeaderTree::TreeType
const std::string *const TreeType() const
Definition:
HeaderTree.cxx:32
type
Definition:
ShowerProducedPtrsHolder.hh:36
garana::HeaderTree::b_NSpills
TBranch * b_NSpills
Definition:
HeaderTree.h:56
garana::HeaderTree::b_Geometry
TBranch * b_Geometry
Definition:
HeaderTree.h:57
garana::HeaderTree::HeaderTree
HeaderTree()
Definition:
HeaderTree.cxx:12
garana::HeaderTree::fGeometryPtr
std::string * fGeometryPtr
Definition:
HeaderTree.h:48
garana::HeaderTree::b_POT
TBranch * b_POT
Definition:
HeaderTree.h:55
garana::HeaderTree::fTreeTypePtr
std::string * fTreeTypePtr
Definition:
HeaderTree.h:47
garana::HeaderTree::fRun
Int_t fRun
Definition:
HeaderTree.h:40
garana::HeaderTree::fPOT
Int_t fPOT
Definition:
HeaderTree.h:42
garana::HeaderTree::fTreeType
std::string fTreeType
Definition:
HeaderTree.h:46
garana::HeaderTree::Run
Int_t const & Run() const
Definition:
HeaderTree.cxx:50
garana::HeaderTree
Definition:
HeaderTree.h:16
garana::HeaderTree::SetRun
void SetRun(const Int_t run)
Definition:
HeaderTree.cxx:105
garana::HeaderTree::SetTreeType
void SetTreeType(std::string type)
Definition:
HeaderTree.cxx:120
TreeReader.h
garana::HeaderTree::b_SubRun
TBranch * b_SubRun
Definition:
HeaderTree.h:52
garana::HeaderTree::b_TpcCenter
TBranch * b_TpcCenter
Definition:
HeaderTree.h:54
make_resolution.tree
tree
Definition:
make_resolution.py:22
Generated by
1.8.11