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

AnalysisTask is a Task which keeps list of AnalysisEntry-s It evaluates Variables according to the rules of AnalysisEntry-s and populates 2-dimensional array with results of evaluation. More...

#include <AnalysisTask.hpp>

Inheritance diagram for AnalysisTree::AnalysisTask:
Inheritance graph
Collaboration diagram for AnalysisTree::AnalysisTask:
Collaboration graph

Public Member Functions

std::pair< int, std::vector< int > > AddEntry (const AnalysisEntry &vars)
 
void Init () override
 
void Exec () override
 
void Finish () override
 
ANALYSISTREE_ATTR_NODISCARD const array2D & GetValues (int i_var) const
 
ANALYSISTREE_ATTR_NODISCARD const array1D & GetWeights (int i_var) const
 
ANALYSISTREE_ATTR_NODISCARD const std::vector< AnalysisEntry > & GetVarEntries () const
 
ANALYSISTREE_ATTR_NODISCARD std::vector< AnalysisEntry > & VarEntries ()
 
void AddBranchCut (Cuts *cut)
 
- Public Member Functions inherited from AnalysisTree::Task
void PreInit ()
 
void SetInConfiguration (const Configuration *config)
 
void SetDataHeader (const DataHeader *data_header)
 
void SetInputBranchNames (const std::set< std::string > &br)
 
ANALYSISTREE_ATTR_NODISCARD const std::set< std::string > & GetInputBranchNames () const
 
ANALYSISTREE_ATTR_NODISCARD bool IsGoodEvent (const EventHeader &event_header) const
 
ANALYSISTREE_ATTR_NODISCARD bool IsGoodEvent (const Chain &t) const
 
void SetEventCuts (Cuts *cuts)
 
void AddInputBranch (const std::string &name)
 

Protected Member Functions

 ClassDefOverride (AnalysisTask, 0)
 
- Protected Member Functions inherited from AnalysisTree::Task
 ClassDef (Task, 0)
 

Protected Attributes

std::vector< AnalysisEntryentries_ {}
 
std::map< std::string, Cuts * > cuts_map_ {}
 
- Protected Attributes inherited from AnalysisTree::Task
const Configurationconfig_ {nullptr}
 
const DataHeaderdata_header_ {nullptr}
 
Cutsevent_cuts_ {nullptr}
 
std::set< std::string > in_branches_ {}
 
bool is_init_ {false}
 

Detailed Description

AnalysisTask is a Task which keeps list of AnalysisEntry-s It evaluates Variables according to the rules of AnalysisEntry-s and populates 2-dimensional array with results of evaluation.

Member Function Documentation

◆ Exec()

void AnalysisTree::AnalysisTask::Exec ( )
overridevirtual

Implements AnalysisTree::Task.

◆ Finish()

void AnalysisTree::AnalysisTask::Finish ( )
inlineoverridevirtual

Implements AnalysisTree::Task.

◆ Init()

void AnalysisTree::AnalysisTask::Init ( )
overridevirtual

Implements AnalysisTree::Task.


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