PandaTree
Public Member Functions | List of all members
panda::utils::BranchName Class Reference

Tokenized branch name. More...

#include <IOUtils.h>

Inheritance diagram for panda::utils::BranchName:

Public Member Functions

 BranchName (BranchName const &)
 
 BranchName (char const *)
 
 BranchName (std::string const &s)
 
 BranchName (TString const &s)
 
template<class InputIterator >
 BranchName (InputIterator begin, InputIterator end, bool isVeto)
 
 operator TString () const
 Concatenate the words with '.'.
 
TString fullName (TString const &objName="") const
 Prepend the branch name with <objName.>.
 
bool isVeto () const
 Did the name start with a '!'?
 
bool match (BranchName const &) const
 Does the name match with the given name? More...
 
bool in (BranchList const &) const
 Is the name included and not vetoed? More...
 
bool vetoed (BranchList const &) const
 Is the name included and vetoed? More...
 

Detailed Description

Tokenized branch name.

Represents a branch name given in formats like muons.pt by a vector {"muons", "pt"}. The name can be preceded by '!' to indicate a veto for the branch. Wild card (*) is also allowed, and will match to either one section of the name or to the entire remainder.

Member Function Documentation

§ in()

bool panda::utils::BranchName::in ( BranchList const &  _list) const

Is the name included and not vetoed?

Does not take the veto on the parent object into account. Simply asks the question "is the name in the given list and not vetoed in the list?"

§ match()

bool panda::utils::BranchName::match ( BranchName const &  _rhs) const

Does the name match with the given name?

Only considers the name part and not the veto-ness.

§ vetoed()

bool panda::utils::BranchName::vetoed ( BranchList const &  _list) const

Is the name included and vetoed?

Does not take the veto on the parent object into account. Simply asks the question "is the name in the given list and vetoed in the list?"


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