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

The information recorded from a particle impacting a sampler. More...

#include <BDSHitSamplerSphere.hh>

Inheritance diagram for BDSHitSamplerSphere:
Inheritance graph
Collaboration diagram for BDSHitSamplerSphere:
Collaboration graph

Public Member Functions

 BDSHitSamplerSphere ()=delete
 No default constructor.
 
 BDSHitSamplerSphere (G4int samplerIDIn, const BDSParticleCoordsSpherical &coordsIn, G4double totalEnergyIn, G4double weightIn, G4double SIn, G4double momentumIn, G4double massIn, G4double chargeIn, G4double rigidityIn, G4int pdgIDIn, G4int parentIDIn, G4int trackIDIn, G4int turnsTakenIn, G4int beamlineIndexIn, G4int nElectronsIn=0)
 
virtual ~BDSHitSamplerSphere ()
 Note this should not be inline when we use a G4Allocator. More...
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 

Data Fields

G4int samplerID
 
BDSParticleCoordsSpherical coords
 
G4double totalEnergy
 
G4double weight
 
G4double S
 
G4double momentum
 
G4double mass
 
G4double charge
 Double as g4 uses charge as a double. More...
 
G4double rigidity
 
G4int pdgID
 
G4int parentID
 
G4int trackID
 
G4int turnsTaken
 
G4int beamlineIndex
 
G4int nElectrons
 Can only get this at inspection time so include here. More...
 

Detailed Description

The information recorded from a particle impacting a sampler.

Everything public for simplicity of the class.

Definition at line 34 of file BDSHitSamplerSphere.hh.

Constructor & Destructor Documentation

◆ BDSHitSamplerSphere()

BDSHitSamplerSphere::BDSHitSamplerSphere ( G4int  samplerIDIn,
const BDSParticleCoordsSpherical coordsIn,
G4double  totalEnergyIn,
G4double  weightIn,
G4double  SIn,
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 BDSHitSamplerSphere.cc.

◆ ~BDSHitSamplerSphere()

BDSHitSamplerSphere::~BDSHitSamplerSphere ( )
virtual

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

Definition at line 59 of file BDSHitSamplerSphere.cc.

Member Function Documentation

◆ operator delete()

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

Definition at line 87 of file BDSHitSamplerSphere.hh.

◆ operator new()

void * BDSHitSamplerSphere::operator new ( size_t  )
inline

Definition at line 80 of file BDSHitSamplerSphere.hh.

Field Documentation

◆ beamlineIndex

G4int BDSHitSamplerSphere::beamlineIndex

Definition at line 73 of file BDSHitSamplerSphere.hh.

◆ charge

G4double BDSHitSamplerSphere::charge

Double as g4 uses charge as a double.

Definition at line 67 of file BDSHitSamplerSphere.hh.

◆ coords

BDSParticleCoordsSpherical BDSHitSamplerSphere::coords

Definition at line 61 of file BDSHitSamplerSphere.hh.

◆ mass

G4double BDSHitSamplerSphere::mass

Definition at line 66 of file BDSHitSamplerSphere.hh.

◆ momentum

G4double BDSHitSamplerSphere::momentum

Definition at line 65 of file BDSHitSamplerSphere.hh.

◆ nElectrons

G4int BDSHitSamplerSphere::nElectrons

Can only get this at inspection time so include here.

Definition at line 74 of file BDSHitSamplerSphere.hh.

◆ parentID

G4int BDSHitSamplerSphere::parentID

Definition at line 70 of file BDSHitSamplerSphere.hh.

◆ pdgID

G4int BDSHitSamplerSphere::pdgID

Definition at line 69 of file BDSHitSamplerSphere.hh.

◆ rigidity

G4double BDSHitSamplerSphere::rigidity

Definition at line 68 of file BDSHitSamplerSphere.hh.

◆ S

G4double BDSHitSamplerSphere::S

Definition at line 64 of file BDSHitSamplerSphere.hh.

◆ samplerID

G4int BDSHitSamplerSphere::samplerID

Definition at line 60 of file BDSHitSamplerSphere.hh.

◆ totalEnergy

G4double BDSHitSamplerSphere::totalEnergy

Definition at line 62 of file BDSHitSamplerSphere.hh.

◆ trackID

G4int BDSHitSamplerSphere::trackID

Definition at line 71 of file BDSHitSamplerSphere.hh.

◆ turnsTaken

G4int BDSHitSamplerSphere::turnsTaken

Definition at line 72 of file BDSHitSamplerSphere.hh.

◆ weight

G4double BDSHitSamplerSphere::weight

Definition at line 63 of file BDSHitSamplerSphere.hh.


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