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