3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////
9 // Reconstructed track in ALICE dimuon spectrometer
10 ///////////////////////////////////////////////////
12 #include "AliMUONTrackParam.h" // object belongs to the class
16 class AliMUONEventReconstructor;
17 class AliMUONHitForRec;
20 class AliMUONTrack : public TObject {
25 virtual ~AliMUONTrack(); // Destructor
26 AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor
27 AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator
29 AliMUONTrack(AliMUONSegment* BegSegment, AliMUONSegment* EndSegment, AliMUONEventReconstructor* EventReconstructor); // Constructor from two Segment's
30 AliMUONTrack(AliMUONSegment* Segment, AliMUONHitForRec* HitForRec, AliMUONEventReconstructor* EventReconstructor); // Constructor from one Segment and one HitForRec
33 AliMUONEventReconstructor* GetEventReconstructor(void) const {return fEventReconstructor;}
34 AliMUONTrackParam* GetTrackParamAtVertex(void) {return &fTrackParamAtVertex;}
35 void SetTrackParamAtVertex(void); // Set track parameters at vertex from last stations 4 & 5
36 void SetTrackParamAtVertex(AliMUONTrackParam* TrackParam) {fTrackParamAtVertex = *TrackParam;}
38 TObjArray* GetTrackHitsPtr(void) const {return fTrackHitsPtr;}
39 Int_t GetNTrackHits(void) const {return fNTrackHits;}
40 Int_t GetFitMCS(void) const {return fFitMCS;}
41 Int_t GetFitNParam(void) const {return fFitNParam;}
42 Int_t GetFitStart(void) const {return fFitStart;}
43 Double_t GetFitFMin(void) const {return fFitFMin;}
44 void SetFitMCS(Int_t FitMCS);
45 void SetFitNParam(Int_t FitNParam);
46 void SetFitStart(Int_t FitStart);
48 AliMUONTrackParam* GetTrackParamAtFirstHit(void) const;
50 void RecursiveDump(void) const; // Recursive dump (with track hits)
52 void AddSegment(AliMUONSegment* Segment); // Add Segment
53 void AddHitForRec(AliMUONHitForRec* HitForRec); // Add HitForRec
54 void SetTrackParamAtHit(Int_t indexHit, AliMUONTrackParam *TrackParam) const;
55 Int_t HitsInCommon(AliMUONTrack* Track);
57 static TVirtualFitter* Fitter(void) {return fgFitter;}
61 static TVirtualFitter* fgFitter; // Pointer to track fitter
62 AliMUONEventReconstructor* fEventReconstructor; // Pointer to EventReconstructor
63 AliMUONTrackParam fTrackParamAtVertex; // Track parameters at vertex
64 TObjArray *fTrackHitsPtr; // Pointer to array of pointers to TrackHit's
65 Int_t fNTrackHits; // Number of TrackHit's
66 Int_t fFitMCS; // 0(1) for fit without(with) multiple Coulomb scattering
67 Int_t fFitNParam; // 3(5) for fit with 3(5) parameters
68 Int_t fFitStart; // 0 or 1 for fit starting from parameters at vertex (0) or at first TrackHit(1)
69 Double_t fFitFMin; // minimum value of the function minimized by the fit
71 ClassDef(AliMUONTrack, 1) // Reconstructed track in ALICE dimuon spectrometer