]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSHit.h
Problems with the HP compiler fixed
[u/mrichter/AliRoot.git] / PHOS / AliPHOSHit.h
1 #ifndef ALIPHOSHIT_H
2 #define ALIPHOSHIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  Hits class for PHOS     
10 //  A hit in PHOS is the sum of all hits in a single crystal
11 //               
12 //*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH)
13
14 // --- ROOT system ---
15
16 // --- AliRoot header files ---
17 #include "AliHit.h"
18
19 // --- Standard library ---
20
21 #include <iostream.h>
22
23 class AliPHOSHit : public AliHit {
24
25   friend ostream& operator << (ostream&, const AliPHOSHit&) ;
26   
27  public:
28   
29   AliPHOSHit() {
30     // default ctor 
31   }
32   AliPHOSHit(const AliPHOSHit & hit) ; 
33   AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
34   AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ;
35   virtual ~AliPHOSHit(void) {
36     // dtor 
37   }  
38   
39   Float_t GetEnergy(void)   const { 
40     // returns the energy loss for this hit 
41     return fELOS ; 
42   }
43   Int_t   GetId(void)       const { 
44     // return the identificator of this his
45     return fId ; 
46   }
47   Int_t   GetPrimary(void)  const { 
48     // returns the primary particle id at the origine of this hit 
49     return fPrimary ; 
50   }
51
52   Bool_t operator == (AliPHOSHit const &rValue) const ;
53   AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
54
55
56  private:
57
58   Int_t     fId ;        // Absolute Id number of PHOS Xtal or PPSD pad
59   Float_t   fELOS ;      // Energy deposited
60   Int_t     fPrimary ;   // Primary particles at the origine of the hit
61
62   ClassDef(AliPHOSHit,1)  // Hit for PHOS
63
64 } ;
65
66 //////////////////////////////////////////////////////////////////////////////
67
68 #endif // ALIPHOSHIT_H