// --- Standard library ---
-#include <iostream.h>
class AliPHOSHit : public AliHit {
-public:
-
+// friend ostream& operator << (ostream&, const AliPHOSHit&) ;
+
+ public:
+
AliPHOSHit() {
// default ctor
}
AliPHOSHit(const AliPHOSHit & hit) ;
- AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
- AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ;
+ AliPHOSHit(Int_t shunt, Int_t tracknumber, Int_t id, Float_t *hits);
virtual ~AliPHOSHit(void) {
// dtor
}
}
Int_t GetPrimary(void) const {
// returns the primary particle id at the origine of this hit
- return fPrimary ;
+ return fTrack ;
}
+ Float_t GetTime(void) const {
+ // returns the time of the first energy deposition
+ return fTime ;
+ }
+
+
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
+ Float_t fTime ; // Time of the energy deposition
ClassDef(AliPHOSHit,1) // Hit for PHOS