#include <TreeReader.h>
Definition at line 26 of file TreeReader.h.
virtual garana::TreeReader::~TreeReader |
( |
| ) |
|
|
inlinevirtual |
bool TreeReader::BlockWrite |
( |
| ) |
const |
Definition at line 93 of file TreeReader.cxx.
95 std::cerr <<
"WARNING(TreeReader): Write method invoked for read-only accessor - " 96 <<
" ignoring method call..." <<
std::endl;
QTextStream & endl(QTextStream &s)
void TreeReader::CheckOpt |
( |
char |
opt | ) |
|
Definition at line 67 of file TreeReader.cxx.
85 std::cerr <<
"WARNING(TreeReader): Unknown option specified '" 86 <<
opt <<
"'. Option should be 'R'/'r' (read-only)" 87 <<
" or 'W'/'w' (write). Setting option to read-only."
QTextStream & endl(QTextStream &s)
Int_t TreeReader::Event |
( |
| ) |
const |
Definition at line 30 of file TreeReader.cxx.
Int_t fEvent
event number for tree entry
void TreeReader::Fill |
( |
| ) |
|
Definition at line 51 of file TreeReader.cxx.
TTree * fTreeIn
pointer to the analyzed TTree or TChain
const TObjArray * TreeReader::GetBranchList |
( |
| ) |
const |
Definition at line 47 of file TreeReader.cxx.
48 return fTreeIn->GetListOfBranches();
TTree * fTreeIn
pointer to the analyzed TTree or TChain
void TreeReader::GetEntry |
( |
const UInt_t & |
ientry = 0 | ) |
|
|
virtual |
TTree * TreeReader::GetInputTree |
( |
| ) |
|
Definition at line 26 of file TreeReader.cxx.
TTree * fTreeIn
pointer to the analyzed TTree or TChain
size_t TreeReader::NEntries |
( |
| ) |
const |
Definition at line 35 of file TreeReader.cxx.
TTree * fTreeIn
pointer to the analyzed TTree or TChain
virtual bool garana::TreeReader::SetBranchAddresses |
( |
| ) |
|
|
pure virtual |
Implemented in garana::FlatRecoTree, garana::StructuredRecoTree, garana::FlatGenTree, garana::FlatG4Tree, garana::StructuredG4Tree, garana::HeaderTree, garana::StructuredDetTree, garana::FlatDetTree, garana::FlatDisplayTree, garana::StructuredDisplayTree, and garana::StructuredGenTree.
void TreeReader::SetupRead |
( |
TTree * |
tree = 0 | ) |
|
Definition at line 6 of file TreeReader.cxx.
19 std::cerr <<
"TreeReader::SetupRead error: input tree not valid" <<
std::endl;
22 std::cerr <<
"TreeReader::SetupRead error: failed to set branch addresses" <<
std::endl;
TTree * fTreeIn
pointer to the analyzed TTree or TChain
virtual bool SetBranchAddresses()=0
QTextStream & endl(QTextStream &s)
void TreeReader::Write |
( |
| ) |
|
Definition at line 58 of file TreeReader.cxx.
TTree * fTreeIn
pointer to the analyzed TTree or TChain
TBranch* garana::TreeReader::b_Event = nullptr |
|
protected |
UInt_t garana::TreeReader::fCurrentEntry = UINT_MAX |
|
protected |
Int_t garana::TreeReader::fEvent = -1 |
|
protected |
event number for tree entry
Definition at line 55 of file TreeReader.h.
char garana::TreeReader::fOpt = 'r' |
|
protected |
TTree* garana::TreeReader::fTreeIn = nullptr |
|
protected |
pointer to the analyzed TTree or TChain
Definition at line 51 of file TreeReader.h.
The documentation for this class was generated from the following files: