PandaTree
|
Tokenized branch name. More...
#include <IOUtils.h>
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... | |
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.
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?"
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.
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?"