AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree::Field Class Reference

Field is a pointer in a branch/field structure. More...

#include <Field.hpp>

Collaboration diagram for AnalysisTree::Field:
Collaboration graph

Public Member Functions

 Field (const Field &)=default
 
 Field (Field &&)=default
 
Fieldoperator= (Field &&)=default
 
Fieldoperator= (const Field &)=default
 
 Field (std::string name)
 
 Field (std::string branch, std::string field)
 
void Init (const Configuration &conf)
 Initializes branchId and fieldId.
 
void Init (const BranchConfig &conf)
 
ANALYSISTREE_ATTR_NODISCARD const std::string & GetName () const
 
ANALYSISTREE_ATTR_NODISCARD const std::string & GetBranchName () const
 
ANALYSISTREE_ATTR_NODISCARD size_t GetBranchId () const
 
ANALYSISTREE_ATTR_NODISCARD short GetFieldId () const
 
ANALYSISTREE_ATTR_NODISCARD DetType GetBranchType () const
 
ANALYSISTREE_ATTR_NODISCARD Types GetFieldType () const
 
template<class T >
double GetValue (const T &object) const
 Gets numerical value from data-object associated with TTree.
 
void Print () const
 
ANALYSISTREE_ATTR_NODISCARD const BranchGetParentBranch () const
 
ANALYSISTREE_ATTR_NODISCARD bool IsInitialized () const
 
 operator bool () const
 

Friends

bool operator== (const Field &that, const Field &other)
 
bool operator> (const Field &that, const Field &other)
 
bool operator< (const Field &that, const Field &other)
 

Detailed Description

Field is a pointer in a branch/field structure.

Member Function Documentation

◆ GetValue()

template<class T >
double AnalysisTree::Field::GetValue ( const T & object) const
inline

Gets numerical value from data-object associated with TTree.

Template Parameters
Ttype of data-object (EventHeader, Track, etc)
Parameters
object
Returns
value of the field

◆ Init()

void AnalysisTree::Field::Init ( const Configuration & conf)

Initializes branchId and fieldId.

Parameters
confConfiguration

The documentation for this class was generated from the following files: