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