// -*- mode: c++ -*- // // $Id: BrTpcTrackCandidate.h,v 1.6 2002/03/20 00:41:08 cholm Exp $ // $Author: cholm $ // $Date: 2002/03/20 00:41:08 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTpcTrackCandidate #define BRAT_BrTpcTrackCandidate #ifndef BRAT_BrTpcHit #include "BrTpcHit.h" #endif #ifndef BRAT_BrTrackCandidate #include "BrTrackCandidate.h" #endif #ifndef ROOT_TClonesArray #include "TClonesArray.h" #endif #ifndef BRAT_BrTrackResidual #include "BrTrackResidual.h" #endif class BrTpcTrackCandidate : public BrTrackCandidate { private: Short_t fLastRow; //! local variable used during track finding. TClonesArray* fResiduals; // track residuals public: BrTpcTrackCandidate(); BrTpcTrackCandidate(const BrTpcTrackCandidate &track); virtual ~BrTpcTrackCandidate(); virtual void Fit(); virtual void FillResiduals(); virtual Short_t GetLastRow(void) const { return fLastRow;} virtual TClonesArray* GetResidualArray(void) const { return fResiduals;} virtual BrTrackResidual* GetResidualAt(Int_t i) const { return (BrTrackResidual*)fResiduals->At(i);} virtual BrTpcHit* GetTpcHitAt(Int_t i) const {return (BrTpcHit*)GetHitAt(i);} virtual Bool_t HasHitInRow(Int_t rowNo) const; virtual void IncrementHitsUsed(); virtual void Print(Option_t* option = "") const; virtual void SetLastRow(Short_t lastRow) { fLastRow = lastRow;} ClassDef(BrTpcTrackCandidate, 4) // BRAT Tpc track candidate }; #endif //____________________________________________________________________ // // $Log: BrTpcTrackCandidate.h,v $ // Revision 1.6 2002/03/20 00:41:08 cholm // Some cosmetics // // Revision 1.5 2001/11/13 12:27:24 pchristi // Made residuals persistent and fixed bugs in copyconstructor. // // Revision 1.4 2001/11/13 10:57:32 pchristi // Added destructor to close memory leak (shame on me) and a copy constructor. // // Revision 1.3 2001/11/02 13:32:51 pchristi // Added new class BrTrackResidual. This class deals with storing track // residuals for good tracks. // Removed adc calculations and informations from BrTpcTrackCandidate since // this was done in a useless way. The adcsum information is now stored with // the residual for each hit and it makes it possible to later make a // truncated mean if one wishes stored in the track residual // // Revision 1.2 2001/08/14 19:26:23 pchristi // Removed detructors and copy constructors where the default was ok. // // Revision 1.1.1.1 2001/06/21 14:55:03 hagel // Initial revision of brat2 // // Revision 1.1 2001/06/17 17:41:41 pchristi // The new tracking classes. // //