Template Class ParticleContainer¶
Defined in File ParticleContainer.h
Class Documentation¶
-
template<class T_PARTICLE, class T_INFOSWITCH>
class ParticleContainer¶ Public Functions
-
inline 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 = "")¶
-
inline virtual ~ParticleContainer()¶
-
inline virtual void setTree(TTree *tree)¶
-
inline virtual void setBranches(TTree *tree)¶
-
inline virtual void clear()¶
-
inline virtual void FillParticle(const xAOD::IParticle *particle)¶
-
inline void updateEntry()¶
-
inline std::vector<T_PARTICLE> &particles()¶
-
inline T_PARTICLE &at_nonConst(uint idx)¶
-
inline const T_PARTICLE &at(uint idx) const¶
-
inline const T_PARTICLE &operator[](uint idx) const¶
-
inline 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
-
inline std::string branchName(const std::string &varName)¶
-
template<typename T_BR>
inline void connectBranch(TTree *tree, const std::string &branch, std::vector<T_BR> **variable)¶
-
template<typename T>
inline void setBranch(TTree *tree, std::string varName, std::vector<T> *localVectorPtr)¶
-
template<typename T, typename U, typename V>
inline void safeFill(const V *xAODObj, SG::AuxElement::ConstAccessor<T> &accessor, std::vector<U> *destination, U defaultValue, int units = 1)¶
-
template<typename T, typename U, typename V>
inline void safeVecFill(const V *xAODObj, SG::AuxElement::ConstAccessor<std::vector<T>> &accessor, std::vector<std::vector<U>> *destination, int units = 1)¶
-
template<typename T, typename V>
inline void safeSFVecFill(const V *xAODObj, SG::AuxElement::ConstAccessor<std::vector<T>> &accessor, std::vector<std::vector<T>> *destination, const std::vector<T> &defaultValue)¶
-
inline virtual void updateParticle(uint idx, T_PARTICLE &particle)¶
-
inline 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 = "")¶