11#include <tracking/trackFindingVXD/filterMap/filterFramework/TBranchLeafType.h>
26 template<
typename Type>
39 template<
class VariableType >
51 void persist(TTree* t,
const std::string& branchName,
const std::string& variableName)
55 leafList += variableName;
59 TBranch* branch =
new TBranch(t, branchName.c_str(), &
m_element, leafList.c_str());
60 t->GetListOfBranches()->Add(branch);
71 std::string
getNameAndReference(std::vector<std::pair<char, void*>>* pointers =
nullptr,
const std::string& varname =
"x")
73 std::string val = std::to_string(
m_element);
75 if (pointers !=
nullptr) {
77 val =
"#" + std::to_string(pointers->size());
80 return (
"(" + val +
" == " + varname +
")");
Represents a set containing a single element;.
Type getElement(void) const
Accessor to the sup of the set.
void persist(TTree *t, const std::string &branchName, const std::string &variableName)
Creates and sets the addresses of the leaves to store the min and max values.
Type m_element
Member variable for the single element of the set.
std::string getNameAndReference(std::vector< std::pair< char, void * > > *pointers=nullptr, const std::string &varname="x")
generates a "name" and fills the vector with the variable references
SingleElementSet(Type element)
Constructor.
bool contains(const VariableType &x) const
Method used by the filter tools to decide on the fate of the pair.
char TBranchLeafType(const char *)
Overloading TBranchLeafType to be able to get identifier 'C' for type char*.
Abstract base class for different kinds of events.