3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
10 // A hit in PHOS is the sum of all hits in a single crystal
12 //*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH)
14 // --- ROOT system ---
16 // --- AliRoot header files ---
19 // --- Standard library ---
23 class AliPHOSHit : public AliHit {
28 AliPHOSHit(const AliPHOSHit & hit) ;
29 AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
30 AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ;
31 virtual ~AliPHOSHit(void) {}
33 Float_t GetEnergy(void) const { return fELOS ; }
34 Int_t GetId(void) const { return fId ; }
35 Int_t GetPrimary(void) const { return fPrimary ; }
37 Bool_t operator == (AliPHOSHit const &rValue) const ;
38 AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
40 friend ostream& operator << (ostream&, const AliPHOSHit&) ;
44 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
45 Float_t fELOS ; // Energy deposited
46 Int_t fPrimary ; // Primary particles at the origine of the hit
48 ClassDef(AliPHOSHit,1) // Hit for PHOS
52 //////////////////////////////////////////////////////////////////////////////
54 #endif // ALIPHOSHIT_H