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 */
8 /* History of cvs commits:
11 * Revision 1.2 2005/05/28 14:19:04 schutz
12 * Compilation warnings fixed by T.P.
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:
22 // - primary particle number
23 // - type of a particle
24 // - impact coordinate
25 // - impact 4-momentum
27 //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
29 // --- ROOT system ---
30 #include <TLorentzVector.h>
32 // --- AliRoot header files ---
35 // --- Standard library ---
37 class AliPHOSImpact : public AliHit {
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 virtual ~AliPHOSImpact(void) { } // dtor
46 Int_t GetPid(void) const {
47 // returns the particle PDG code which initiates this hit
50 Int_t GetPrimary(void) const {
51 // returns the primary particle id at the origin of this hit
54 TLorentzVector GetMomentum() const {
55 // returns momentum of the particle which initiated this hit
58 void Print(const Option_t * = "")const;
61 AliPHOSImpact & operator = (const AliPHOSImpact & /*impact*/);
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
69 ClassDef(AliPHOSImpact,1) // Hit impact for PHOS
73 //////////////////////////////////////////////////////////////////////////////
75 #endif // ALIPHOSIMPACT_H