]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALGeometry.h
Added class TParticle to keep the compiler happy
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALGeometry.h
index 56f2c3e046911ba36631793f665ca7e215735c9a..3bfcd4ec7280735c0406bd673774897acccac392 100644 (file)
@@ -18,6 +18,7 @@
 #include "TString.h"
 #include "TObjArray.h"
 #include "TVector3.h"
+class TParticle ; 
 
 // --- AliRoot header files ---
 
@@ -44,6 +45,7 @@ class AliEMCALGeometry : public AliGeometry {
     };
     virtual void GetGlobal(const AliRecPoint *, TVector3 &, TMatrix &) const {}
     virtual void GetGlobal(const AliRecPoint *, TVector3 &) const {}
+    virtual Bool_t Impact(const TParticle * particle) const {return kTRUE;}
     // General
     Bool_t  IsInitialized(void) const { return fgInit ; }
     // Return EMCA geometrical parameters
@@ -67,6 +69,7 @@ class AliEMCALGeometry : public AliGeometry {
     const Int_t   GetNZ() const {return fNZ ;}
     const Int_t   GetNEta() const {return fNZ ;}
     const Int_t   GetNPhi() const {return fNPhi ;}
+    const Int_t   GetNTowers() const {return fNPhi * fNZ ;}
     const Float_t GetPbRadThick(){ // returns Pb radiator thickness in cm.
        return fPbRadThickness;
     }
@@ -91,6 +94,8 @@ class AliEMCALGeometry : public AliGeometry {
     void TowerIndexes(Int_t index,Int_t &iz,Int_t &iphi,Int_t &ipre) const;
     // for a given tower index it returns eta and phi of center of that tower.
     void EtaPhiFromIndex(Int_t index,Float_t &eta,Float_t &phi) const;
+    // returns x, y, and z (cm) on the inner surface of a given EMCAL Cell specified by relid.
+    void XYZFromIndex(const Int_t *relid,Float_t &x,Float_t &y, Float_t &z) const;
     // for a given eta and phi in the EMCAL it returns the tower index.
     Int_t TowerIndexFromEtaPhi(Float_t eta,Float_t phi) const;
     // for a given eta and phi in the EMCAL it returns the pretower index.