]>
Commit | Line | Data |
---|---|---|
a625e653 | 1 | #ifndef ALITOFRECHIT_H |
2 | #define ALITOFRECHIT_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | #include "AliHit.h" | |
7 | ||
8 | ///////////////////////////////////////////////////////////// | |
9 | // | |
10 | // Dummy Hit class for TOF Reconstruction | |
11 | // AliTOFRecHit class | |
12 | // (see implementation file for details) | |
13 | // | |
14 | //-- Authors: Bologna-ITEP-Salerno Group | |
15 | ///////////////////////////////////////////////////////////// | |
16 | ||
17 | ||
18 | class AliTOFRecHit : public AliHit { | |
19 | ||
20 | public: | |
21 | AliTOFRecHit() {} | |
22 | AliTOFRecHit(Int_t shunt, Int_t track); | |
23 | AliTOFRecHit(const AliTOFRecHit & hit) ; | |
24 | virtual ~AliTOFRecHit() {} | |
25 | // setters and getters for AliTOFRecHit object | |
26 | ||
27 | void SetTrack(Int_t track) {fTrack=track;} | |
28 | void SetPdgCode(Int_t pdgCode) {fPdgCode=pdgCode;} | |
29 | void SetX(Float_t X) {fX=X;} | |
30 | void SetY(Float_t Y) {fY=Y;} | |
31 | void SetZ(Float_t Z) {fZ=Z;} | |
32 | void SetHit(Int_t track, Int_t pdgCode, Float_t* mrfpos, Float_t mom, Float_t vtxRadius, Int_t isFirstHit); | |
33 | void SetP(Float_t p) {fP=p;} | |
34 | void SetVrho(Float_t vrho) {fVrho=vrho;} | |
35 | void SetFirst(Int_t first) {fFirst=first;} | |
36 | void SetNoise(Int_t noise) {fNoise=noise;} | |
37 | void SetRmin(Float_t rmin) {fRmin=rmin;} | |
38 | ||
39 | Int_t GetTrack() const {return fTrack;} | |
40 | Int_t GetPdgCode() const {return fPdgCode;} | |
41 | // getters for fX, fY and fZ implemented in the mother class as X(), Y(), Z() | |
42 | Float_t GetP() const {return fP;} | |
43 | Float_t GetVrho() const {return fVrho;} | |
44 | Int_t GetFirst() const {return fFirst;} | |
45 | Int_t GetNoise() const {return fNoise;} | |
46 | Float_t GetRmin() const {return fRmin;} | |
47 | ||
48 | ||
49 | protected: | |
50 | Int_t fTrack; //track number of the particle that produced the hit | |
51 | Int_t fPdgCode; //GEANT code of the particle that produced the hit | |
52 | /* they are defined in the mother class | |
53 | Float_t fX; //x-coordinate of the hit | |
54 | Float_t fY; //y-coordinate of the hit | |
55 | Float_t fZ; //z-coordinate of the hit | |
56 | */ | |
57 | Float_t fP; //momentum | |
58 | Float_t fVrho; //rho-coordinate of the Vertex | |
59 | Int_t fFirst; //=1 for the first hit of the track, =0 otherwise | |
60 | Int_t fNoise; //=1 for the noise hit (Rvtx>200 or second, ... hit), =0 otherwise | |
61 | Float_t fRmin; //distance to the nearest TOFhit (cm) | |
62 | ||
63 | ClassDef(AliTOFRecHit,1) // Dummy Hit class for TOF Reconstruction | |
64 | }; | |
65 | ||
66 | #endif /* ALITOFRECHIT_H */ |