]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTrack.h
Runloader is updated when moving to next file (quick fix).
[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$*/
30178c30 7// Revision of includes 07/05/2004
8
692de412 9/// \ingroup rec
10/// \class AliMUONTrack
11/// \brief Reconstructed track in ALICE dimuon spectrometer
12///
13////////////////////////////////////////////////////
14/// Reconstructed track in ALICE dimuon spectrometer
15////////////////////////////////////////////////////
3831f268 16
30178c30 17#include <TClonesArray.h>
18
c1a185bf 19#include "AliMUONTrackParam.h" // object belongs to the class
a9e2aefa 20
a9e2aefa 21class AliMUONHitForRec;
a9e2aefa 22
30178c30 23class AliMUONTrack : public TObject
24{
a9e2aefa 25 public:
d837040f 26 AliMUONTrack(); // Default constructor
8429a5e4 27 virtual ~AliMUONTrack(); // Destructor
a9e2aefa 28 AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor
29 AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator
30
208f139e 31 AliMUONTrack(AliMUONHitForRec* hitForRec1, AliMUONHitForRec* hitForRec2); // Constructor from a segment
a9e2aefa 32
2457f726 33 /// return pointeur to track parameters at vertex
6464217e 34 AliMUONTrackParam* GetTrackParamAtVertex(void) {return &fTrackParamAtVertex;}
2457f726 35 /// set track parameters at vertex
208f139e 36 void SetTrackParamAtVertex(AliMUONTrackParam* trackParam) {fTrackParamAtVertex = *trackParam;}
de2cd600 37
2457f726 38 /// return array of track parameters at hit
6464217e 39 TClonesArray* GetTrackParamAtHit(void) const {return fTrackParamAtHit;}
2457f726 40 /// reset array of track parameters at hit
6464217e 41 void ResetTrackParamAtHit(void) { fTrackParamAtHit->Delete(); }
de2cd600 42 void AddTrackParamAtHit(AliMUONTrackParam *trackParam, AliMUONHitForRec *hitForRec);
43
2457f726 44 /// return array of hitForRec at hit
de2cd600 45 TClonesArray* GetHitForRecAtHit(void) const {return fHitForRecAtHit;}
2457f726 46 /// reset array of hitForRec at hit
6464217e 47 void ResetHitForRecAtHit(void) { fHitForRecAtHit->Delete(); }
6464217e 48 void AddHitForRecAtHit(const AliMUONHitForRec *hitForRec);
49
2457f726 50 /// return the number of hits attached to the track
6464217e 51 Int_t GetNTrackHits(void) const {return fNTrackHits;}
2457f726 52 /// set the number of hits attached to the track
6464217e 53 void SetNTrackHits(Int_t nTrackHits) {fNTrackHits = nTrackHits;}
de2cd600 54
208f139e 55 /// return pointeur to track parameters extrapolated to the next station
56 AliMUONTrackParam* GetExtrapTrackParam(void) {return &fExtrapTrackParam;}
57 /// set track parameters extrapolated to next station
58 void SetExtrapTrackParam(AliMUONTrackParam* trackParam) {fExtrapTrackParam = *trackParam;}
59
60 /// return kTrue if the vertex must be used to constrain the fit, kFalse if not
61 Bool_t GetFitWithVertex(void) const {return fFitWithVertex;}
62 /// set the flag telling whether the vertex must be used to constrain the fit or not
63 void SetFitWithVertex(Bool_t fitWithVertex) { fFitWithVertex = fitWithVertex; }
64 /// return the vertex used during the tracking procedure
65 AliMUONHitForRec* GetVertex(void) const {return fVertex;}
66 void SetVertex(AliMUONHitForRec* vertex);
67
2457f726 68 /// return the minimum value of the function minimized by the fit
6464217e 69 Double_t GetFitFMin(void) const {return fFitFMin;}
2457f726 70 /// set the minimum value of the function minimized by the fit
208f139e 71 void SetFitFMin(Double_t chi2) { fFitFMin = chi2; }
2457f726 72 /// return kTrue if track matches with trigger track, kFalse if not
6464217e 73 Bool_t GetMatchTrigger(void) const {return fMatchTrigger;}
c6ba19f7 74 /// returns the local trigger number corresponding to the trigger track
75 Int_t GetLoTrgNum(void) const {return floTrgNum;}
2457f726 76 /// set the flag telling whether track matches with trigger track or not
c6ba19f7 77 void SetMatchTrigger(Bool_t matchTrigger) {fMatchTrigger = matchTrigger;}
78 /// set the local trigger number corresponding to the trigger track
79 void SetLoTrgNum(Int_t loTrgNum) {floTrgNum = loTrgNum;}
2457f726 80 /// return the chi2 of trigger/track matching
6464217e 81 Double_t GetChi2MatchTrigger(void) const {return fChi2MatchTrigger;}
2457f726 82 /// set the chi2 of trigger/track matching
208f139e 83 void SetChi2MatchTrigger(Double_t chi2MatchTrigger) {fChi2MatchTrigger = chi2MatchTrigger;}
de2cd600 84
208f139e 85 Int_t HitsInCommon(AliMUONTrack* track) const;
86 Bool_t* CompatibleTrack(AliMUONTrack* track, Double_t sigma2Cut) const; // return array of compatible chamber
b8dc484b 87
2457f726 88 /// return track number in TrackRefs
6464217e 89 Int_t GetTrackID() const {return fTrackID;}
2457f726 90 /// set track number in TrackRefs
6464217e 91 void SetTrackID(Int_t trackID) {fTrackID = trackID;}
92
208f139e 93 Double_t TryOneHitForRec(AliMUONHitForRec* hitForRec);
94 Double_t TryTwoHitForRec(AliMUONHitForRec* hitForRec1, AliMUONHitForRec* hitForRec2);
95
de2cd600 96 void RecursiveDump(void) const; // Recursive dump (with track hits)
6464217e 97
de2cd600 98 virtual void Print(Option_t* opt="") const;
a9e2aefa 99
956019b6 100
a9e2aefa 101 private:
208f139e 102 static const Double_t fgkMaxTrackingDistanceBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in bending direction
103 static const Double_t fgkMaxTrackingDistanceNonBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in non bending direction
104
8cde4af5 105 AliMUONTrackParam fTrackParamAtVertex; //!< Track parameters at vertex
829425a5 106 TClonesArray *fTrackParamAtHit; ///< Track parameters at hit
107 TClonesArray *fHitForRecAtHit; ///< Cluster parameters at hit
2457f726 108 Int_t fNTrackHits; ///< Number of hits attached to the track
de2cd600 109
208f139e 110 AliMUONTrackParam fExtrapTrackParam; //!< Track parameters extrapolated to a given z position
111
112 Bool_t fFitWithVertex; //!< 1 if using the vertex to constrain the fit, 0 if not
113 AliMUONHitForRec *fVertex; //!< Vertex used during the tracking procedure if required
114
829425a5 115 Double_t fFitFMin; ///< minimum value of the function minimized by the fit
116 Bool_t fMatchTrigger; ///< 1 if track matches with trigger track, 0 if not
c6ba19f7 117 Int_t floTrgNum; ///< the number of the corresponding loTrg, -1 if no matching
829425a5 118 Double_t fChi2MatchTrigger; ///< chi2 of trigger/track matching
de2cd600 119
829425a5 120 Int_t fTrackID; ///< track ID = track number in TrackRefs
de2cd600 121
122
8cde4af5 123 ClassDef(AliMUONTrack, 4) // Reconstructed track in ALICE dimuon spectrometer
de2cd600 124};
a9e2aefa 125
126#endif