BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Data Fields
BDSHitCollimator Class Reference

Snapshot of information for particle passing through a collimator. More...

#include <BDSHitCollimator.hh>

Inheritance diagram for BDSHitCollimator:
Inheritance graph
Collaboration diagram for BDSHitCollimator:
Collaboration graph

Public Member Functions

 BDSHitCollimator (const BDSBeamline *beamlineIn, G4int collimatorIndexIn, const G4ThreeVector &preStepPositionIn, const G4ThreeVector &preStepMomentumIn, G4double totalEnergyIn, BDSHitEnergyDeposition *energyDepositionHitIn)
 
virtual ~BDSHitCollimator ()
 Note this should not be inline when we use a G4Allocator. More...
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 

Data Fields

const BDSBeamlinebeamline
 Which beam line the collimator is in. More...
 
G4int collimatorIndex
 Index of collimator the hit is in. More...
 
G4ThreeVector preStepPosition
 Local pre step point (z from centre of object). More...
 
G4ThreeVector preStepMomentum
 Local pre step point momentum. More...
 
G4double totalEnergy
 Total energy of particle. More...
 
BDSHitEnergyDepositionenergyDepositionHit
 

Detailed Description

Snapshot of information for particle passing through a collimator.

Everything public for simplicity of the class.

Author
Laurie Nevay

Definition at line 39 of file BDSHitCollimator.hh.

Constructor & Destructor Documentation

◆ BDSHitCollimator()

BDSHitCollimator::BDSHitCollimator ( const BDSBeamline beamlineIn,
G4int  collimatorIndexIn,
const G4ThreeVector &  preStepPositionIn,
const G4ThreeVector &  preStepMomentumIn,
G4double  totalEnergyIn,
BDSHitEnergyDeposition energyDepositionHitIn 
)

Definition at line 25 of file BDSHitCollimator.cc.

◆ ~BDSHitCollimator()

BDSHitCollimator::~BDSHitCollimator ( )
virtual

Note this should not be inline when we use a G4Allocator.

Definition at line 39 of file BDSHitCollimator.cc.

Member Function Documentation

◆ operator delete()

void BDSHitCollimator::operator delete ( void *  aHit)
inline

Definition at line 77 of file BDSHitCollimator.hh.

◆ operator new()

void * BDSHitCollimator::operator new ( size_t  )
inline

Definition at line 70 of file BDSHitCollimator.hh.

Field Documentation

◆ beamline

const BDSBeamline* BDSHitCollimator::beamline

Which beam line the collimator is in.

Definition at line 56 of file BDSHitCollimator.hh.

◆ collimatorIndex

G4int BDSHitCollimator::collimatorIndex

Index of collimator the hit is in.

Definition at line 57 of file BDSHitCollimator.hh.

Referenced by BDSOutput::FillCollimatorHits().

◆ energyDepositionHit

BDSHitEnergyDeposition* BDSHitCollimator::energyDepositionHit

Pointer to the externally created energy deposition hit for the step in the collimator this hit will correspond to.

Definition at line 64 of file BDSHitCollimator.hh.

◆ preStepMomentum

G4ThreeVector BDSHitCollimator::preStepMomentum

Local pre step point momentum.

Definition at line 59 of file BDSHitCollimator.hh.

◆ preStepPosition

G4ThreeVector BDSHitCollimator::preStepPosition

Local pre step point (z from centre of object).

Definition at line 58 of file BDSHitCollimator.hh.

◆ totalEnergy

G4double BDSHitCollimator::totalEnergy

Total energy of particle.

Definition at line 60 of file BDSHitCollimator.hh.


The documentation for this class was generated from the following files: