//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class TpcSample // see TpcSample.hh for details // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // Xiaodong Zhang TUM (modify it on Oct. 06, 2009) // Maxence Vandenbroucke TUM (modify for crosstalk tagging 26 01 2010) //----------------------------------------------------------- // This Class' Header ------------------ #include "TpcSample.h" // C/C++ Headers ---------------------- // Collaborating Class Headers -------- // Class Member definitions ----------- ClassImp(TpcSample) TpcSample::TpcSample() : famp(0),ft(0),fpadId(0),findex(0),fsourceId(0),fadcId(0),fchipId(0),fchannelId(0),ftimeStamp(0) {;} TpcSample::TpcSample( const int T, const int Amp, const unsigned int PadID, const McIdCollection& mcid, const int caindex) : famp(Amp),ft(T),fpadId(PadID),fmcId(mcid),findex(caindex), fsourceId(0),fadcId(0),fchipId(0),fchannelId(0), ftimeStamp(0) {;} TpcSample::TpcSample( const int T, const int Amp, const unsigned int PadID, const McIdCollection& mcid) : famp(Amp),ft(T),fpadId(PadID),fmcId(mcid),findex(-1), fsourceId(0),fadcId(0),fchipId(0),fchannelId(0), ftimeStamp(0) {;} TpcSample::TpcSample( const int T, const int Amp, const unsigned int PadID, const int caindex) : famp(Amp),ft(T),fpadId(PadID),findex(caindex), fsourceId(0),fadcId(0),fchipId(0),fchannelId(0), ftimeStamp(0) {;} TpcSample::~TpcSample() {;} bool operator== (const TpcSample& lhs, const TpcSample& rhs){ return lhs.ft==rhs.ft && lhs.famp==rhs.famp && lhs.fpadId==rhs.fpadId; } bool operator< (const TpcSample& lhs, const TpcSample& rhs){ return lhs.ft