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:
13 //_________________________________________________________________________
14 // Hit impact class for PHOS
15 // A hit impact in PHOS is a set of parameters of a track which
16 // enters the detector for the first time.
17 // Track parameters are:
19 // - primary particle number
20 // - type of a particle
21 // - impact coordinate
22 // - impact 4-momentum
24 //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
26 // --- ROOT system ---
27 #include <TLorentzVector.h>
29 // --- AliRoot header files ---
32 // --- Standard library ---
34 class AliPHOSImpact : public AliHit {
38 AliPHOSImpact() { } // default ctor
39 AliPHOSImpact(const AliPHOSImpact & hit) ;
40 AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz);
41 virtual ~AliPHOSImpact(void) { } // dtor
43 Int_t GetPid(void) const {
44 // returns the particle PDG code which initiates this hit
47 Int_t GetPrimary(void) const {
48 // returns the primary particle id at the origin of this hit
51 TLorentzVector GetMomentum() const {
52 // returns momentum of the particle which initiated this hit
55 void Print(const Option_t * = "")const;
59 Int_t fPid ; // type of the particle that initiates that hit
60 Int_t fPrimary ; // Primary particles at the origine of the hit
61 TLorentzVector fMomentum; // 4-momentum of the particle
63 ClassDef(AliPHOSImpact,1) // Hit impact for PHOS
67 //////////////////////////////////////////////////////////////////////////////
69 #endif // ALIPHOSIMPACT_H