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