]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSHit.h
c23dd225e15523ee6ca14dba03b5661882e5a3c0
[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 #include <TLorentzVector.h>
16
17 // --- AliRoot header files ---
18 #include "AliHit.h"
19
20 // --- Standard library ---
21
22 #include <iostream.h>
23
24
25 class AliPHOSHit : public AliHit {
26
27   friend ostream& operator << (ostream&, const AliPHOSHit&) ;
28   
29  public:
30   
31   AliPHOSHit() {
32     // default ctor 
33   }
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) {
37     // dtor 
38   }  
39   
40   Float_t GetEnergy(void)   const { 
41     // returns the energy loss for this hit 
42     return fELOS ; 
43   }
44   Int_t   GetId(void)       const { 
45     // return the identificator of this his
46     return fId ; 
47   }
48   Int_t   GetPrimary(void)  const { 
49     // returns the primary particle id at the origine of this hit 
50     return fPrimary ; 
51   }
52   virtual Float_t X() const ;
53   virtual Float_t Y() const ;
54   virtual Float_t Z() const ;
55
56
57   Bool_t operator == (AliPHOSHit const &rValue) const ;
58   AliPHOSHit operator + (const AliPHOSHit& rValue) ;
59
60
61  private:
62
63   Int_t          fId ;        // Absolute Id number of PHOS Xtal or PPSD pad
64   Float_t        fELOS ;      // Energy deposited
65   Int_t          fPrimary ;   // Primary particles at the origine of the hit
66
67   ClassDef(AliPHOSHit,1)  // Hit for PHOS
68
69 } ;
70
71 //////////////////////////////////////////////////////////////////////////////
72
73 #endif // ALIPHOSHIT_H