]>
Commit | Line | Data |
---|---|---|
a918d77a | 1 | #ifndef ALIPMDUTILITY_H |
2 | #define ALIPMDUTILITY_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
638f6e9b | 5 | //-----------------------------------------------------// |
6 | // // | |
7 | // // | |
8 | // Date : August 05 2003 // | |
9 | // // | |
10 | // Utility class for PMD // | |
11 | // // | |
12 | //-----------------------------------------------------// | |
638f6e9b | 13 | #include "Rtypes.h" |
638f6e9b | 14 | class AliPMDUtility |
15 | { | |
638f6e9b | 16 | public: |
17 | AliPMDUtility(); | |
a918d77a | 18 | AliPMDUtility(Float_t px, Float_t py, Float_t pz); |
638f6e9b | 19 | virtual ~AliPMDUtility(); |
afb8e3a0 | 20 | |
a918d77a | 21 | void RectGeomCellPos(Int_t ism, Int_t ium, |
22 | Int_t xpad, Int_t ypad, | |
23 | Float_t & xpos, Float_t & ypos); | |
24 | void RectGeomCellPos(Int_t ism, Int_t ium, | |
25 | Float_t xpad, Float_t ypad, | |
26 | Float_t & xpos, Float_t & ypos); | |
27 | void SetPxPyPz(Float_t px, Float_t py, Float_t pz); | |
28 | void SetXYZ(Float_t xpos, Float_t ypos, Float_t zpos); | |
638f6e9b | 29 | void CalculateEta(); |
30 | void CalculatePhi(); | |
31 | void CalculateEtaPhi(); | |
32 | Float_t GetTheta() const; | |
33 | Float_t GetEta() const; | |
34 | Float_t GetPhi() const; | |
35 | ||
a918d77a | 36 | protected: |
37 | Float_t fPx; // Momentum along x | |
38 | Float_t fPy; // Momentum along y | |
39 | Float_t fPz; // Momentum along z | |
40 | Float_t fTheta; // Polar angle in radian | |
41 | Float_t fEta; // Pseudo-rapidity | |
42 | Float_t fPhi; // Azimuthal angle in radian | |
43 | ||
44 | ClassDef(AliPMDUtility,2) // Utility class for the detector set:PMD | |
638f6e9b | 45 | }; |
46 | ||
47 | #endif |