19#ifndef BDSHITCOLLIMATOR_H
20#define BDSHITCOLLIMATOR_H
24#include "G4ThreeVector.hh"
25#include "G4THitsCollection.hh"
26#include "G4Allocator.hh"
44 G4int collimatorIndexIn,
45 const G4ThreeVector& preStepPositionIn,
46 const G4ThreeVector& preStepMomentumIn,
47 G4double totalEnergyIn,
53 inline void*
operator new(size_t);
54 inline void operator delete(
void* aHit);
68extern G4Allocator<BDSHitCollimator> BDSAllocatorCollimator;
70inline void* BDSHitCollimator::operator
new(size_t)
73 aHit=(
void*) BDSAllocatorCollimator.MallocSingle();
77inline void BDSHitCollimator::operator
delete(
void* aHit)
A vector of BDSBeamlineElement instances - a beamline.
Snapshot of information for particle passing through a collimator.
G4double totalEnergy
Total energy of particle.
virtual ~BDSHitCollimator()
Note this should not be inline when we use a G4Allocator.
G4ThreeVector preStepMomentum
Local pre step point momentum.
G4int collimatorIndex
Index of collimator the hit is in.
const BDSBeamline * beamline
Which beam line the collimator is in.
BDSHitEnergyDeposition * energyDepositionHit
G4ThreeVector preStepPosition
Local pre step point (z from centre of object).
Information recorded for a single piece of energy deposition.