3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 ////////////////////////////////////////////////
7 // Hits class for PHOS //
9 // A hit in PHOS is the sum of all hits in a //
10 // a single crystal due to one ans only one //
11 // primary particle //
12 // Author M. Volkov, RRC KI //
14 // Modified by Y. Schutz SUBATECH //
16 // Modified by Y. Schutz SUBATECH //
18 ////////////////////////////////////////////////
22 // --- ROOT system ---
24 // --- AliRoot header files ---
27 // --- Standard library ---
31 class AliPHOSHit : public AliHit {
36 AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
37 virtual ~AliPHOSHit(void) {}
39 Float_t GetEnergy(void) const { return fELOS ; }
40 Int_t GetId(void) const { return fId ; }
41 Int_t GetPrimary(void) const { return fPrimary ; }
43 Bool_t operator == (AliPHOSHit const &rValue) const ;
44 AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
46 friend ostream& operator << (ostream&, const AliPHOSHit&) ;
50 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
51 Float_t fELOS ; // Energy deposited
52 Int_t fPrimary ; // Primary particles at the origine of the hit
54 ClassDef(AliPHOSHit,1) // Hits object for PHOS
58 //////////////////////////////////////////////////////////////////////////////
60 #endif // ALIPHOSHIT_H