28 #ifndef SensitiveDetectorHit_h
29 #define SensitiveDetectorHit_h 1
32 #include "G4THitsCollection.hh"
54 inline void *
operator new(size_t);
55 inline void operator delete(
void *aHit);
58 virtual const std::map<G4String,G4AttDef>*
GetAttDefs()
const;
76 #ifdef G4MULTITHREADED
84 inline void* SensitiveDetectorHit::operator
new(size_t)
86 #ifdef G4MULTITHREADED
87 if(!SensitiveDetectorHitAllocator)
88 SensitiveDetectorHitAllocator =
90 return (
void *) SensitiveDetectorHitAllocator->
MallocSingle();
93 aHit = (
void*)SensitiveDetectorHitAllocator.
MallocSingle();
98 inline void SensitiveDetectorHit::operator
delete(
void* aHit)
100 #ifdef G4MULTITHREADED