Line data Source code
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 :
8 : /* History of cvs commits:
9 : *
10 : * $Log$
11 : * Revision 1.2 2005/05/28 14:19:04 schutz
12 : * Compilation warnings fixed by T.P.
13 : *
14 : */
15 :
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 :
41 : AliPHOSImpact(); // default ctor
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 0 : virtual ~AliPHOSImpact(void) { } // dtor
45 :
46 : Int_t GetPid(void) const {
47 : // returns the particle PDG code which initiates this hit
48 0 : return fPid ;
49 : }
50 : Int_t GetPrimary(void) const {
51 : // returns the primary particle id at the origin of this hit
52 0 : return fPrimary ;
53 : }
54 : TLorentzVector GetMomentum() const {
55 : // returns momentum of the particle which initiated this hit
56 0 : return fMomentum;
57 : }
58 : void Print(const Option_t * = "")const;
59 :
60 : private:
61 : AliPHOSImpact & operator = (const AliPHOSImpact & /*impact*/);
62 :
63 : private:
64 :
65 : Int_t fPid ; // type of the particle that initiates that hit
66 : Int_t fPrimary ; // Primary particles at the origine of the hit
67 : TLorentzVector fMomentum; // 4-momentum of the particle
68 :
69 22 : ClassDef(AliPHOSImpact,1) // Hit impact for PHOS
70 :
71 : } ;
72 :
73 : //////////////////////////////////////////////////////////////////////////////
74 :
75 : #endif // ALIPHOSIMPACT_H
|