|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
The information recorded from a particle impacting a sampler. More...
#include <BDSHitSampler.hh>


Public Member Functions | |
| BDSHitSampler (G4int samplerIDIn, const BDSParticleCoordsFull &coordsIn, G4double momentumIn, G4double massIn, G4double chargeIn, G4double rigidityIn, G4int pdgIDIn, G4int parentIDIn, G4int trackIDIn, G4int turnsTakenIn, G4int beamlineIndexIn, G4int nElectronsIn=0) | |
| virtual | ~BDSHitSampler () |
| Note this should not be inline when we use a G4Allocator. | |
| void * | operator new (size_t) |
| void | operator delete (void *aHit) |
Data Fields | |
| G4int | samplerID |
| BDSParticleCoordsFull | coords |
| G4double | momentum |
| G4double | mass |
| G4double | charge |
| Double as g4 uses charge as a double. | |
| G4double | rigidity |
| G4int | pdgID |
| G4int | parentID |
| G4int | trackID |
| G4int | turnsTaken |
| G4int | beamlineIndex |
| G4int | nElectrons |
| Can only get this at inspection time so include here. | |
Private Member Functions | |
| BDSHitSampler ()=delete | |
| No default constructor. | |
The information recorded from a particle impacting a sampler.
Everything public for simplicity of the class.
Definition at line 35 of file BDSHitSampler.hh.
| BDSHitSampler::BDSHitSampler | ( | G4int | samplerIDIn, |
| const BDSParticleCoordsFull & | coordsIn, | ||
| G4double | momentumIn, | ||
| G4double | massIn, | ||
| G4double | chargeIn, | ||
| G4double | rigidityIn, | ||
| G4int | pdgIDIn, | ||
| G4int | parentIDIn, | ||
| G4int | trackIDIn, | ||
| G4int | turnsTakenIn, | ||
| G4int | beamlineIndexIn, | ||
| G4int | nElectronsIn = 0 |
||
| ) |
Definition at line 27 of file BDSHitSampler.cc.
|
virtual |
Note this should not be inline when we use a G4Allocator.
Definition at line 53 of file BDSHitSampler.cc.
|
inline |
Definition at line 84 of file BDSHitSampler.hh.
|
inline |
Definition at line 77 of file BDSHitSampler.hh.
| G4int BDSHitSampler::beamlineIndex |
Definition at line 67 of file BDSHitSampler.hh.
| G4double BDSHitSampler::charge |
Double as g4 uses charge as a double.
Definition at line 61 of file BDSHitSampler.hh.
Referenced by BDSOutputROOTEventSampler< float >::getIonZ().
| BDSParticleCoordsFull BDSHitSampler::coords |
Definition at line 58 of file BDSHitSampler.hh.
| G4double BDSHitSampler::mass |
Definition at line 60 of file BDSHitSampler.hh.
| G4double BDSHitSampler::momentum |
Definition at line 59 of file BDSHitSampler.hh.
| G4int BDSHitSampler::nElectrons |
Can only get this at inspection time so include here.
Definition at line 68 of file BDSHitSampler.hh.
| G4int BDSHitSampler::parentID |
Definition at line 64 of file BDSHitSampler.hh.
| G4int BDSHitSampler::pdgID |
Definition at line 63 of file BDSHitSampler.hh.
| G4double BDSHitSampler::rigidity |
Definition at line 62 of file BDSHitSampler.hh.
| G4int BDSHitSampler::samplerID |
Definition at line 57 of file BDSHitSampler.hh.
| G4int BDSHitSampler::trackID |
Definition at line 65 of file BDSHitSampler.hh.
| G4int BDSHitSampler::turnsTaken |
Definition at line 66 of file BDSHitSampler.hh.