//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Collection of TpcResidualObjects (e.g. of one track) // // // Environment: // Software NOT developed for PANDA at FAIR // // Author List: // Felix Boehmer (original author) // Physik Department E18, TUM // //----------------------------------------------------------- #ifndef TPCRESIDUALCOLL_HH #define TPCRESIDUALCOLL_HH #include #include "TObject.h" class TpcResidual; class TpcResidualCollection : public TObject { public: TpcResidualCollection(); TpcResidualCollection(const TpcResidualCollection&); virtual ~TpcResidualCollection(); //this method breaks const correctness, maybe remove? F.B. const std::vector* getResiduals() const {return &fResiduals;} const TpcResidual* getResidual(int i) const; int getSize() {return fResiduals.size();} void addResidual(TpcResidual* r) {fResiduals.push_back(r);} void clear(); protected: std::vector fResiduals; public: ClassDef(TpcResidualCollection,1) }; #endif