4#ifndef MUONTESTER_AUXELEMENTBRANCH_H
5#define MUONTESTER_AUXELEMENTBRANCH_H
void push_back(const SG::AuxElement &p) override
void setAccessor(const std::string &name)
SG::ConstAccessor< T > m_acc
virtual ~AuxElementBranch()=default
AuxElementBranch(MuonTesterTree &t, const std::string &var_name, const std::string &acc="")
AuxElementBranch(TTree *t, const std::string &var_name, const std::string &acc="")
void operator+=(const SG::AuxElement &p) override
void push_back(const SG::AuxElement *p) override
Reads out a generic auxillary element and add its information to the output vector.
void operator+=(const SG::AuxElement *p) override
GenericAuxDecorationBranch(MuonTesterTree &t, const std::string &var_name, const FuncType_t &func)
Constructor taking the MuonTesterTree.
void operator+=(const SG::AuxElement *p) override
void operator+=(const SG::AuxElement &p) override
GenericAuxDecorationBranch(TTree *t, const std::string &var_name, const FuncType_t &func)
Constructor taking an ordinary tree pointer.
void push_back(const SG::AuxElement *p) override
Reads out a generic auxillary element and add its information to the output vector.
void push_back(const SG::AuxElement &p) override
std::function< T(const SG::AuxElement *)> FuncType_t
virtual std::string name() const =0
Returns the name of the branch.
bool initialized() const
Returns whether the object has been initialized or not The outcome of the variable is bound to a succ...
void push_back(const xAOD::IParticle &p) override
ParticleVariableBranchGeV(TTree *t, const std::string &var_name, const std::string &acc="")
void push_back(const xAOD::IParticle *p) override
Similar to the IAuxElementDecoration branch but only accepting IParticles.
ParticleVariableBranchGeV(MuonTesterTree &t, const std::string &var_name, const std::string &acc="")
void operator+=(const xAOD::IParticle *p) override
void push_back(const xAOD::IParticle *p) override
Similar to the IAuxElementDecoration branch but only accepting IParticles.
void push_back(const xAOD::IParticle &p) override
virtual ~ParticleVariableBranch()=default
ParticleVariableBranch(TTree *t, const std::string &var_name, const std::string &acc="")
void operator+=(const xAOD::IParticle &p) override
ParticleVariableBranch(MuonTesterTree &t, const std::string &var_name, const std::string &acc="")
size_t size() const
Returns the number of actual saved elements.
const T & getDefault() const
VectorBranch(TTree *tree, const std::string &name)
Standard constructor.
Base class for elements of a container that can have aux data.
Helper class to provide constant type-safe access to aux data.
Class providing the definition of the 4-vector interface.
Class to store array like branches into the n-tuples.