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