New macro "MUONTracker" to make track reconstruction from reference tracks.
[u/mrichter/AliRoot.git] / MUON / AliMUONHitForRec.h
CommitLineData
a9e2aefa 1#ifndef ALIMUONHITFORREC_H
2#define ALIMUONHITFORREC_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
a9e2aefa 8
30178c30 9#include <TObject.h>
a9e2aefa 10
29fc2c86 11class AliTrackReference;
a9e2aefa 12class AliMUONRawCluster;
13class AliMUONTrackHit;
14class AliMUONTrackParam;
15
16class AliMUONHitForRec : public TObject {
17 public:
30178c30 18 AliMUONHitForRec(); // Constructor
19 virtual ~AliMUONHitForRec(){} // Destructor
b8dc484b 20 AliMUONHitForRec (const AliMUONHitForRec& AliMUONHitForRec); // copy constructor
21 AliMUONHitForRec& operator=(const AliMUONHitForRec& AliMUONHitForRec); // assignment operator
29fc2c86 22 AliMUONHitForRec(AliTrackReference* mHit); // Constructor from track ref. hit
30178c30 23 AliMUONHitForRec(AliMUONRawCluster* theRawCluster); // Constructor from raw cluster
a9e2aefa 24
9b03f36b 25 // Inline functions for Get and Set
30178c30 26 Double_t GetBendingCoor(void) const { return fBendingCoor;}
956019b6 27 void SetBendingCoor(Double_t BendingCoor) { fBendingCoor = BendingCoor;}
30178c30 28 Double_t GetNonBendingCoor(void) const { return fNonBendingCoor;}
956019b6 29 void SetNonBendingCoor(Double_t NonBendingCoor) { fNonBendingCoor = NonBendingCoor;}
30178c30 30 Double_t GetZ(void) const { return fZ;}
956019b6 31 void SetZ(Double_t Z) { fZ = Z;}
30178c30 32 Double_t GetBendingReso2(void) const { return fBendingReso2;}
956019b6 33 void SetBendingReso2(Double_t BendingReso2) { fBendingReso2 = BendingReso2;}
30178c30 34 Double_t GetNonBendingReso2(void) const { return fNonBendingReso2;}
956019b6 35 void SetNonBendingReso2(Double_t NonBendingReso2) { fNonBendingReso2 = NonBendingReso2;}
30178c30 36 Int_t GetChamberNumber(void) const { return fChamberNumber;}
956019b6 37 void SetChamberNumber(Int_t ChamberNumber) { fChamberNumber = ChamberNumber;}
30178c30 38 Int_t GetHitNumber(void) const { return fHitNumber;}
956019b6 39 void SetHitNumber(Int_t HitNumber) { fHitNumber = HitNumber;}
29fc2c86 40 Int_t GetTTRTrack(void) const { return fTTRTrack;}
41 void SetTTRTrack(Int_t TTRTrack) { fTTRTrack = TTRTrack;}
42 Int_t GetTrackRefSignal(void) const { return fTrackRefSignal;}
43 void SetTrackRefSignal(Int_t TrackRefSignal) { fTrackRefSignal = TrackRefSignal;}
30178c30 44 Int_t GetIndexOfFirstSegment(void) const { return fIndexOfFirstSegment;}
956019b6 45 void SetIndexOfFirstSegment(Int_t IndexOfFirstSegment) { fIndexOfFirstSegment = IndexOfFirstSegment;}
30178c30 46 Int_t GetNSegments(void) const { return fNSegments;}
956019b6 47 void SetNSegments(Int_t NSegments) { fNSegments = NSegments;}
30178c30 48 AliMUONTrackHit* GetFirstTrackHitPtr(void) const { return fFirstTrackHitPtr;}
956019b6 49 void SetFirstTrackHitPtr(AliMUONTrackHit* FirstTrackHitPtr) { fFirstTrackHitPtr = FirstTrackHitPtr;}
30178c30 50 AliMUONTrackHit* GetLastTrackHitPtr(void) const { return fLastTrackHitPtr;}
956019b6 51 void SetLastTrackHitPtr(AliMUONTrackHit* LastTrackHitPtr) { fLastTrackHitPtr = LastTrackHitPtr;}
30178c30 52 Int_t GetNTrackHits(void) const { return fNTrackHits;}
956019b6 53 void SetNTrackHits(Int_t NTrackHits) { fNTrackHits = NTrackHits;}
9b03f36b 54
a9e2aefa 55
30178c30 56 Double_t NormalizedChi2WithHitForRec(AliMUONHitForRec* Hit, Double_t Sigma2Cut) const;
a9e2aefa 57/* void UpdateFromChamberTrackParam(AliMUONTrackParam *TrackParam, Double_t MCSfactor); */
58
59 // What is necessary for sorting TClonesArray's; sufficient too ????
60 Bool_t IsSortable() const { return kTRUE; }
2a941f4e 61 Int_t Compare(const TObject* HitForRec) const; // "Compare" function for sorting
30178c30 62
30178c30 63
a9e2aefa 64 private:
65 Double_t fBendingCoor; // coordinate (cm) in bending plane
66 Double_t fNonBendingCoor; // coordinate (cm) in non bending plane
67 Double_t fZ; // Z coordinate (cm)
68 Double_t fBendingReso2; // resolution**2 (cm**2) on coordinate in bending plane
69 Double_t fNonBendingReso2; // resolution**2 (cm**2) on coordinate in non bending plane
70
71 // links back to original hit for various checks
72 // ideal would be real link to "hit" or "reconstructed hit"
73 // if everything would be in memory ????
74 Int_t fChamberNumber; // chamber number (0...)
29fc2c86 75 Int_t fHitNumber; // hit number (0...): RawCluster in "chamber" event of TR or track ref. hit in "track" event of TTR
76 Int_t fTTRTrack; // track number (0...) in TTR
77 Int_t fTrackRefSignal; // Track ref. signal (1) or background (0)
a9e2aefa 78
79 // links forward to the segment(s) if HitForRec in first chamber of a station
b8dc484b 80 Int_t fIndexOfFirstSegment; //! index of first Segment
81 Int_t fNSegments; //! number of Segments
a9e2aefa 82
83 // links forward to reconstructed track hits
b8dc484b 84 AliMUONTrackHit *fFirstTrackHitPtr ; //! pointer to first TrackHit made with HitForRec
85 AliMUONTrackHit *fLastTrackHitPtr ; //! pointer to last TrackHit made with HitForRec
86 Int_t fNTrackHits; //! number of TrackHit's made with HitForRec
a9e2aefa 87
044d512b 88 ClassDef(AliMUONHitForRec, 1) // Hit for reconstruction in ALICE dimuon spectrometer
a9e2aefa 89 };
90
91#endif