]>
Commit | Line | Data |
---|---|---|
473062df | 1 | #ifndef ALIPHOSIMPACT_H |
2 | #define ALIPHOSIMPACT_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 | ||
702ab87e | 8 | /* History of cvs commits: |
9 | * | |
10 | * $Log$ | |
43fbaae1 | 11 | * Revision 1.2 2005/05/28 14:19:04 schutz |
12 | * Compilation warnings fixed by T.P. | |
13 | * | |
702ab87e | 14 | */ |
15 | ||
473062df | 16 | //_________________________________________________________________________ |
17 | // Hit impact class for PHOS | |
18 | // A hit impact in PHOS is a set of parameters of a track which | |
19 | // enters the detector for the first time. | |
20 | // Track parameters are: | |
21 | // - track number | |
22 | // - primary particle number | |
23 | // - type of a particle | |
24 | // - impact coordinate | |
25 | // - impact 4-momentum | |
26 | // | |
27 | //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes) | |
28 | ||
29 | // --- ROOT system --- | |
30 | #include <TLorentzVector.h> | |
31 | ||
32 | // --- AliRoot header files --- | |
33 | #include "AliHit.h" | |
34 | ||
35 | // --- Standard library --- | |
36 | ||
37 | class AliPHOSImpact : public AliHit { | |
38 | ||
39 | public: | |
40 | ||
43fbaae1 | 41 | AliPHOSImpact(); // default ctor |
473062df | 42 | AliPHOSImpact(const AliPHOSImpact & hit) ; |
43 | AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz); | |
44 | virtual ~AliPHOSImpact(void) { } // dtor | |
45 | ||
46 | Int_t GetPid(void) const { | |
47 | // returns the particle PDG code which initiates this hit | |
48 | return fPid ; | |
49 | } | |
50 | Int_t GetPrimary(void) const { | |
51 | // returns the primary particle id at the origin of this hit | |
52 | return fPrimary ; | |
53 | } | |
54 | TLorentzVector GetMomentum() const { | |
55 | // returns momentum of the particle which initiated this hit | |
56 | return fMomentum; | |
57 | } | |
702ab87e | 58 | void Print(const Option_t * = "")const; |
473062df | 59 | |
60 | private: | |
61 | ||
62 | Int_t fPid ; // type of the particle that initiates that hit | |
63 | Int_t fPrimary ; // Primary particles at the origine of the hit | |
64 | TLorentzVector fMomentum; // 4-momentum of the particle | |
65 | ||
66 | ClassDef(AliPHOSImpact,1) // Hit impact for PHOS | |
67 | ||
68 | } ; | |
69 | ||
70 | ////////////////////////////////////////////////////////////////////////////// | |
71 | ||
72 | #endif // ALIPHOSIMPACT_H |