AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree::Branch Class Reference
Collaboration diagram for AnalysisTree::Branch:
Collaboration graph

Classes

struct  FieldsMapping
 

Public Member Functions

 Branch (const Branch &)=default
 
 Branch (Branch &&)=default
 
Branchoperator= (Branch &&)=default
 
Branchoperator= (const Branch &)=default
 
 Branch (BranchConfig config)
 
template<class T >
 Branch (BranchConfig config, T *data)
 
 Branch (BranchConfig config, BranchPointer ptr)
 
std::string GetBranchName () const
 
DetType GetBranchType () const
 
const BranchConfigGetConfig () const
 
void InitDataPtr ()
 
BranchChannel NewChannel ()
 
BranchChannel NullChannel ()
 
void ClearChannels ()
 
Field NewVariable (const std::string &field_name, const std::string &title, AnalysisTree::Types type)
 
void CloneVariables (const AnalysisTree::BranchConfig &other)
 
size_t size () const
 
BranchChannel operator[] (size_t i_channel) const
 
std::vector< std::string > GetFieldNames () const
 
size_t GetId () const
 
BranchPointer GetData () const
 
template<class T >
T & GetDataRaw ()
 
Field GetField (std::string field_name) const
 
void Freeze (bool freeze=true)
 
void SetMutable (bool is_mutable=true)
 
void CheckFrozen (bool expected=true) const
 
void CheckMutable (bool expected=true) const
 
void CopyContentsRaw (Branch *other)
 Gets variables according to variable names specified in the arguments. Returns tuple of variables which is suitable for unpacking with std::tie()
 
void CreateMapping (const Branch *other, std::string branch_name_prefix="") const
 
void UpdateConfigHash ()
 
AnalysisTree::ShortInt_t Hash () const
 

Public Attributes

AnalysisTree::Configurationparent_config {nullptr}
 
std::map< const Branch *, FieldsMappingcopy_fields_mapping
 

Member Function Documentation

◆ CopyContentsRaw()

void Branch::CopyContentsRaw ( Branch * other)

Gets variables according to variable names specified in the arguments. Returns tuple of variables which is suitable for unpacking with std::tie()

Template Parameters
Args
Parameters
field_namevariable names convertible to std::string
Returns
tuple of variables

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