]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliTrackInformation.icc
MevSim interfaced through AliGenerator, first commit (Sylwester Radomski et al.)
[u/mrichter/AliRoot.git] / AliGeant4 / AliTrackInformation.icc
1 // $Id$
2 // Category: event
3
4 // inline operators
5
6 extern G4Allocator<AliTrackInformation> gAliTrackInfoAllocator;
7
8 inline void* AliTrackInformation::operator new(size_t) 
9 {
10 // Override "new" for "G4Allocator".
11 // ---
12
13   void *trackInfo;
14   trackInfo = (void *) gAliTrackInfoAllocator.MallocSingle();
15   return trackInfo;
16 }
17
18 inline void AliTrackInformation::operator delete(void *trackInfo)
19
20 // Override "delete" for "G4Allocator".
21 // ---
22
23   gAliTrackInfoAllocator.FreeSingle((AliTrackInformation *) trackInfo);
24 }
25
26 // inline methods
27
28 inline void AliTrackInformation::SetTrackParticleID(G4int trackParticleID)
29 { fTrackParticleID = trackParticleID; }
30
31 inline void AliTrackInformation::SetParentParticleID(G4int parentParticleID)
32 { fParentParticleID = parentParticleID; }
33
34 inline G4int AliTrackInformation::GetTrackParticleID() const
35 { return fTrackParticleID; }
36
37 inline G4int AliTrackInformation::GetParentParticleID() const
38 { return fParentParticleID; }