.. _program_listing_file_xAODAnaHelpers_TruthContainer.h: Program Listing for File TruthContainer.h ========================================= |exhale_lsh| :ref:`Return to documentation for file ` (``xAODAnaHelpers/TruthContainer.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef xAODAnaHelpers_TruthContainer_H #define xAODAnaHelpers_TruthContainer_H #include #include #include #include #include "xAODTruth/TruthParticle.h" #include #include #include #include namespace xAH { class TruthContainer : public ParticleContainer { public: TruthContainer(const std::string& name = "truth", const std::string& detailStr="", float units = 1e3); virtual ~TruthContainer(); virtual void setTree (TTree *tree); virtual void setBranches(TTree *tree); virtual void clear(); virtual void FillTruth( const xAOD::TruthParticle* truth ); virtual void FillTruth( const xAOD::IParticle* particle ); using ParticleContainer::setTree; // make other overloaded version of execute() to show up in subclass protected: virtual void updateParticle(uint idx, TruthPart& truth); private: // // Vector branches // // All std::vector* m_pdgId; std::vector* m_status; std::vector* m_barcode; // type std::vector* m_is_higgs; std::vector* m_is_bhad; // bVtx std::vector* m_Bdecay_x; std::vector* m_Bdecay_y; std::vector* m_Bdecay_z; // parents std::vector* m_nParents; std::vector< std::vector >* m_parent_pdgId; std::vector< std::vector >* m_parent_barcode; std::vector< std::vector >* m_parent_status; // children std::vector* m_nChildren; std::vector< std::vector >* m_child_pdgId; std::vector< std::vector >* m_child_barcode; std::vector< std::vector >* m_child_status; // dressed std::vector* m_pt_dressed; std::vector* m_eta_dressed; std::vector* m_phi_dressed; std::vector* m_e_dressed; // origin std::vector* m_origin; // particle type std::vector* m_particleType; }; } #endif // xAODAnaHelpers_TruthContainer_H