]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/PHOS-HTML/AliPHOSHit.h
Partial redesign of identification bits and coding rule corrections
[u/mrichter/AliRoot.git] / PHOS / PHOS-HTML / 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>
22
23 class AliPHOSHit : public AliHit {
24
25 public:
26
27   AliPHOSHit() {}
28   AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
29   virtual ~AliPHOSHit(void) {}  
30   
31   Float_t GetEnergy(void)   const { return fELOS ; }
32   Int_t   GetId(void)       const { return fId ; }
33   Int_t   GetPrimary(void)  const { return fPrimary ; }
34
35   Bool_t operator == (AliPHOSHit const &rValue) const ;
36   AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
37
38   friend ostream& operator << (ostream&, const AliPHOSHit&) ;
39
40 private:
41
42   Int_t     fId ;        // Absolute Id number of PHOS Xtal or PPSD pad
43   Float_t   fELOS ;      // Energy deposited
44   Int_t     fPrimary ;   // Primary particles at the origine of the hit
45
46   ClassDef(AliPHOSHit,1)  // Hit for PHOS
47
48 } ;
49
50 //////////////////////////////////////////////////////////////////////////////
51
52 #endif // ALIPHOSHIT_H