]>
Commit | Line | Data |
---|---|---|
b37750a6 | 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 | ||
b37750a6 | 22 | class AliPHOSHit : public AliHit { |
23 | ||
24 | friend ostream& operator << (ostream&, const AliPHOSHit&) ; | |
25 | ||
26 | public: | |
27 | ||
28 | AliPHOSHit() { | |
29 | // default ctor | |
30 | } | |
31 | AliPHOSHit(const AliPHOSHit & hit) ; | |
32 | AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits, Int_t pid, TLorentzVector p, Float_t *xy); | |
33 | virtual ~AliPHOSHit(void) { | |
34 | // dtor | |
35 | } | |
36 | ||
37 | Float_t GetEnergy(void) const { | |
38 | // returns the energy loss for this hit | |
39 | return fELOS ; | |
40 | } | |
41 | Int_t GetId(void) const { | |
42 | // return the identificator of this his | |
43 | return fId ; | |
44 | } | |
45 | Int_t GetPid(void) const { | |
46 | // return the particle PDG code which initiates this hit | |
47 | return fPid ; | |
48 | } | |
49 | Int_t GetPrimary(void) const { | |
50 | // returns the primary particle id at the origine of this hit | |
51 | return fPrimary ; | |
52 | } | |
53 | TLorentzVector GetMomentum() { return fMomentum; } | |
54 | // momentum of the particle which initiated this hit | |
55 | ||
56 | Bool_t operator == (AliPHOSHit const &rValue) const ; | |
57 | AliPHOSHit operator + (const AliPHOSHit& rValue) ; | |
58 | ||
59 | ||
60 | private: | |
61 | ||
62 | Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad | |
63 | Float_t fELOS ; // Energy deposited | |
64 | Int_t fPid ; // type of the particle that initiates that hit | |
65 | Int_t fPrimary ; // Primary particles at the origine of the hit | |
66 | ||
67 | TLorentzVector fMomentum; // 4-momentum of the particle | |
68 | ||
69 | ClassDef(AliPHOSHit,1) // Hit for PHOS | |
70 | ||
71 | } ; | |
72 | ||
73 | ////////////////////////////////////////////////////////////////////////////// | |
74 | ||
75 | #endif // ALIPHOSHIT_H |