//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class TpcSignal // see TpcSignal.h for details // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- // This Class' Header ------------------ #include "TpcSignal.h" // C/C++ Headers ---------------------- #include // Collaborating Class Headers -------- #include "TpcAvalanche.h" // Class Member definitions ----------- ClassImp(TpcSignal) TpcSignal::TpcSignal() : ft(0),famp(0),fpadId(0),fmcTrackId(0),fmcSecId(0), fmcHitId(0),fmcEventId(0),fAvalanceIndex(0) {;} TpcSignal::TpcSignal(double T, double Amp, unsigned int PadID, unsigned int EventID, TpcAvalanche* Mo) : ft(T),famp(Amp),fpadId(PadID),fmcTrackId(Mo->mcTrackId()), fmcSecId(Mo->mcSecId()),fmcHitId(Mo->mcHitId()),fmcEventId(EventID),fAvalanceIndex(Mo->index()) {;} McId TpcSignal::mcId() const { McId id=McId(mcEventId(),mcTrackId(),mcSecId()); id.setIndex(index()); return id; //return McId( mcEventId(),mcTrackId(),mcSecId()); } bool operator== (const TpcSignal& lhs, const TpcSignal& rhs) { return fabs(lhs.ft-rhs.ft)<1E-4 && lhs.fpadId==rhs.fpadId; } bool operator< (const TpcSignal& lhs, const TpcSignal& rhs) { return lhs.ft