base class for ntuple block The class can handle float and integer block and supports sub blocks.
More...
#include <MuonInsideOutValidationNtuple.h>
Inherited by Muon::MuonInsideOutValidationNtuple, Muon::MuonValidationCandidateBlock, Muon::MuonValidationHitBlock, Muon::MuonValidationHoughBlock, Muon::MuonValidationIdBlock, Muon::MuonValidationResidualBlock, Muon::MuonValidationSegmentBlock, Muon::MuonValidationTimeBlock, Muon::MuonValidationTrackBlock, Muon::MuonValidationTrackParticleBlock, and Muon::MuonValidationTruthBlock.
|
| typedef std::pair< std::reference_wrapper< std::vector< int > * >, std::string > | IntBlock |
| typedef std::pair< std::reference_wrapper< std::vector< unsigned int > * >, std::string > | UnsignedIntBlock |
| typedef std::pair< std::reference_wrapper< std::vector< float > * >, std::string > | FloatBlock |
| typedef std::pair< MuonValidationBlockBase *, std::string > | SubBlock |
base class for ntuple block The class can handle float and integer block and supports sub blocks.
Internally it caches the blocks in vectors which it uses to operate on them.
Users should add all content they want in the ntuple in the constructor of they concrete classes.
Definition at line 26 of file MuonInsideOutValidationNtuple.h.
◆ FloatBlock
◆ IntBlock
◆ SubBlock
◆ UnsignedIntBlock
◆ ~MuonValidationBlockBase()
| Muon::MuonValidationBlockBase::~MuonValidationBlockBase |
( |
| ) |
|
|
virtual |
◆ addBlock() [1/4]
◆ addBlock() [2/4]
| void Muon::MuonValidationBlockBase::addBlock |
( |
std::vector< float > *& | block, |
|
|
std::string | name ) |
|
inline |
Definition at line 39 of file MuonInsideOutValidationNtuple.h.
std::vector< FloatBlock > floatBlocks
std::pair< std::reference_wrapper< std::vector< float > * >, std::string > FloatBlock
◆ addBlock() [3/4]
| void Muon::MuonValidationBlockBase::addBlock |
( |
std::vector< int > *& | block, |
|
|
std::string | name ) |
|
inline |
Definition at line 37 of file MuonInsideOutValidationNtuple.h.
std::vector< IntBlock > intBlocks
std::pair< std::reference_wrapper< std::vector< int > * >, std::string > IntBlock
◆ addBlock() [4/4]
| void Muon::MuonValidationBlockBase::addBlock |
( |
std::vector< unsigned int > *& | block, |
|
|
std::string | name ) |
|
inline |
Definition at line 38 of file MuonInsideOutValidationNtuple.h.
std::pair< std::reference_wrapper< std::vector< unsigned int > * >, std::string > UnsignedIntBlock
std::vector< UnsignedIntBlock > unsignedIntBlocks
◆ clear()
| void Muon::MuonValidationBlockBase::clear |
( |
| ) |
|
◆ init()
| void Muon::MuonValidationBlockBase::init |
( |
const std::string & | prefix, |
|
|
TTree * | tree, |
|
|
bool | write = true ) |
Definition at line 28 of file MuonInsideOutValidationNtuple.cxx.
28 {
29
30
33 if( write ){
34 entry.first.get() =
new std::vector<int>();
36 }else{
37 tree->SetBranchAddress( (prefix +
entry.second).c_str(), &
entry.first.get());
38 }
39 }
40 }
41
44 if( write ){
45 entry.first.get() =
new std::vector<unsigned int>();
47 }else{
48 tree->SetBranchAddress( (prefix +
entry.second).c_str(), &
entry.first.get());
49 }
50 }
51 }
52
55 if( write ){
56 entry.first.get() =
new std::vector<float>();
58 }else{
59 tree->SetBranchAddress( (prefix +
entry.second).c_str(), &
entry.first.get());
60 }
61 }
62 }
63
66 }
67
68 }
◆ floatBlocks
| std::vector< FloatBlock > Muon::MuonValidationBlockBase::floatBlocks |
◆ intBlocks
| std::vector< IntBlock > Muon::MuonValidationBlockBase::intBlocks |
◆ subBlocks
| std::vector< SubBlock > Muon::MuonValidationBlockBase::subBlocks |
◆ unsignedIntBlocks
| std::vector< UnsignedIntBlock > Muon::MuonValidationBlockBase::unsignedIntBlocks |
The documentation for this struct was generated from the following files: