]>
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$*/ | |
30178c30 | 7 | // Revision of includes 07/05/2004 |
8 | ||
a9e2aefa | 9 | |
3831f268 | 10 | /////////////////////////////////////////////////// |
11 | // Reconstructed track in ALICE dimuon spectrometer | |
12 | /////////////////////////////////////////////////// | |
13 | ||
30178c30 | 14 | #include <TClonesArray.h> |
15 | ||
c1a185bf | 16 | #include "AliMUONTrackParam.h" // object belongs to the class |
a9e2aefa | 17 | |
343146bf | 18 | //const Int_t kMaxTrackingChamber=10; |
19 | // not used | |
d837040f | 20 | |
c1a185bf | 21 | class TObjArray; |
956019b6 | 22 | class TVirtualFitter; |
a9e2aefa | 23 | class AliMUONEventReconstructor; |
24 | class AliMUONHitForRec; | |
25 | class AliMUONSegment; | |
26 | ||
30178c30 | 27 | class AliMUONTrack : public TObject |
28 | { | |
a9e2aefa | 29 | public: |
d837040f | 30 | AliMUONTrack(); // Default constructor |
8429a5e4 | 31 | virtual ~AliMUONTrack(); // Destructor |
a9e2aefa | 32 | AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor |
33 | AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator | |
34 | ||
35 | AliMUONTrack(AliMUONSegment* BegSegment, AliMUONSegment* EndSegment, AliMUONEventReconstructor* EventReconstructor); // Constructor from two Segment's | |
36 | AliMUONTrack(AliMUONSegment* Segment, AliMUONHitForRec* HitForRec, AliMUONEventReconstructor* EventReconstructor); // Constructor from one Segment and one HitForRec | |
8429a5e4 | 37 | void Remove(void); |
a9e2aefa | 38 | |
3831f268 | 39 | AliMUONEventReconstructor* GetEventReconstructor(void) const {return fEventReconstructor;} |
40 | AliMUONTrackParam* GetTrackParamAtVertex(void) {return &fTrackParamAtVertex;} | |
04b5ea16 | 41 | void SetTrackParamAtVertex(void); // Set track parameters at vertex from last stations 4 & 5 |
956019b6 | 42 | void SetTrackParamAtVertex(AliMUONTrackParam* TrackParam) {fTrackParamAtVertex = *TrackParam;} |
d837040f | 43 | TClonesArray *GetTrackParamAtHit(void) const {return fTrackParamAtHit;} |
44 | void AddTrackParamAtHit(const AliMUONTrackParam *trackParam) | |
45 | {new ((*fTrackParamAtHit)[fTrackParamAtHit->GetEntriesFast()]) AliMUONTrackParam(*trackParam);} | |
04b5ea16 | 46 | |
3831f268 | 47 | TObjArray* GetTrackHitsPtr(void) const {return fTrackHitsPtr;} |
48 | Int_t GetNTrackHits(void) const {return fNTrackHits;} | |
49 | Int_t GetFitMCS(void) const {return fFitMCS;} | |
50 | Int_t GetFitNParam(void) const {return fFitNParam;} | |
51 | Int_t GetFitStart(void) const {return fFitStart;} | |
52 | Double_t GetFitFMin(void) const {return fFitFMin;} | |
d837040f | 53 | Bool_t GetMatchTrigger(void) const {return fMatchTrigger;} |
54 | Double_t GetChi2MatchTrigger(void) const {return fChi2MatchTrigger;} | |
04b5ea16 | 55 | void SetFitMCS(Int_t FitMCS); |
956019b6 | 56 | void SetFitNParam(Int_t FitNParam); |
57 | void SetFitStart(Int_t FitStart); | |
04b5ea16 | 58 | |
3831f268 | 59 | AliMUONTrackParam* GetTrackParamAtFirstHit(void) const; |
a9e2aefa | 60 | |
3831f268 | 61 | void RecursiveDump(void) const; // Recursive dump (with track hits) |
956019b6 | 62 | void Fit(); // Fit |
a9e2aefa | 63 | void AddSegment(AliMUONSegment* Segment); // Add Segment |
64 | void AddHitForRec(AliMUONHitForRec* HitForRec); // Add HitForRec | |
3831f268 | 65 | void SetTrackParamAtHit(Int_t indexHit, AliMUONTrackParam *TrackParam) const; |
30178c30 | 66 | Int_t HitsInCommon(AliMUONTrack* Track) const; |
d837040f | 67 | void MatchTriggerTrack(TClonesArray* TriggerTrackArray); |
a9e2aefa | 68 | |
9774ee3a | 69 | static TVirtualFitter* Fitter(void) {return fgFitter;} |
956019b6 | 70 | |
a9e2aefa | 71 | protected: |
72 | private: | |
8547965d | 73 | static TVirtualFitter* fgFitter; //! Pointer to track fitter |
74 | AliMUONEventReconstructor* fEventReconstructor; //! Pointer to EventReconstructor | |
a9e2aefa | 75 | AliMUONTrackParam fTrackParamAtVertex; // Track parameters at vertex |
d837040f | 76 | TClonesArray *fTrackParamAtHit; // Track parameters at hit |
374ebd7d | 77 | TObjArray *fTrackHitsPtr; //! Pointer to array of pointers to TrackHit's |
a9e2aefa | 78 | Int_t fNTrackHits; // Number of TrackHit's |
04b5ea16 | 79 | Int_t fFitMCS; // 0(1) for fit without(with) multiple Coulomb scattering |
956019b6 | 80 | Int_t fFitNParam; // 3(5) for fit with 3(5) parameters |
81 | Int_t fFitStart; // 0 or 1 for fit starting from parameters at vertex (0) or at first TrackHit(1) | |
8429a5e4 | 82 | Double_t fFitFMin; // minimum value of the function minimized by the fit |
d837040f | 83 | Bool_t fMatchTrigger; // 1 if track matches with trigger track, 0 if not |
84 | Double_t fChi2MatchTrigger; // chi2 of trigger/track matching | |
85 | ||
8547965d | 86 | ClassDef(AliMUONTrack, 2) // Reconstructed track in ALICE dimuon spectrometer |
a9e2aefa | 87 | }; |
88 | ||
89 | #endif |