]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliTrackInformation.cxx
README updated (R.Barbera)
[u/mrichter/AliRoot.git] / AliGeant4 / AliTrackInformation.cxx
1 // $Id$
2 // Category: event
3 //
4 // See the class description in the header file.
5
6 #include "AliTrackInformation.h"
7
8 G4Allocator<AliTrackInformation> gAliTrackInfoAllocator;
9
10 AliTrackInformation::AliTrackInformation()
11   : G4VUserTrackInformation(),
12     fTrackParticleID(-1),
13     fParentParticleID(-1) 
14 {
15 //
16 }
17
18 AliTrackInformation::AliTrackInformation(G4int trackParticleID) 
19   : G4VUserTrackInformation(),
20     fTrackParticleID(trackParticleID),
21     fParentParticleID(-1)
22 {
23 //
24 }    
25
26 AliTrackInformation::AliTrackInformation(G4int trackParticleID, 
27                                          G4int parentParticleID)
28   : G4VUserTrackInformation(),
29     fTrackParticleID(trackParticleID),
30     fParentParticleID(parentParticleID)
31 {
32 //
33 }    
34
35 AliTrackInformation::~AliTrackInformation(){
36 //
37 }    
38
39 // public methods
40
41 void AliTrackInformation::Print() const
42 {
43 // Prints track information.
44 // ---
45
46   G4cout << "TrackParticleID: " << fTrackParticleID << "   "
47          << "ParentParticleID: " << fParentParticleID << G4endl;
48 }