]>
Commit | Line | Data |
---|---|---|
76103bd1 | 1 | // $Id$ |
2 | // Category: event | |
3 | // | |
4 | // See the class description in the header file. | |
5 | ||
6 | #include "AliTrackInformation.h" | |
7 | ||
7832ee45 | 8 | G4Allocator<AliTrackInformation> gAliTrackInfoAllocator; |
76103bd1 | 9 | |
78ca1e9c | 10 | //_____________________________________________________________________________ |
76103bd1 | 11 | AliTrackInformation::AliTrackInformation() |
12 | : G4VUserTrackInformation(), | |
13 | fTrackParticleID(-1), | |
14 | fParentParticleID(-1) | |
15 | { | |
16 | // | |
17 | } | |
18 | ||
78ca1e9c | 19 | //_____________________________________________________________________________ |
76103bd1 | 20 | AliTrackInformation::AliTrackInformation(G4int trackParticleID) |
21 | : G4VUserTrackInformation(), | |
22 | fTrackParticleID(trackParticleID), | |
23 | fParentParticleID(-1) | |
24 | { | |
25 | // | |
26 | } | |
27 | ||
78ca1e9c | 28 | //_____________________________________________________________________________ |
76103bd1 | 29 | AliTrackInformation::AliTrackInformation(G4int trackParticleID, |
30 | G4int parentParticleID) | |
31 | : G4VUserTrackInformation(), | |
32 | fTrackParticleID(trackParticleID), | |
33 | fParentParticleID(parentParticleID) | |
34 | { | |
35 | // | |
36 | } | |
37 | ||
78ca1e9c | 38 | //_____________________________________________________________________________ |
76103bd1 | 39 | AliTrackInformation::~AliTrackInformation(){ |
40 | // | |
41 | } | |
42 | ||
43 | // public methods | |
44 | ||
78ca1e9c | 45 | //_____________________________________________________________________________ |
76103bd1 | 46 | void AliTrackInformation::Print() const |
47 | { | |
48 | // Prints track information. | |
49 | // --- | |
50 | ||
51 | G4cout << "TrackParticleID: " << fTrackParticleID << " " | |
52 | << "ParentParticleID: " << fParentParticleID << G4endl; | |
53 | } |