]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDUtility.h
new version clustering algo
[u/mrichter/AliRoot.git] / PMD / AliPMDUtility.h
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                               */
5 //-----------------------------------------------------//
6 //                                                     //
7 //                                                     //
8 //  Date   : August 05 2003                            //
9 //                                                     //
10 //  Utility class for PMD                              //
11 //                                                     //
12 //-----------------------------------------------------//
13 #include "Rtypes.h"
14 class AliPMDUtility
15 {
16  public:
17   AliPMDUtility();
18   AliPMDUtility(Float_t px, Float_t py, Float_t pz);
19   virtual ~AliPMDUtility();
20
21   void RectGeomCellPos(Int_t ism, Int_t xpad, Int_t ypad,
22                        Float_t & xpos, Float_t & ypos);
23   void RectGeomCellPos(Int_t ism, Float_t xpad, Float_t ypad,
24                        Float_t & xpos, Float_t & ypos);
25   void SetPxPyPz(Float_t px, Float_t py, Float_t pz);
26   void SetXYZ(Float_t xpos, Float_t ypos, Float_t zpos);
27   void CalculateEta();
28   void CalculatePhi();
29   void CalculateEtaPhi();
30   Float_t GetTheta() const;
31   Float_t GetEta() const;
32   Float_t GetPhi() const;
33   
34  protected:
35   Float_t fPx;     // Momentum along x
36   Float_t fPy;     // Momentum along y
37   Float_t fPz;     // Momentum along z
38   Float_t fTheta;  // Polar angle in radian
39   Float_t fEta;    // Pseudo-rapidity
40   Float_t fPhi;    // Azimuthal angle in radian
41   
42   ClassDef(AliPMDUtility,3) // Utility class for the detector set:PMD
43 };
44
45 #endif