]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG1/comparison/AliMCComparisonTrack.h
Added fit macro from M. Putis
[u/mrichter/AliRoot.git] / PWG1 / comparison / AliMCComparisonTrack.h
CommitLineData
0ee094cc 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//-------------------------------------------------------------------------
31e081ed 10
11#include "TObject.h"
12
13
14class AliMCComparisonTrack: public TObject
15{
16 public:
17 AliMCComparisonTrack();
18 virtual ~AliMCComparisonTrack() {}
19
20 void SetLabel(Int_t Label)
0ee094cc 21 {fMCLabel = Label;}
31e081ed 22 void SetPDG(Int_t PDG)
0ee094cc 23 {fMCPdg = PDG;}
f2247c19 24 void SetPz(Float_t PZ)
0ee094cc 25 {fPz = PZ;}
f2247c19 26 void SetPt(Float_t Ptrans)
0ee094cc 27 {fPt = Ptrans;}
f2247c19 28 void SetPhi(Float_t PhiAngle)
0ee094cc 29 {fPhi = PhiAngle;}
f2247c19 30 void SetLocalX(Float_t localX)
0ee094cc 31 {fLocalX =localX;}
f2247c19 32 void SetLocalY(Float_t localY)
0ee094cc 33 {fLocalY =localY;}
f2247c19 34 void SetZ(Float_t Zcoor)
0ee094cc 35 {fZ = Zcoor;}
31e081ed 36
0ee094cc 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;}
31e081ed 53
54 private:
0ee094cc 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
31e081ed 63
0ee094cc 64 ClassDef(AliMCComparisonTrack, 2);
31e081ed 65};
66
67
68#endif