.. _program_listing_file_xAODAnaHelpers_ClusterContainer.h: Program Listing for File ClusterContainer.h =========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``xAODAnaHelpers/ClusterContainer.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef xAODAnaHelpers_ClusterContainer_H #define xAODAnaHelpers_ClusterContainer_H #include #include #include #include #include "xAODCaloEvent/CaloClusterContainer.h" #include #include #include typedef SG::AuxElement::Accessor< std::vector< float > > floatAccessor ; namespace xAH { class ClusterContainer : public ParticleContainer { public: ClusterContainer(const std::string& name = "clus", const std::string& detailStr="", float units = 1e3, bool mc = false); virtual ~ClusterContainer(); virtual void setTree(TTree *tree); virtual void setBranches(TTree *tree); virtual void clear(); virtual void FillCluster( const xAOD::CaloCluster* cluster ); virtual void FillCluster( const xAOD::IParticle* particle ); using ParticleContainer::setTree; // make other overloaded version of execute() to show up in subclass protected: virtual void updateParticle(uint idx, Cluster& cluster); }; } #endif // xAODAnaHelpers_ClusterContainer_H