]>
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 | ||
8 | #include <TROOT.h> | |
8429a5e4 | 9 | #include <TObjArray.h> |
a9e2aefa | 10 | #include "AliMUONTrackParam.h" |
11 | ||
12 | class TClonesArray; | |
956019b6 | 13 | class TVirtualFitter; |
a9e2aefa | 14 | class AliMUONEventReconstructor; |
15 | class AliMUONHitForRec; | |
16 | class AliMUONSegment; | |
17 | ||
18 | class AliMUONTrack : public TObject { | |
19 | public: | |
20 | AliMUONTrack(){ | |
21 | // Constructor | |
22 | ;} // Constructor | |
8429a5e4 | 23 | virtual ~AliMUONTrack(); // Destructor |
a9e2aefa | 24 | AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor |
25 | AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator | |
26 | ||
27 | AliMUONTrack(AliMUONSegment* BegSegment, AliMUONSegment* EndSegment, AliMUONEventReconstructor* EventReconstructor); // Constructor from two Segment's | |
28 | AliMUONTrack(AliMUONSegment* Segment, AliMUONHitForRec* HitForRec, AliMUONEventReconstructor* EventReconstructor); // Constructor from one Segment and one HitForRec | |
8429a5e4 | 29 | void Remove(void); |
a9e2aefa | 30 | |
956019b6 | 31 | AliMUONEventReconstructor* GetEventReconstructor(void) {return fEventReconstructor;} |
32 | AliMUONTrackParam* GetTrackParamAtVertex(void) { return &fTrackParamAtVertex;} | |
04b5ea16 | 33 | void SetTrackParamAtVertex(void); // Set track parameters at vertex from last stations 4 & 5 |
956019b6 | 34 | void SetTrackParamAtVertex(AliMUONTrackParam* TrackParam) {fTrackParamAtVertex = *TrackParam;} |
04b5ea16 | 35 | |
8429a5e4 | 36 | TObjArray* GetTrackHitsPtr(void) { return fTrackHitsPtr;} |
956019b6 | 37 | Int_t GetNTrackHits(void) { return fNTrackHits;} |
38 | Int_t GetFitMCS(void) {return fFitMCS;} | |
39 | Int_t GetFitNParam(void) {return fFitNParam;} | |
40 | Int_t GetFitStart(void) {return fFitStart;} | |
8429a5e4 | 41 | Double_t GetFitFMin(void) {return fFitFMin;} |
04b5ea16 | 42 | void SetFitMCS(Int_t FitMCS); |
956019b6 | 43 | void SetFitNParam(Int_t FitNParam); |
44 | void SetFitStart(Int_t FitStart); | |
04b5ea16 | 45 | |
46 | AliMUONTrackParam* GetTrackParamAtFirstHit(void); | |
a9e2aefa | 47 | |
48 | void RecursiveDump(void); // Recursive dump (with track hits) | |
956019b6 | 49 | void Fit(); // Fit |
a9e2aefa | 50 | void AddSegment(AliMUONSegment* Segment); // Add Segment |
51 | void AddHitForRec(AliMUONHitForRec* HitForRec); // Add HitForRec | |
52 | void SetTrackParamAtHit(Int_t indexHit, AliMUONTrackParam *TrackParam); | |
8429a5e4 | 53 | Int_t HitsInCommon(AliMUONTrack* Track); |
a9e2aefa | 54 | |
9774ee3a | 55 | static TVirtualFitter* Fitter(void) {return fgFitter;} |
956019b6 | 56 | |
a9e2aefa | 57 | protected: |
58 | private: | |
956019b6 | 59 | static TVirtualFitter* fgFitter; // Pointer to track fitter |
a9e2aefa | 60 | AliMUONEventReconstructor* fEventReconstructor; // Pointer to EventReconstructor |
61 | AliMUONTrackParam fTrackParamAtVertex; // Track parameters at vertex | |
8429a5e4 | 62 | TObjArray *fTrackHitsPtr; // Pointer to array of pointers to TrackHit's |
a9e2aefa | 63 | Int_t fNTrackHits; // Number of TrackHit's |
04b5ea16 | 64 | Int_t fFitMCS; // 0(1) for fit without(with) multiple Coulomb scattering |
956019b6 | 65 | Int_t fFitNParam; // 3(5) for fit with 3(5) parameters |
66 | Int_t fFitStart; // 0 or 1 for fit starting from parameters at vertex (0) or at first TrackHit(1) | |
8429a5e4 | 67 | Double_t fFitFMin; // minimum value of the function minimized by the fit |
a9e2aefa | 68 | |
044d512b | 69 | ClassDef(AliMUONTrack, 1) // Reconstructed track in ALICE dimuon spectrometer |
a9e2aefa | 70 | }; |
71 | ||
72 | #endif |