Template Class ParticleContainer¶
Defined in File ParticleContainer.h
Class Documentation¶
-
template<class
T_PARTICLE, classT_INFOSWITCH>
classParticleContainer¶ Public Functions
-
ParticleContainer(const std::string &name, const std::string &detailStr = "", float units = 1e3, bool mc = false, bool useMass = false, bool storeSystSFs = true, const std::string &suffix = "")¶
-
virtual
~ParticleContainer()¶
-
virtual void
setTree(TTree *tree)¶
-
virtual void
setBranches(TTree *tree)¶
-
virtual void
clear()¶
-
virtual void
FillParticle(const xAOD::IParticle *particle)¶
-
void
updateEntry()¶
-
std::vector<T_PARTICLE> &
particles()¶
-
T_PARTICLE &
at_nonConst(uint idx)¶
-
const T_PARTICLE &
at(uint idx) const¶
-
const T_PARTICLE &
operator[](uint idx) const¶
-
uint
size() const¶
Public Members
-
T_INFOSWITCH
m_infoSwitch¶
-
bool
m_mc¶
-
bool
m_debug¶
-
float
m_units¶
-
bool
m_storeSystSFs¶
-
int
m_n¶
Protected Functions
-
std::string
branchName(const std::string &varName)¶
-
template<typename
T_BR>
voidconnectBranch(TTree *tree, const std::string &branch, std::vector<T_BR> **variable)¶
-
template<typename
T>
voidsetBranch(TTree *tree, std::string varName, std::vector<T> *localVectorPtr)¶
-
template<typename
T, typenameU, typenameV>
voidsafeFill(const V *xAODObj, SG::AuxElement::ConstAccessor<T> &accessor, std::vector<U> *destination, U defaultValue, int units = 1)¶
-
template<typename
T, typenameU, typenameV>
voidsafeVecFill(const V *xAODObj, SG::AuxElement::ConstAccessor<std::vector<T>> &accessor, std::vector<std::vector<U>> *destination, int units = 1)¶
-
template<typename
T, typenameV>
voidsafeSFVecFill(const V *xAODObj, SG::AuxElement::ConstAccessor<std::vector<T>> &accessor, std::vector<std::vector<T>> *destination, const std::vector<T> &defaultValue)¶
-
virtual void
updateParticle(uint idx, T_PARTICLE &particle)¶
-