31 #ifndef ExExChSensitiveDetectorHit_h
32 #define ExExChSensitiveDetectorHit_h 1
35 #include "G4THitsCollection.hh"
57 inline void *
operator new(size_t);
58 inline void operator delete(
void *aHit);
61 virtual const std::map<G4String,G4AttDef>*
GetAttDefs()
const;
79 #ifdef G4MULTITHREADED
87 inline void* ExExChSensitiveDetectorHit::operator
new(size_t)
89 #ifdef G4MULTITHREADED
90 if(!ExExChSensitiveDetectorHitAllocator)
91 ExExChSensitiveDetectorHitAllocator =
93 return (
void *) ExExChSensitiveDetectorHitAllocator->
MallocSingle();
96 aHit = (
void*)ExExChSensitiveDetectorHitAllocator.
MallocSingle();
101 inline void ExExChSensitiveDetectorHit::operator
delete(
void* aHit)
103 #ifdef G4MULTITHREADED
104 ExExChSensitiveDetectorHitAllocator->
FreeSingle((
107 ExExChSensitiveDetectorHitAllocator.
FreeSingle((
virtual std::vector< G4AttValue > * CreateAttValues() const
G4THitsCollection< ExExChSensitiveDetectorHit > ExExChSensitiveDetectorHitsCollection
virtual ~ExExChSensitiveDetectorHit()
void SetWorldPos(G4ThreeVector xyz)
void FreeSingle(Type *anElement)
ExExChSensitiveDetectorHit()
G4Allocator< ExExChSensitiveDetectorHit > ExExChSensitiveDetectorHitAllocator
int operator==(const ExExChSensitiveDetectorHit &right) const
const ExExChSensitiveDetectorHit & operator=(const ExExChSensitiveDetectorHit &right)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4ThreeVector GetWorldPos() const