#include "AliEMCALHit.h"
#include "AliRun.h"
#include "AliConst.h"
-
+#include "AliEMCALGeometry.h"
+#include "AliEMCALGetter.h"
ClassImp(AliEMCALHit)
fIparent = iparent;
fIenergy = ienergy;
}
+
+//______________________________________________________________________
+const Bool_t AliEMCALHit::IsInPreShower() const
+{
+ Bool_t rv = kFALSE ;
+
+ const AliEMCALGeometry * geom = AliEMCALGetter::GetInstance()->EMCALGeometry() ;
+ if((GetId()/geom->GetNPhi()) < (2*geom->GetNZ()))
+ rv = kTRUE;
+ return rv;
+}
+
//______________________________________________________________________
Bool_t AliEMCALHit::operator==(AliEMCALHit const &rValue) const{
// Two hits are identical if they have the same Id and originat
Float_t GetPy(void) const{return fPy;}
Float_t GetPz(void) const{return fPz;}
Float_t GetPe(void) const{return fPe;}
+ const Bool_t IsInPreShower() const ;
Bool_t operator == (AliEMCALHit const &rValue) const;
AliEMCALHit operator + (const AliEMCALHit& rValue);