13 #include "G4Allocator.hh"
15 #include "G4THitsCollection.hh"
16 #include "G4ThreeVector.hh"
18 #include "G4VPhysicalVolume.hh"
71 inline void *
operator new(
size_t size);
80 inline void operator delete(
void *aHit);
114 virtual void AddStep(
const G4Step &step);
154 inline G4double
GetTime()
const {
return _time; }
223 G4double _pathLength;
224 G4ThreeVector _entrancePoint;
225 G4ThreeVector _exitPoint;
226 G4ThreeVector _entranceMomentum;
227 G4double _entranceEnergy;
245 inline void *GGSPartHit::operator
new(size_t) {
262 #define RegisterPartHit(className) \
263 GGSPartHit *className##Builder() { return new className(); } \
264 class className##Proxy { \
266 className##Proxy() { GGSPartHitFactory::GetInstance().RegisterBuilder(#className, className##Builder); } \
268 className##Proxy proxyFor##className
G4THitsCollection< GGSPosHit > GGSPosHitsCollection
Alias for G4 template hits collection for GGSPosHit.
virtual void AddStep(const G4Step &step)
Adds a step to the particle hit.
G4double GetEnergyDeposit() const
Energy deposit getter.
void SetTrackID(G4int id)
Track ID setter.
G4ThreeVector GetEntrancePoint() const
Entrance point getter.
G4double GetTime() const
Time getter.
void GGS_IGNORE_VAR(const T &)
Small utility to avoid compiler warnings for unused methods.
bool operator==(const GGSPartHit &right) const
Comparison operator.
Definition of GGS Particle Hit.
virtual void UserInit(G4Step *aStep)
User initialization of hit global properties.
G4int GetParentID() const
Parent's track ID getter.
void SetPosHitsStorage(bool flag)
Turn on or off the storage of position hits.
void SetParticlePdg(G4int pdg)
PDG code setter.
const GGSPartHit & operator=(const GGSPartHit &right)
Assignment operator.
void SetParentID(G4int id)
Parent's track ID setter.
G4int GetParticlePdg() const
PDG code getter.
G4ThreeVector GetExitPoint() const
Exit point getter.
G4ThreeVector GetEntranceMomentum() const
Entrance momentum getter.
G4Allocator< GGSPartHit > GGSPartHitAllocator
Alias for G4 template memory allocator for GGSPartHit.
G4double GetPathLength() const
Path length getter.
GGSPosHitsCollection * GetPosHits()
Getter of container of position hits.
G4THitsCollection< GGSPartHit > GGSPartHitsCollection
Alias for G4 template hits collection for GGSPartHit.
G4int GetTrackID() const
Track ID getter.
G4double GetEntranceEnergy() const
Entrance energy getter.