]>
Commit | Line | Data |
---|---|---|
a625e653 | 1 | #ifndef ALITOFTRACK_H |
2 | #define ALITOFTRACK_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | ////////////////////////////////////////////////////////////// | |
8 | // TOF Reconstructed track | |
9 | // AliTOFTrack class | |
10 | // (see implementation file for details) | |
11 | // | |
12 | //-- Authors: Bologna-ITEP-Salerno Group | |
13 | ///////////////////////////////////////////////////////////// | |
14 | ||
15 | ||
16 | #include "TObject.h" | |
17 | ||
18 | //_______________________________________________________ | |
19 | class AliTOFTrack : public TObject{ | |
20 | ||
21 | public: | |
22 | AliTOFTrack(); | |
23 | AliTOFTrack(Int_t track, Float_t vtxMom, Int_t pdgcode, Float_t tpcTrackLen, Float_t* tpcpos, Float_t* tpcmom, Float_t* trdpos, Int_t pad, Int_t matchflag, Float_t length, Float_t tof, Float_t massTof); | |
24 | ~AliTOFTrack(){}; | |
25 | void SetTrack(Int_t track, Float_t vtxMom, Int_t pdgcode, Float_t tpcTrackLen, Float_t* tpcpos, Float_t* tpcmom, Float_t* trdpos); | |
26 | void SetTrack(Int_t track) {fTrack=track;} | |
27 | void SetP(Float_t mom) {fP=mom;} | |
28 | void SetPdgCode(Int_t pdgCode) {fPdgCode=pdgCode;} | |
29 | void SetlTPC(Float_t lTPC) {flTPC=lTPC;} | |
30 | void SetRxTPC(Float_t rxTPC) {fRxTPC=rxTPC;} | |
31 | void SetRyTPC(Float_t ryTPC) {fRyTPC=ryTPC;} | |
32 | void SetRzTPC(Float_t rzTPC) {fRzTPC=rzTPC;} | |
33 | void SetPxTPC(Float_t pxTPC) {fPxTPC=pxTPC;} | |
34 | void SetPyTPC(Float_t pyTPC) {fPyTPC=pyTPC;} | |
35 | void SetPzTPC(Float_t pzTPC) {fPzTPC=pzTPC;} | |
36 | void SetRxTRD(Float_t rxTRD) {fRxTRD=rxTRD;} | |
37 | void SetRyTRD(Float_t ryTRD) {fRyTRD=ryTRD;} | |
38 | void SetPixel(Int_t pad) {fPad=pad;} | |
39 | void SetMatching(Int_t matching) {fMatching=matching;} | |
40 | void SetLength(Float_t length) {fLength=length;} | |
41 | void SetTof(Float_t tof) {fTof=tof;} | |
42 | void SetMassTOF(Float_t massTOF) {fMassTOF=massTOF;} | |
43 | ||
44 | Int_t GetTrack() const {return fTrack;} | |
45 | Float_t GetP() const {return fP;} | |
46 | Int_t GetPdgCode() const {return fPdgCode;} | |
47 | Float_t GetlTPC() const {return flTPC;} | |
48 | Float_t GetRxTPC() const {return fRxTPC;} | |
49 | Float_t GetRyTPC() const {return fRyTPC;} | |
50 | Float_t GetRzTPC() const {return fRzTPC;} | |
51 | Float_t GetPxTPC() const {return fPxTPC;} | |
52 | Float_t GetPyTPC() const {return fPyTPC;} | |
53 | Float_t GetPzTPC() const {return fPzTPC;} | |
54 | Float_t GetRxTRD() const {return fRxTRD;} | |
55 | Float_t GetRyTRD() const {return fRyTRD;} | |
56 | Int_t GetPad() const {return fPad;} | |
57 | Int_t GetMatching()const {return fMatching;} | |
58 | Float_t GetLength() const {return fLength;} | |
59 | Float_t GetTof() const {return fTof;} | |
60 | Float_t GetMassTOF() const {return fMassTOF;} | |
61 | ||
62 | private: | |
63 | Int_t fTrack; // track number | |
64 | Float_t fP; // vertex momentum | |
65 | Int_t fPdgCode; // Geant code of particle | |
66 | Float_t flTPC; // length to TPC | |
67 | Float_t fRxTPC; // x-coordinate on TPC | |
68 | Float_t fRyTPC; // y-coordinate on TPC | |
69 | Float_t fRzTPC; // z-coordinate on TPC | |
70 | Float_t fPxTPC; // x-momentum on TPC | |
71 | Float_t fPyTPC; // y-momentum on TPC | |
72 | Float_t fPzTPC; // z-momentum on TPC | |
73 | Float_t fRxTRD; // x-coordinate on the last layer of TRD | |
74 | Float_t fRyTRD; // y-coordinate on the last layer of TRD | |
75 | // Float_t fTof; // Time of Flight [ns] smearing with RPC resolution | |
76 | Int_t fPad ; // pad number | |
77 | Int_t fMatching; // Index of TPC track - TOF pixel matching | |
78 | Float_t fLength ; // Track length [cm] from the origin to the TOF [cm] | |
79 | Float_t fTof; // Time [ns] determined by pixel matched with the track | |
80 | Float_t fMassTOF; // Mass [GeV] determined by fTOF,fLength,fPx,... | |
81 | ||
82 | ClassDef(AliTOFTrack,1) // TOF Reconstructed track | |
83 | }; | |
84 | ||
85 | #endif /* ALITOFTRACK_H */ |