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 ---
22 class AliPHOSHit : public AliHit {
24 // friend ostream& operator << (ostream&, const AliPHOSHit&) ;
28 AliPHOSHit() : fId(0),fELOS(0),fTime(0) {
31 AliPHOSHit(const AliPHOSHit & hit) ;
32 AliPHOSHit(Int_t shunt, Int_t tracknumber, Int_t id, Float_t *hits);
33 virtual ~AliPHOSHit(void) {
37 Float_t GetEnergy(void) const {
38 // returns the energy loss for this hit
41 Int_t GetId(void) const {
42 // return the identificator of this his
45 Int_t GetPrimary(void) const {
46 // returns the primary particle id at the origine of this hit
50 Float_t GetTime(void) const {
51 // returns the time of the first energy deposition
56 Bool_t operator == (AliPHOSHit const &rValue) const ;
57 AliPHOSHit operator + (const AliPHOSHit& rValue) ;
61 AliPHOSHit & operator = (const AliPHOSHit & /*hit*/);
65 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
66 Float_t fELOS ; // Energy deposited
67 Float_t fTime ; // Time of the energy deposition
69 ClassDef(AliPHOSHit,1) // Hit for PHOS
73 //////////////////////////////////////////////////////////////////////////////
75 #endif // ALIPHOSHIT_H