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 ---
15 #include <TLorentzVector.h>
17 // --- AliRoot header files ---
20 // --- Standard library ---
25 class AliPHOSHit : public AliHit {
27 friend ostream& operator << (ostream&, const AliPHOSHit&) ;
34 AliPHOSHit(const AliPHOSHit & hit) ;
35 AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits);
36 virtual ~AliPHOSHit(void) {
40 Float_t GetEnergy(void) const {
41 // returns the energy loss for this hit
44 Int_t GetId(void) const {
45 // return the identificator of this his
48 Int_t GetPrimary(void) const {
49 // returns the primary particle id at the origine of this hit
53 Float_t GetTime(void) const {
54 // returns the time of the first energy deposition
58 virtual Float_t X() const ;
59 virtual Float_t Y() const ;
60 virtual Float_t Z() const ;
62 Bool_t operator == (AliPHOSHit const &rValue) const ;
63 AliPHOSHit operator + (const AliPHOSHit& rValue) ;
68 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
69 Float_t fELOS ; // Energy deposited
70 Int_t fPrimary ; // Primary particles at the origine of the hit
71 Float_t fTime ; // Time of the energy deposition
73 ClassDef(AliPHOSHit,1) // Hit for PHOS
77 //////////////////////////////////////////////////////////////////////////////
79 #endif // ALIPHOSHIT_H