|
//____________________________________________________________________ // // // //____________________________________________________________________ // // $Id: BrTrackCandidate.cxx,v 1.2 2001/08/14 19:26:23 pchristi Exp $ // $Author: pchristi $ // $Date: 2001/08/14 19:26:23 $ // $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov> // #ifndef BRAT_BrTrackCandidate #include "BrTrackCandidate.h" #endif //____________________________________________________________________ ClassImp(BrTrackCandidate); //____________________________________________________________________ BrTrackCandidate::BrTrackCandidate() : BrTrack() { // Default constructor fTrackGroup = 0; fStatus = kOk; fNhit = 0; } // //____________________________________________________________________ // BrTrackCandidate::BrTrackCandidate(BrTrackCandidate &track) // : BrTrack(track) // { // // Copy constructor // fTrackGroup = 0; // fStatus = kOk; // fNhit = 0; // const Int_t nHits = track.GetNhit(); // for(Int_t i = 0; i < nHits; i++) { // AddHit(track.GetHitAt(i)); // } // } // //____________________________________________________________________ // BrTrackCandidate::~BrTrackCandidate() // { // // Default constructor - empty since track group is not owned // } //____________________________________________________________________ void BrTrackCandidate::Print(Option_t* option = "") const { // Print out the track stuff // the number of hits and the status // If given option h it also prints the hit information BrTrack::Print(option); cout << "Number of hits : " << fNhit << endl; cout << "Status : " << fStatus << endl; TString opt(option); opt.ToLower(); if (opt.Contains("h")) fHits.Print(); } //____________________________________________________________________ BrHit* BrTrackCandidate::RemoveHitAtAndCompress(Int_t index) { // Removes hit at index in container and compress // returns object removed BrHit *hit = (BrHit*) fHits.RemoveAt(index); fHits.Compress(); return hit; } //____________________________________________________________________ BrHit* BrTrackCandidate::RemoveHitAndCompress(BrHit *hit) { // Removes hit pointed to and compress // returns object removed BrHit *hitRemoved = (BrHit*) fHits.Remove(hit); if(hitRemoved) fHits.Compress(); return hit; } //____________________________________________________________________ // // $Log: BrTrackCandidate.cxx,v $ // 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:42:05 pchristi // The new tracking classes. // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|