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