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 {
25 friend ostream& operator << (ostream&, const AliPHOSHit&) ;
32 AliPHOSHit(const AliPHOSHit & hit) ;
33 AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ;
34 virtual ~AliPHOSHit(void) {
38 Float_t GetEnergy(void) const {
39 // returns the energy loss for this hit
42 Int_t GetId(void) const {
43 // return the identificator of this his
46 Int_t GetPrimary(void) const {
47 // returns the primary particle id at the origine of this hit
51 Bool_t operator == (AliPHOSHit const &rValue) const ;
52 AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
57 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
58 Float_t fELOS ; // Energy deposited
59 Int_t fPrimary ; // Primary particles at the origine of the hit
61 ClassDef(AliPHOSHit,1) // Hit for PHOS
65 //////////////////////////////////////////////////////////////////////////////
67 #endif // ALIPHOSHIT_H