Line data Source code
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 :
22 : class AliPHOSHit : public AliHit {
23 :
24 : // friend ostream& operator << (ostream&, const AliPHOSHit&) ;
25 :
26 : public:
27 :
28 1420 : AliPHOSHit() : fId(0),fELOS(0),fTime(0) {
29 : // default ctor
30 710 : }
31 : AliPHOSHit(const AliPHOSHit & hit) ;
32 : AliPHOSHit(Int_t shunt, Int_t tracknumber, Int_t id, Float_t *hits);
33 1676996 : virtual ~AliPHOSHit(void) {
34 : // dtor
35 1955934 : }
36 :
37 : Float_t GetEnergy(void) const {
38 : // returns the energy loss for this hit
39 560066 : return fELOS ;
40 : }
41 : Int_t GetId(void) const {
42 : // return the identificator of this his
43 24814140 : return fId ;
44 : }
45 : Int_t GetPrimary(void) const {
46 : // returns the primary particle id at the origine of this hit
47 25371632 : return fTrack ;
48 : }
49 :
50 : Float_t GetTime(void) const {
51 : // returns the time of the first energy deposition
52 559922 : return fTime ;
53 : }
54 :
55 :
56 : Bool_t operator == (AliPHOSHit const &rValue) const ;
57 : AliPHOSHit operator + (const AliPHOSHit& rValue) ;
58 :
59 :
60 : private:
61 : AliPHOSHit & operator = (const AliPHOSHit & /*hit*/);
62 :
63 : private:
64 :
65 : Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
66 : Float_t fELOS ; // Energy deposited
67 : Float_t fTime ; // Time of the energy deposition
68 :
69 24 : ClassDef(AliPHOSHit,1) // Hit for PHOS
70 :
71 : } ;
72 :
73 : //////////////////////////////////////////////////////////////////////////////
74 :
75 : #endif // ALIPHOSHIT_H
|