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