14 #include "G4THitsCollection.hh"
15 #include "G4Allocator.hh"
16 #include "G4ThreeVector.hh"
17 #include "G4VPhysicalVolume.hh"
67 inline void*
operator new(
size_t size);
76 inline void operator delete(
void*);
130 _startMomentum = mom;
192 return _startMomentum;
207 virtual void SetStep(
const G4Step &step);
213 G4double _pathLength;
214 G4ThreeVector _startPoint;
215 G4ThreeVector _endPoint;
216 G4ThreeVector _startMomentum;
217 G4double _startEnergy;
230 inline void* GGSPosHit::operator
new(size_t) {
238 inline void GGSPosHit::operator
delete(
void* aHit) {
249 #define RegisterPosHit(className) \
250 GGSPosHit* className##Builder(){ \
251 return new className(); \
253 class className##Proxy{ \
255 className##Proxy(){ \
256 GGSPosHitFactory::GetInstance().RegisterBuilder(#className, className##Builder); \
259 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.