]>
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 --- |
15 | ||
16 | // --- AliRoot header files --- | |
17 | #include "AliHit.h" | |
9f616d61 | 18 | |
19 | // --- Standard library --- | |
20 | ||
de9ec31b | 21 | #include <iostream.h> |
49cd54c0 | 22 | |
23 | class AliPHOSHit : public AliHit { | |
24 | ||
49cd54c0 | 25 | public: |
26 | ||
88714635 | 27 | AliPHOSHit() { |
28 | // default ctor | |
29 | } | |
31aa6d6c | 30 | AliPHOSHit(const AliPHOSHit & hit) ; |
ff4c968a | 31 | AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ; |
66380251 | 32 | AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ; |
88714635 | 33 | virtual ~AliPHOSHit(void) { |
34 | // dtor | |
35 | } | |
49cd54c0 | 36 | |
88714635 | 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 GetPrimary(void) const { | |
46 | // returns the primary particle id at the origine of this hit | |
47 | return fPrimary ; | |
48 | } | |
ff4c968a | 49 | |
49cd54c0 | 50 | Bool_t operator == (AliPHOSHit const &rValue) const ; |
51 | AliPHOSHit operator + (const AliPHOSHit& rValue) const ; | |
52 | ||
53 | friend ostream& operator << (ostream&, const AliPHOSHit&) ; | |
54 | ||
ff4c968a | 55 | private: |
56 | ||
57 | Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad | |
58 | Float_t fELOS ; // Energy deposited | |
59 | Int_t fPrimary ; // Primary particles at the origine of the hit | |
60 | ||
b2a60966 | 61 | ClassDef(AliPHOSHit,1) // Hit for PHOS |
49cd54c0 | 62 | |
63 | } ; | |
64 | ||
65 | ////////////////////////////////////////////////////////////////////////////// | |
66 | ||
67 | #endif // ALIPHOSHIT_H |