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