}
}
+Bool_t AliPHOSGeometry::Impact(const TParticle * particle) const
+{
+ Bool_t In=kFALSE;
+ Int_t ModuleNumber=0;
+ Double_t z,x;
+ ImpactOnEmc(particle->Theta(),particle->Phi(),ModuleNumber,z,x);
+ if(ModuleNumber) In=kTRUE;
+ else In=kFALSE;
+ return In;
+}
+
//____________________________________________________________________________
Bool_t AliPHOSGeometry::RelToAbsNumbering(const Int_t * relid, Int_t & AbsId) const
{
#include "TString.h"
#include "TObjArray.h"
+#include "TParticle.h"
#include "TVector3.h"
// --- AliRoot header files ---
virtual ~AliPHOSGeometry(void) ;
static AliPHOSGeometry * GetInstance(const Text_t* name, const Text_t* title="") ;
static AliPHOSGeometry * GetInstance() ;
- virtual void GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TMatrix & gmat) const ;
- virtual void GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos) const ;
+ virtual void GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TMatrix & gmat) const ;
+ virtual void GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos) const ;
+ virtual Bool_t Impact(const TParticle * particle) const ;
AliPHOSGeometry & operator = (const AliPHOSGeometry & rvalue) const {
// assignement operator requested by coding convention but not needed