]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSHit.h
Continuation of TFlukaGeo based on TGeo.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSHit.h
index c23dd225e15523ee6ca14dba03b5661882e5a3c0..1b132e5995fe700afbcf72fb331a82d075bb2aca 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.h>
-
 
 class AliPHOSHit : public AliHit {
 
-  friend ostream& operator << (ostream&, const AliPHOSHit&) ;
+//   friend ostream& operator << (ostream&, const AliPHOSHit&) ;
   
  public:
   
@@ -49,11 +46,16 @@ class AliPHOSHit : public AliHit {
     // returns the primary particle id at the origine of this hit 
     return fPrimary ; 
   }
+
+  Float_t GetTime(void)     const {
+    // returns the time of the first energy deposition
+    return fTime ;
+  }
+
   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) ;
 
@@ -63,6 +65,7 @@ class AliPHOSHit : public AliHit {
   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
+  Float_t        fTime ;      // Time of the energy deposition
 
   ClassDef(AliPHOSHit,1)  // Hit for PHOS