 |
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTESTER_LINKERBRANCH_H
5 #define MUONTESTER_LINKERBRANCH_H
37 const std::string& altName =
"");
64 bool fill(
const EventContext& ctx)
override;
69 const std::string& altPrimName =
"",
70 const std::string& altSecName =
"");
75 const std::string& altName);
const IParticleFourMomBranch & m_parent
LinkerBranch::Linker_t Linker_t
void push_back(const xAOD::IParticle *p) override
Interface methods to handle the particle.
std::function< const xAOD::IParticle *(const xAOD::IParticle *)> Linker_t
Typedef of the linker function.
LinkerBranch(IParticleFourMomBranch &parent, ParticleBranch_ptr linkColl, Linker_t linker, const std::string &altName="")
Standard constructor fo the LinkerBranch.
Class providing the definition of the 4-vector interface.
LinkerBranch::ParticleBranch_ptr ParticleBranch_ptr
std::weak_ptr< IParticleFourMomBranch > m_linkColl
bool fill(const EventContext &ctx) override
The fill method checks if enough information is provided such that the branch is cleared from the inf...
static bool connectCollections(ParticleBranch_ptr primColl, ParticleBranch_ptr secondColl, Linker_t fromPrimToSec, const std::string &altPrimName="", const std::string &altSecName="")
void operator+=(const xAOD::IParticle *p) override
void operator+=(const xAOD::IParticle *p) override
Class to store array like branches into the n-tuples.
std::weak_ptr< IParticleFourMomBranch > m_linkColl
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
BilateralLinkerBranch(IParticleFourMomBranch &bilatColl, ParticleBranch_ptr primColl, Linker_t linker, const std::string &altName)
The linker branch is a helper class to establish linking indices between dumped particle collections.
Helper class to easily to add xAOD::IParticles and associated decorator variables to the MuonTesterTr...
std::shared_ptr< IParticleFourMomBranch > ParticleBranch_ptr
Abreviation of the pointer to the particle branch.
void push_back(const xAOD::IParticle *p) override
Interface methods to handle the particle.