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

Public Member Functions

void AddBranch (const std::string &branch_name)
 
void Init () override
 
void Exec () override
 
void Finish () override
 
void SetOutputName (std::string file, std::string tree)
 
void SetFieldsToIgnore (const std::vector< std::string > &&fields_to_ignore)
 
- Public Member Functions inherited from AnalysisTree::AnalysisTask
std::pair< int, std::vector< int > > AddEntry (const AnalysisEntry &vars)
 
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 Attributes

TFile * file_ {nullptr}
 
TTree * plain_tree_ {nullptr}
 
std::string file_name_ {"PlainTree.root"}
 
std::string tree_name_ {"PlainTree"}
 
std::string branch_name_
 
std::vector< float > vars_ {}
 
std::vector< std::string > fields_to_ignore_ {}
 
- Protected Attributes inherited from AnalysisTree::AnalysisTask
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}
 

Additional Inherited Members

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

Member Function Documentation

◆ Exec()

void AnalysisTree::PlainTreeFiller::Exec ( )
overridevirtual

Reimplemented from AnalysisTree::AnalysisTask.

◆ Finish()

void AnalysisTree::PlainTreeFiller::Finish ( )
overridevirtual

Reimplemented from AnalysisTree::AnalysisTask.

◆ Init()

void AnalysisTree::PlainTreeFiller::Init ( )
overridevirtual

Reimplemented from AnalysisTree::AnalysisTask.


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