Correcting MUONGenerateGeometryData.C macro description
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoTrack.h
CommitLineData
9e43eec2 1#ifndef ALI_MUON_RECO_TRACK_H
2#define ALI_MUON_RECO_TRACK_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/*$Id$*/
8
692de412 9/// \ingroup rec
10/// \class AliMUONRecoTrack
11/// \brief A reconstructed muon track
12///
13/// Authors : M.Gheata, A.Gheata 09/10/00
9e43eec2 14
15#include <TObject.h>
30178c30 16#include <TMath.h>
9e43eec2 17
18////////////////////////////////////////////////////////////////////
19// //
20// AliMUONRecoTrack //
21// //
22// This class represents a reconstructed muon track. //
23// //
24////////////////////////////////////////////////////////////////////
25
30178c30 26class AliMUONRecoTrack : public TObject
9e43eec2 27{
28 public:
29 AliMUONRecoTrack() { }
30 AliMUONRecoTrack(Bool_t active);
31 virtual ~AliMUONRecoTrack() { } //desctructor
17323043 32 Double_t GetChi2r() const {return fChi2r;};
33 Double_t GetMomReconstr(Int_t axis) const {return fPr[axis];};
34 Int_t GetSign() const {return fSign;};
35 Double_t GetPosX(Int_t chamber) const {return fPosX[chamber];};
36 Double_t GetPosY(Int_t chamber) const {return fPosY[chamber];};
37 Double_t GetPosZ(Int_t chamber) const {return fPosZ[chamber];};
38 Double_t GetVertexPos() const { return fZvr;};
39 Double_t P() const {return TMath::Sqrt(fPr[0]*fPr[0] + fPr[1]*fPr[1] + fPr[2]*fPr[2]);};
40 Double_t Phi() const;
9e43eec2 41 void SetChi2r(Double_t chi) { fChi2r = chi;};
42 void SetHitPosition(Int_t chamber, Double_t x, Double_t y, Double_t z);
43 void SetMomReconstr(Double_t px, Double_t py, Double_t pz);
44 void SetSign(Int_t sign) {fSign = sign;};
45 void SetVertexPos(Double_t zvr) {fZvr = zvr;};
46 void SetFlag(Int_t flag) {fFlag = flag;};
47
17323043 48 Double_t Theta() const;
9e43eec2 49 void TrackInfo();
50
51 private:
52 Int_t fSign; // charge sign
53 Int_t fFlag; // flag of reconstructed track (0-"good", >0-"bad")
54 Double_t fZvr; // z of track vertex point
55 Double_t fChi2r; // chi squared for reco. track
56 Double_t fPr[3]; // reconstr. momentum (same as in vertex)
57 Double_t fPosX[10]; // hit X position in all chambers
58 Double_t fPosY[10]; // hit Y position in all chambers
59 Double_t fPosZ[10]; // hit Z position in all chambers
60
61 ClassDef(AliMUONRecoTrack,1) // A reconstructed muon track
62};
63
64#endif