//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class MvdTrackCand // see MvdTrackCand.hh for details // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- // Panda Headers ---------------------- // This Class' Header ------------------ #include "MvdTrackCand.h" // C/C++ Headers ---------------------- #include // Collaborating Class Headers -------- // Class Member definitions ----------- ClassImp(MvdTrackCand) void MvdTrackCand::addHit(unsigned int detId, unsigned int hitId) { _detId.push_back(detId); _hitId.push_back(hitId); } void MvdTrackCand::reset() { _detId.clear();_hitId.clear(); } bool operator== (const MvdTrackCand& lhs, const MvdTrackCand& rhs){ if(lhs.getNHits()!=rhs.getNHits()) return false; bool result=std::equal(lhs._detId.begin(),lhs._detId.end(),rhs._detId.begin()); result &=std::equal(lhs._hitId.begin(),lhs._hitId.end(),rhs._hitId.begin()); return result; }