//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class TrackCand // see TrackCand.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 "TrackCand.h" // C/C++ Headers ---------------------- #include // Collaborating Class Headers -------- // Class Member definitions ----------- ClassImp(TrackCand) TrackCand::TrackCand():_curv(0),_dip(0),_inv(false){} TrackCand::~TrackCand(){} void TrackCand::addHit(unsigned int detId, unsigned int hitId) { _detId.push_back(detId); _hitId.push_back(hitId); } void TrackCand::reset() { _detId.clear();_hitId.clear(); } bool operator== (const TrackCand& lhs, const TrackCand& 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; }