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