]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSGeometry.h
Coding rule violations corrected.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSGeometry.h
index d8bbbf79749e806b9d5edaae8cb19c9545bf9038..503ead9a601cf70358f5347cc92200c7802cdf1e 100644 (file)
@@ -48,7 +48,7 @@ public:
     fgGeom        = 0;
     fRotMatrixArray = 0;  }  
 
-  AliPHOSGeometry(const AliPHOSGeometry & geom) {
+  AliPHOSGeometry(const AliPHOSGeometry & geom) : AliGeometry(geom) {
     // cpy ctor requested by Coding Convention but not yet needed
     
     assert(0==1) ;
@@ -61,7 +61,7 @@ public:
   virtual void   GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos) const ;
   virtual Bool_t Impact(const TParticle * particle) const ;
 
-  AliPHOSGeometry & operator = (const AliPHOSGeometry  & rvalue) const {
+  AliPHOSGeometry & operator = (const AliPHOSGeometry  & /*rvalue*/) const {
     // assignement operator requested by coding convention but not needed
     assert(0==1) ;
     return *(GetInstance()) ; 
@@ -69,9 +69,9 @@ public:
  
   // General
 
-  inline static TString Degre(void);  // a global for degree (deg)
+  static TString Degre(void) { return TString("deg") ; }  // a global for degree (deg)
 
-  inline static TString Radian(void);  // a global for radian (rad)
+  static TString Radian(void){ return TString("rad") ; }  // a global for radian (rad)
 
   Bool_t AbsToRelNumbering(const Int_t AbsId, Int_t * RelId) const ; 
                                           // converts the absolute PHOS numbering to a relative 
@@ -104,6 +104,8 @@ public:
   Float_t  GetIPtoUpperCPVsurface(void)         const { return fIPtoUpperCPVsurface ; }
   Float_t  GetOuterBoxSize(Int_t index)         const { return 2.*fPHOSParams[index]; }
   Float_t  GetCrystalSize(Int_t index)          const { return fGeometryEMCA->GetCrystalSize(index) ;  }
+  Float_t  GetCellStep(void)                    const { return 2*(fGeometryEMCA->GetAirCellHalfSize()[0] + 
+                                                                 fGeometryEMCA->GetStripWallWidthOut()) ;}
 
   // Return EMCA geometry parameters
 
@@ -177,8 +179,4 @@ private:
 
 } ;
 
-  inline static TString Degre(void) { return TString("deg") ; }  // a global for degree (deg)
-
-  inline static TString Radian(void){ return TString("rad") ; }  // a global for radian (rad)
-
 #endif // AliPHOSGEOMETRY_H