Copy constructor is corrected (by T.P.)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSImpact.h
CommitLineData
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
8//_________________________________________________________________________
9// Hit impact class for PHOS
10// A hit impact in PHOS is a set of parameters of a track which
11// enters the detector for the first time.
12// Track parameters are:
13// - track number
14// - primary particle number
15// - type of a particle
16// - impact coordinate
17// - impact 4-momentum
18//
19//*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
20
21// --- ROOT system ---
22#include <TLorentzVector.h>
23
24// --- AliRoot header files ---
25#include "AliHit.h"
26
27// --- Standard library ---
28
29class AliPHOSImpact : public AliHit {
30
31public:
32
33 AliPHOSImpact() { } // default ctor
34 AliPHOSImpact(const AliPHOSImpact & hit) ;
35 AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz);
36 virtual ~AliPHOSImpact(void) { } // dtor
37
38 Int_t GetPid(void) const {
39 // returns the particle PDG code which initiates this hit
40 return fPid ;
41 }
42 Int_t GetPrimary(void) const {
43 // returns the primary particle id at the origin of this hit
44 return fPrimary ;
45 }
46 TLorentzVector GetMomentum() const {
47 // returns momentum of the particle which initiated this hit
48 return fMomentum;
49 }
50 void Print();
51
52private:
53
54 Int_t fPid ; // type of the particle that initiates that hit
55 Int_t fPrimary ; // Primary particles at the origine of the hit
56 TLorentzVector fMomentum; // 4-momentum of the particle
57
58 ClassDef(AliPHOSImpact,1) // Hit impact for PHOS
59
60} ;
61
62//////////////////////////////////////////////////////////////////////////////
63
64#endif // ALIPHOSIMPACT_H