]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSHit.h
DisplayRecPoint threshold is added for digit 2D histo and clusterizing parameters...
[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 ////////////////////////////////////////////////
7 //  Hits class for PHOS                       //
8 //  Version SUBATECH                          //
9 //  A hit in PHOS is the sum of all hits in a //
10 //  a single crystal due to one ans only one  //  
11 //  primary particle                          //
12 //  Author M. Volkov, RRC KI                  //
13 //  october 1999:                             // 
14 //            Modified by Y. Schutz SUBATECH  //
15 //  january 2000:                             // 
16 //            Modified by Y. Schutz SUBATECH  //
17 //            added fPrimary                  //
18 ////////////////////////////////////////////////
19
20 /* $Id$ */
21
22 // --- ROOT system ---
23
24 // --- AliRoot header files ---
25 #include "AliHit.h"
26
27 // --- Standard library ---
28
29 #include <iostream>
30
31 class AliPHOSHit : public AliHit {
32
33 public:
34
35   AliPHOSHit() {}
36   AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
37   virtual ~AliPHOSHit(void) {}  
38   
39   Float_t GetEnergy(void)   const { return fELOS ; }
40   Int_t   GetId(void)       const { return fId ; }
41   Int_t   GetPrimary(void)  const { return fPrimary ; }
42
43   Bool_t operator == (AliPHOSHit const &rValue) const ;
44   AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
45
46   friend ostream& operator << (ostream&, const AliPHOSHit&) ;
47
48 private:
49
50   Int_t     fId ;        // Absolute Id number of PHOS Xtal or PPSD pad
51   Float_t   fELOS ;      // Energy deposited
52   Int_t     fPrimary ;   // Primary particles at the origine of the hit
53
54   ClassDef(AliPHOSHit,1)  // Hits object for PHOS
55
56 } ;
57
58 //////////////////////////////////////////////////////////////////////////////
59
60 #endif // ALIPHOSHIT_H