]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSHit.h
Put back the two bellows in front of the absorber.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSHit.h
index 397584c0c30d48b05bf43ac8e8e3c5bf987013bd..4d40cfcee67f1b0db043b4a2df4f39e8c529ba15 100644 (file)
@@ -3,42 +3,62 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-////////////////////////////////////////////////
-//  Hits class for PHOS                     //
-//  Version SUBATECH                          //
-//  Author M. Volkov, RRC KI                  //
-//  october 1999:                             // 
-//            Modified by Y. Schutz SUBATECH  //
-////////////////////////////////////////////////
+/* $Id$ */
+
+//_________________________________________________________________________
+//  Hits class for PHOS     
+//  A hit in PHOS is the sum of all hits in a single crystal
+//               
+//*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
 
 // --- AliRoot header files ---
 #include "AliHit.h"
+
+// --- Standard library ---
+
 #include <iostream.h>
 
 class AliPHOSHit : public AliHit {
 
-protected:
-
-  Int_t     fId ;        // Absolute Id number of PHOS Xtal or PPSD pad
-  Float_t   fELOS ;      // Energy deposited
+  friend ostream& operator << (ostream&, const AliPHOSHit&) ;
   
-public:
-
-  AliPHOSHit() {}
-  AliPHOSHit(Int_t shunt, Int_t track, Int_t id, Float_t *hits) ;
-  virtual ~AliPHOSHit(void) {}
+ public:
   
-  Float_t GetEnergy(void)   const { return fELOS ; }
-  Int_t   GetId(void)       const { return fId ; }
+  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 ; 
+  }
+
   Bool_t operator == (AliPHOSHit const &rValue) const ;
   AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
 
-  friend ostream& operator << (ostream&, const AliPHOSHit&) ;
 
-  ClassDef(AliPHOSHit,1)  // Hits object for PHOS
+ 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
+
+  ClassDef(AliPHOSHit,1)  // Hit for PHOS
 
 } ;