]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSHit.h
Web frame and inner rings pointing.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSHit.h
index 57b911e3508c5960fd6a3dc78201b5417ebdfa64..c23dd225e15523ee6ca14dba03b5661882e5a3c0 100644 (file)
 //*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
+#include <TLorentzVector.h>
 
 // --- AliRoot header files ---
 #include "AliHit.h"
 
 // --- Standard library ---
 
-#include <iostream>
+#include <iostream.h>
 
-class AliPHOSHit : public AliHit {
 
-public:
+class AliPHOSHit : public AliHit {
 
-  AliPHOSHit() {}
-  AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
-  virtual ~AliPHOSHit(void) {}  
+  friend ostream& operator << (ostream&, const AliPHOSHit&) ;
+  
+ public:
   
-  Float_t GetEnergy(void)   const { return fELOS ; }
-  Int_t   GetId(void)       const { return fId ; }
-  Int_t   GetPrimary(void)  const { return fPrimary ; }
+  AliPHOSHit() {
+    // default ctor 
+  }
+  AliPHOSHit(const AliPHOSHit & hit) ; 
+  AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits);
+  virtual ~AliPHOSHit(void) {
+    // dtor 
+  }  
+  
+  Float_t GetEnergy(void)   const { 
+    // returns the energy loss for this hit 
+    return fELOS ; 
+  }
+  Int_t   GetId(void)       const { 
+    // return the identificator of this his
+    return fId ; 
+  }
+  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) ;
 
-  friend ostream& operator << (ostream&, const AliPHOSHit&) ;
 
-private:
+ private:
 
-  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
+  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