14 #include "G4THitsCollection.hh"
16 #include "G4Allocator.hh"
17 #include "G4ThreeVector.hh"
18 #include "G4VPhysicalVolume.hh"
71 inline void*
operator new(
size_t size);
80 inline void operator delete(
void* aHit);
104 virtual void AddStep(
const G4Step &step);
171 return _entrancePoint;
191 return _entranceMomentum;
202 return _entranceEnergy;
243 G4double _pathLength;
244 G4ThreeVector _entrancePoint;
245 G4ThreeVector _exitPoint;
246 G4ThreeVector _entranceMomentum;
247 G4double _entranceEnergy;
266 inline void* GGSPartHit::operator
new(size_t) {
274 inline void GGSPartHit::operator
delete(
void* aHit) {
285 #define RegisterPartHit(className) \
286 GGSPartHit* className##Builder(){ \
287 return new className(); \
289 class className##Proxy{ \
291 className##Proxy(){ \
292 GGSPartHitFactory::GetInstance().RegisterBuilder(#className, className##Builder); \
295 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.
bool operator==(const GGSPartHit &right) const
Comparison operator.
Definition of GGS Particle Hit.
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.