//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Track candidate. Basically a list of hit indices. // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- #ifndef MVDTRACKCAND_HH #define MVDTRACKCAND_HH // Base Class Headers ---------------- #include "TObject.h" // Collaborating Class Headers ------- #include // Collaborating Class Declarations -- class MvdTrackCand : public TObject { public: // Constructors/Destructors --------- MvdTrackCand(){;} ~MvdTrackCand(){;} // operators friend bool operator== (const MvdTrackCand& lhs, const MvdTrackCand& rhs); // Accessors ----------------------- void getHit(unsigned int i, unsigned int& detId, unsigned int& hitId) const {detId=_detId[i];hitId=_hitId[i];} unsigned int getNHits() const {return _detId.size();} // Modifiers ----------------------- void addHit(unsigned int detId, unsigned int hitId); // Operations ---------------------- void reset(); private: // Private Data Members ------------ std::vector _detId; std::vector _hitId; // Private Methods ----------------- public: ClassDef(MvdTrackCand,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------