13 #include "G4Allocator.hh"
15 #include "G4THitsCollection.hh"
16 #include "G4ThreeVector.hh"
18 #include "G4VPhysicalVolume.hh"
68 inline void *
operator new(
size_t size);
77 inline void operator delete(
void *);
89 inline void SetTime(G4double time) { _time = time; }
138 inline G4double
GetTime()
const {
return _time; }
180 virtual void SetStep(
const G4Step &step);
185 G4double _pathLength;
186 G4ThreeVector _startPoint;
187 G4ThreeVector _endPoint;
188 G4ThreeVector _startMomentum;
189 G4double _startEnergy;
201 inline void *GGSPosHit::operator
new(size_t) {
218 #define RegisterPosHit(className) \
219 GGSPosHit *className##Builder() { return new className(); } \
220 class className##Proxy { \
222 className##Proxy() { GGSPosHitFactory::GetInstance().RegisterBuilder(#className, className##Builder); } \
224 className##Proxy proxyFor##className
G4THitsCollection< GGSPosHit > GGSPosHitsCollection
Alias for G4 template hits collection for GGSPosHit.
G4double GetPathLength() const
Path length getter.
void SetStartEnergy(G4double e)
Start energy setter.
bool operator==(const GGSPosHit &right) const
Comparison operator.
G4double GetStartEnergy() const
Start energy getter.
const GGSPosHit & operator=(const GGSPosHit &right)
Assignment operator.
G4ThreeVector GetStartPoint() const
Start point getter.
G4ThreeVector GetStartMomentum() const
Momentum getter.
Definition of GGS Position Hit.
void SetEnergyDeposit(G4double eDep)
Energy deposit setter.
virtual void SetStep(const G4Step &step)
G4double GetEnergyDeposit() const
Energy release getter.
G4ThreeVector GetEndPoint() const
End point getter.
void SetStartPoint(G4ThreeVector pos)
Start point setter.
void SetEndPoint(G4ThreeVector pos)
End point setter.
void SetPathLength(G4double path)
Path length setter.
G4Allocator< GGSPosHit > GGSPosHitAllocator
Alias for G4 template memory allocator for GGSPosHit.
void SetTime(G4double time)
Time setter.
void SetStartMomentum(G4ThreeVector mom)
Start momentum setter.
G4double GetTime() const
Time getter.