]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSHit.h
fX, fY, fZ Getters have been overloaded to calculate accurate position of every hit...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSHit.h
index 936da55fcc82d59db4d986d8857cd429ab812049..c23dd225e15523ee6ca14dba03b5661882e5a3c0 100644 (file)
@@ -12,6 +12,7 @@
 //*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
+#include <TLorentzVector.h>
 
 // --- AliRoot header files ---
 #include "AliHit.h"
@@ -20,6 +21,7 @@
 
 #include <iostream.h>
 
+
 class AliPHOSHit : public AliHit {
 
   friend ostream& operator << (ostream&, const AliPHOSHit&) ;
@@ -30,7 +32,7 @@ class AliPHOSHit : public AliHit {
     // default ctor 
   }
   AliPHOSHit(const AliPHOSHit & hit) ; 
-  AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits, Int_t pid) ;
+  AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits);
   virtual ~AliPHOSHit(void) {
     // dtor 
   }  
@@ -43,25 +45,24 @@ class AliPHOSHit : public AliHit {
     // return the identificator of this his
     return fId ; 
   }
-  Int_t   GetPid(void)      const { 
-    // return the particle PDG code which initiates this hit
-    return fPid ; 
-  }
   Int_t   GetPrimary(void)  const { 
     // returns the primary particle id at the origine of this hit 
     return fPrimary ; 
   }
+  virtual Float_t X() const ;
+  virtual Float_t Y() const ;
+  virtual Float_t Z() const ;
+
 
   Bool_t operator == (AliPHOSHit const &rValue) const ;
-  AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
+  AliPHOSHit operator + (const AliPHOSHit& rValue) ;
 
 
  private:
 
-  Int_t     fId ;        // Absolute Id number of PHOS Xtal or PPSD pad
-  Float_t   fELOS ;      // Energy deposited
-  Int_t     fPid ;       // type of the particle that initiates that hit 
-  Int_t     fPrimary ;   // Primary particles at the origine of the hit
+  Int_t          fId ;        // Absolute Id number of PHOS Xtal or PPSD pad
+  Float_t        fELOS ;      // Energy deposited
+  Int_t          fPrimary ;   // Primary particles at the origine of the hit
 
   ClassDef(AliPHOSHit,1)  // Hit for PHOS