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