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