]>
Commit | Line | Data |
---|---|---|
49cd54c0 | 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 | ||
6ad0bfa0 | 6 | /* $Id$ */ |
7 | ||
b2a60966 | 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 | ||
49cd54c0 | 14 | // --- ROOT system --- |
7854a24a | 15 | #include <TLorentzVector.h> |
49cd54c0 | 16 | |
17 | // --- AliRoot header files --- | |
18 | #include "AliHit.h" | |
9f616d61 | 19 | |
20 | // --- Standard library --- | |
21 | ||
de9ec31b | 22 | #include <iostream.h> |
49cd54c0 | 23 | |
037cc66d | 24 | |
49cd54c0 | 25 | class AliPHOSHit : public AliHit { |
26 | ||
6c370def | 27 | friend ostream& operator << (ostream&, const AliPHOSHit&) ; |
28 | ||
29 | public: | |
30 | ||
88714635 | 31 | AliPHOSHit() { |
32 | // default ctor | |
33 | } | |
31aa6d6c | 34 | AliPHOSHit(const AliPHOSHit & hit) ; |
b37750a6 | 35 | AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits); |
88714635 | 36 | virtual ~AliPHOSHit(void) { |
37 | // dtor | |
38 | } | |
49cd54c0 | 39 | |
88714635 | 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 | } | |
9688c1dd | 52 | |
53 | Float_t GetTime(void) const { | |
54 | // returns the time of the first energy deposition | |
55 | return fTime ; | |
56 | } | |
57 | ||
1c75044c | 58 | virtual Float_t X() const ; |
59 | virtual Float_t Y() const ; | |
60 | virtual Float_t Z() const ; | |
61 | ||
49cd54c0 | 62 | Bool_t operator == (AliPHOSHit const &rValue) const ; |
7854a24a | 63 | AliPHOSHit operator + (const AliPHOSHit& rValue) ; |
49cd54c0 | 64 | |
49cd54c0 | 65 | |
6c370def | 66 | private: |
ff4c968a | 67 | |
037cc66d | 68 | Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad |
69 | Float_t fELOS ; // Energy deposited | |
037cc66d | 70 | Int_t fPrimary ; // Primary particles at the origine of the hit |
9688c1dd | 71 | Float_t fTime ; // Time of the energy deposition |
037cc66d | 72 | |
b2a60966 | 73 | ClassDef(AliPHOSHit,1) // Hit for PHOS |
49cd54c0 | 74 | |
75 | } ; | |
76 | ||
77 | ////////////////////////////////////////////////////////////////////////////// | |
78 | ||
79 | #endif // ALIPHOSHIT_H |