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

A class to store configuration of the whole AnalysisTree object. More...

#include <Configuration.hpp>

Inheritance diagram for AnalysisTree::Configuration:
Inheritance graph
Collaboration diagram for AnalysisTree::Configuration:
Collaboration graph

Public Types

using MatchingIndex = std::map<std::array<std::string, 2>, std::string>

Public Member Functions

 Configuration (std::string name)
 Configuration (const Configuration &)=default
 Configuration (Configuration &&)=default
Configuration & operator= (Configuration &&)=default
Configuration & operator= (const Configuration &)=default
void AddBranchConfig (const BranchConfig &branch)
void RemoveBranchConfig (const std::string &branchname)
std::vector< std::string > GetMatchesOfBranch (const std::string &branchname) const
void AddMatch (Matching *match)
void AddMatch (const MatchingConfig &matching_config)
ANALYSISTREE_ATTR_NODISCARD BranchConfigGetBranchConfig (const std::string &name)
ANALYSISTREE_ATTR_NODISCARD const BranchConfigGetBranchConfig (const std::string &name) const
ANALYSISTREE_ATTR_NODISCARD const BranchConfigGetBranchConfig (size_t i) const
ANALYSISTREE_ATTR_NODISCARD const std::map< size_t, BranchConfig > & GetBranchConfigs () const
ANALYSISTREE_ATTR_NODISCARD const std::vector< MatchingConfig > & GetMatchingConfigs () const
ANALYSISTREE_ATTR_NODISCARD unsigned int GetNumberOfBranches () const
ANALYSISTREE_ATTR_NODISCARD const std::string & GetMatchName (const std::string &br1, const std::string &br2) const
ANALYSISTREE_ATTR_NODISCARD std::pair< std::string, bool > GetMatchInfo (const std::string &br1, const std::string &br2) const
ANALYSISTREE_ATTR_NODISCARD const MatchingIndex & GetMatches () const
void Print (Option_t *="") const
void PrintBranchIds () const
std::vector< std::string > GetListOfBranches () const
void Merge (const Configuration &other)
 Merge two configurations without reindexing of the branches THIS FUNCTION IS USED IN THE Infra v1.

Static Public Member Functions

static MatchingIndex MakeMatchingIndex (const std::vector< MatchingConfig > &matches)
static std::vector< MatchingConfigMakeMatchConfigsFromIndex (const MatchingIndex &matching_index)

Protected Member Functions

void AddMatch (const std::string &br1, const std::string &br2, const std::string &data_branch)
 transient field in this version

Protected Attributes

std::string name_
std::map< size_t, BranchConfigbranches_ {}
std::vector< MatchingConfigmatches_ {}
MatchingIndex matches_index_ {}

Detailed Description

A class to store configuration of the whole AnalysisTree object.

Consists of map with configs for all branches and Matching information. Should be written to ROOT file next to the TTree. Needed to read information correctly and decode meaning of the Container objects

Member Function Documentation

◆ Merge()

void AnalysisTree::Configuration::Merge ( const Configuration & other)
inline

Merge two configurations without reindexing of the branches THIS FUNCTION IS USED IN THE Infra v1.

Parameters
other

DO NOT REINDEX


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