]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | #ifndef ALIMUONTRACK_H |
2 | #define ALIMUONTRACK_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /*$Id$*/ | |
7 | ||
3831f268 | 8 | /////////////////////////////////////////////////// |
9 | // Reconstructed track in ALICE dimuon spectrometer | |
10 | /////////////////////////////////////////////////// | |
11 | ||
c1a185bf | 12 | #include "AliMUONTrackParam.h" // object belongs to the class |
a9e2aefa | 13 | |
c1a185bf | 14 | class TObjArray; |
956019b6 | 15 | class TVirtualFitter; |
a9e2aefa | 16 | class AliMUONEventReconstructor; |
17 | class AliMUONHitForRec; | |
18 | class AliMUONSegment; | |
19 | ||
20 | class AliMUONTrack : public TObject { | |
21 | public: | |
22 | AliMUONTrack(){ | |
23 | // Constructor | |
24 | ;} // Constructor | |
8429a5e4 | 25 | virtual ~AliMUONTrack(); // Destructor |
a9e2aefa | 26 | AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor |
27 | AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator | |
28 | ||
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 | |
8429a5e4 | 31 | void Remove(void); |
a9e2aefa | 32 | |
3831f268 | 33 | AliMUONEventReconstructor* GetEventReconstructor(void) const {return fEventReconstructor;} |
34 | AliMUONTrackParam* GetTrackParamAtVertex(void) {return &fTrackParamAtVertex;} | |
04b5ea16 | 35 | void SetTrackParamAtVertex(void); // Set track parameters at vertex from last stations 4 & 5 |
956019b6 | 36 | void SetTrackParamAtVertex(AliMUONTrackParam* TrackParam) {fTrackParamAtVertex = *TrackParam;} |
04b5ea16 | 37 | |
3831f268 | 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;} | |
04b5ea16 | 44 | void SetFitMCS(Int_t FitMCS); |
956019b6 | 45 | void SetFitNParam(Int_t FitNParam); |
46 | void SetFitStart(Int_t FitStart); | |
04b5ea16 | 47 | |
3831f268 | 48 | AliMUONTrackParam* GetTrackParamAtFirstHit(void) const; |
a9e2aefa | 49 | |
3831f268 | 50 | void RecursiveDump(void) const; // Recursive dump (with track hits) |
956019b6 | 51 | void Fit(); // Fit |
a9e2aefa | 52 | void AddSegment(AliMUONSegment* Segment); // Add Segment |
53 | void AddHitForRec(AliMUONHitForRec* HitForRec); // Add HitForRec | |
3831f268 | 54 | void SetTrackParamAtHit(Int_t indexHit, AliMUONTrackParam *TrackParam) const; |
8429a5e4 | 55 | Int_t HitsInCommon(AliMUONTrack* Track); |
a9e2aefa | 56 | |
9774ee3a | 57 | static TVirtualFitter* Fitter(void) {return fgFitter;} |
956019b6 | 58 | |
a9e2aefa | 59 | protected: |
60 | private: | |
956019b6 | 61 | static TVirtualFitter* fgFitter; // Pointer to track fitter |
a9e2aefa | 62 | AliMUONEventReconstructor* fEventReconstructor; // Pointer to EventReconstructor |
63 | AliMUONTrackParam fTrackParamAtVertex; // Track parameters at vertex | |
8429a5e4 | 64 | TObjArray *fTrackHitsPtr; // Pointer to array of pointers to TrackHit's |
a9e2aefa | 65 | Int_t fNTrackHits; // Number of TrackHit's |
04b5ea16 | 66 | Int_t fFitMCS; // 0(1) for fit without(with) multiple Coulomb scattering |
956019b6 | 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) | |
8429a5e4 | 69 | Double_t fFitFMin; // minimum value of the function minimized by the fit |
a9e2aefa | 70 | |
044d512b | 71 | ClassDef(AliMUONTrack, 1) // Reconstructed track in ALICE dimuon spectrometer |
a9e2aefa | 72 | }; |
73 | ||
74 | #endif |