]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG1/comparison/AliMCComparisonTrack.h
Added fit macro from M. Putis
[u/mrichter/AliRoot.git] / PWG1 / comparison / AliMCComparisonTrack.h
1 #ifndef AliMCComparisonTrack_h
2 #define AliMCComparisonTrack_h
3
4 //-------------------------------------------------------------------------
5 //
6 // A calss for keeping the MC track information used in  
7 // the comparison tasks by:  Andrei.Zalite@cern.ch
8 //
9 //-------------------------------------------------------------------------
10
11 #include "TObject.h"
12
13
14 class AliMCComparisonTrack: public TObject 
15 {
16   public:
17     AliMCComparisonTrack();
18     virtual ~AliMCComparisonTrack() {}
19     
20     void SetLabel(Int_t Label)
21       {fMCLabel = Label;}
22     void SetPDG(Int_t PDG) 
23       {fMCPdg = PDG;}
24     void SetPz(Float_t PZ)
25       {fPz = PZ;}
26     void SetPt(Float_t Ptrans)
27       {fPt = Ptrans;}
28     void SetPhi(Float_t PhiAngle)
29       {fPhi = PhiAngle;}
30     void SetLocalX(Float_t localX)
31       {fLocalX =localX;}
32     void SetLocalY(Float_t localY)
33       {fLocalY =localY;}  
34     void SetZ(Float_t Zcoor)
35       {fZ = Zcoor;}
36       
37     Int_t GetLabel() const
38       {return fMCLabel;}  
39     Int_t GetPDG() const
40       {return fMCPdg;}
41     Float_t GetPz() const
42       {return fPz;}  
43     Float_t GetPt() const
44       {return fPt;}
45     Float_t GetPhi() const
46       {return fPhi;}
47     Float_t GetLocalX() const
48       {return fLocalX;}
49     Float_t GetLocalY() const
50       {return fLocalY;}      
51     Float_t GetZ() const
52       {return fZ;}
53   
54   private:
55     Int_t fMCLabel; // track label
56     Int_t fMCPdg;   // PDG particle code
57     Float_t fPz;    // z-component of momentum
58     Float_t fPt;    // component of momentum in the transverse plane
59     Float_t fPhi;   // phi angle of the particle direction
60     Float_t fLocalX; // local x-coordinate
61     Float_t fLocalY; // local y-coordinate
62     Float_t fZ;      // z-coordinate
63     
64     ClassDef(AliMCComparisonTrack, 2); 
65 };
66
67
68 #endif