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

Cuts holds list of SimpleCuts and provides Apply function which subsequently applies cuts. More...

#include <Cuts.hpp>

Collaboration diagram for AnalysisTree::Cuts:
Collaboration graph

Public Member Functions

 Cuts (const Cuts &cut)=default
 
 Cuts (Cuts &&cut)=default
 
Cutsoperator= (Cuts &&)=default
 
Cutsoperator= (const Cuts &cut)=default
 
 Cuts (std::string name, std::vector< SimpleCut > cuts)
 
 Cuts (std::string name, std::initializer_list< SimpleCut > cuts)
 
template<class T >
bool Apply (const T &object) const
 Evaluates all SimpleCuts.
 
bool Apply (const BranchChannel &ob) const
 
bool Apply (std::vector< const BranchChannel * > &bch, std::vector< size_t > &id) const
 
bool Apply (const BranchChannel &a, size_t a_id, const BranchChannel &b, size_t b_id) const
 
void Init (const Configuration &conf)
 
void Print () const
 
ANALYSISTREE_ATTR_NODISCARD const std::set< std::string > & GetBranches () const
 
ANALYSISTREE_ATTR_NODISCARD const std::string & GetBranchName () const
 
ANALYSISTREE_ATTR_NODISCARD std::set< size_t > GetBranchIds () const
 
ANALYSISTREE_ATTR_NODISCARD const std::string & GetName () const
 
std::vector< SimpleCut > & GetCuts ()
 

Static Public Member Functions

static bool Equal (const Cuts *that, const Cuts *other)
 

Protected Member Functions

 ClassDef (Cuts, 1)
 

Protected Attributes

std::string name_
 
std::set< std::string > branch_names_ {}
 
std::set< size_t > branch_ids_ {}
 
std::vector< SimpleCutcuts_ {}
 
bool is_init_ {false}
 

Friends

bool operator== (const Cuts &that, const Cuts &other)
 

Detailed Description

Cuts holds list of SimpleCuts and provides Apply function which subsequently applies cuts.

Member Function Documentation

◆ Apply()

template<class T >
bool AnalysisTree::Cuts::Apply ( const T & object) const
inline

Evaluates all SimpleCuts.

Template Parameters
Ttype of data-object associated with TTree
Parameters
object
Returns
result of cut

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