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
G4ThreeVector GetWorldPos() const
const SensitiveDetectorHit & operator=(const SensitiveDetectorHit &)
virtual ~SensitiveDetectorHit()
void FreeSingle(Type *anElement)
virtual std::vector< G4AttValue > * CreateAttValues() const
void SetWorldPos(G4ThreeVector xyz)
G4THitsCollection< SensitiveDetectorHit > SensitiveDetectorHitsCollection
G4int operator==(const SensitiveDetectorHit &) const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4ThreadLocal G4Allocator< SensitiveDetectorHit > * SensitiveDetectorHitAllocator