]>
Commit | Line | Data |
---|---|---|
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 | ||
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 shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits); | |
34 | virtual ~AliPHOSHit(void) { | |
35 | // dtor | |
36 | } | |
37 | ||
38 | Float_t GetEnergy(void) const { | |
39 | // returns the energy loss for this hit | |
40 | return fELOS ; | |
41 | } | |
42 | Int_t GetId(void) const { | |
43 | // return the identificator of this his | |
44 | return fId ; | |
45 | } | |
46 | Int_t GetPrimary(void) const { | |
47 | // returns the primary particle id at the origine of this hit | |
48 | return fPrimary ; | |
49 | } | |
50 | ||
51 | Float_t GetTime(void) const { | |
52 | // returns the time of the first energy deposition | |
53 | return fTime ; | |
54 | } | |
55 | ||
56 | virtual Float_t X() const ; | |
57 | virtual Float_t Y() const ; | |
58 | virtual Float_t Z() const ; | |
59 | ||
60 | Bool_t operator == (AliPHOSHit const &rValue) const ; | |
61 | AliPHOSHit operator + (const AliPHOSHit& rValue) ; | |
62 | ||
63 | ||
64 | private: | |
65 | ||
66 | Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad | |
67 | Float_t fELOS ; // Energy deposited | |
68 | Int_t fPrimary ; // Primary particles at the origine of the hit | |
69 | Float_t fTime ; // Time of the energy deposition | |
70 | ||
71 | ClassDef(AliPHOSHit,1) // Hit for PHOS | |
72 | ||
73 | } ; | |
74 | ||
75 | ////////////////////////////////////////////////////////////////////////////// | |
76 | ||
77 | #endif // ALIPHOSHIT_H |