]>
Commit | Line | Data |
---|---|---|
76103bd1 | 1 | // $Id$ |
2 | // Category: event | |
3 | ||
4 | // inline operators | |
5 | ||
7832ee45 | 6 | extern G4Allocator<AliTrackInformation> gAliTrackInfoAllocator; |
76103bd1 | 7 | |
8 | inline 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 | ||
18 | inline 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 | ||
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; } |