BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
BDSOutput Class Referenceabstract

Output base class that defines interface for all output types. More...

#include <BDSOutput.hh>

Inheritance diagram for BDSOutput:
Inheritance graph
Collaboration diagram for BDSOutput:
Collaboration graph

Public Member Functions

 BDSOutput (const G4String &baseFileNameIn, const G4String &fileExtentionIn, G4int fileNumberOffset)
 Constructor with base file name (without extension or number suffix).
 
virtual void NewFile ()=0
 Open a new file. This should call WriteHeader() in it.
 
virtual void CloseFile ()=0
 
virtual void InitialiseGeometryDependent ()
 
virtual void UpdateSamplers ()
 Interface to allow updating samplers with dynamic construction. Only for link - not for regular use.
 
void FillHeader ()
 Fill the local structure header with information - updates time stamp.
 
void FillParticleData (G4bool writeIons)
 Fill the local structure particle data with information. Also calls WriteParticleData().
 
void FillBeam (const GMAD::BeamBase *beam)
 
void FillOptions (const GMAD::OptionsBase *options)
 
void FillModel ()
 
void FillEventPrimaryOnly (const BDSParticleCoordsFullGlobal &coords, const BDSParticleDefinition *particle)
 
void FillEvent (const BDSEventInfo *info, const G4PrimaryVertex *vertex, const std::vector< BDSHitsCollectionSampler * > &samplerHitsPlane, const std::vector< BDSHitsCollectionSamplerCylinder * > &samplerHitsCylinder, const std::vector< BDSHitsCollectionSamplerSphere * > &samplerHitsSphere, const BDSHitsCollectionSamplerLink *samplerHitsLink, const BDSHitsCollectionEnergyDeposition *energyLoss, const BDSHitsCollectionEnergyDeposition *energyLossFull, const BDSHitsCollectionEnergyDeposition *energyLossVacuum, const BDSHitsCollectionEnergyDeposition *energyLossTunnel, const BDSHitsCollectionEnergyDepositionGlobal *energyLossWorld, const BDSHitsCollectionEnergyDepositionGlobal *energyLossWorldContents, const BDSHitsCollectionEnergyDepositionGlobal *worldExitHits, const std::vector< const BDSTrajectoryPointHit * > &primaryHits, const std::vector< const BDSTrajectoryPointHit * > &primaryLosses, const BDSTrajectoriesToStore *trajectories, const BDSHitsCollectionCollimator *collimatorHits, const BDSHitsCollectionApertureImpacts *apertureImpactHits, const std::map< G4String, G4THitsMap< G4double > * > &scorerHitsMap, const G4int turnsTaken)
 Copy event information from Geant4 simulation structures to output structures.
 
void CloseAndOpenNewFile ()
 Close a file and open a new one.
 
void FillRun (const BDSEventInfo *info, unsigned long long int nOriginalEventsIn, unsigned long long int nEventsRequestedIn, unsigned long long int nEventsInOriginalDistrFileIn, unsigned long long int nEventsDistrFileSkippedIn, unsigned int distrFileLoopNTimesIn)
 Copy run information to output structure.
 

Static Public Member Functions

static G4bool InvalidSamplerName (const G4String &samplerName)
 Test whether a sampler name is invalid or not.
 
static void PrintProtectedNames (std::ostream &out)
 Feedback for protected names.
 

Protected Member Functions

G4String GetNextFileName ()
 Get the next file name based on the base file name and the accrued number of files.
 
G4bool CreateCollimatorOutputStructures () const
 Whether to create the collimator structures in the output or not.
 
- Protected Member Functions inherited from BDSOutputStructures
 BDSOutputStructures (const BDSGlobalConstants *globals)
 
void InitialiseSamplers ()
 Construct samplers.
 
void InitialiseMaterialMap ()
 Construct a map of material pointer to integer ID and name.
 
G4int UpdateSamplerStructures ()
 Interface to allow setting up samplers later for dynamic geometry construction a la SixTrack. Not for regular use.
 
void PrepareCollimatorInformation ()
 
void PrepareCavityInformation ()
 Extract number of collimators and their names from beam line.
 
void InitialiseCollimators ()
 Construct collimators.
 
void ClearStructuresParticleData ()
 Clear the local particle data structure.
 
void ClearStructuresHeader ()
 Clear the local header structure.
 
void ClearStructuresModel ()
 Clear the local model structure.
 
void ClearStructuresBeam ()
 Clear the local beam structure.
 
void ClearStructuresOptions ()
 Clear the local options structure.
 
void ClearStructuresEventLevel ()
 Clear the local structures in this class in preparation for a new event.
 
void ClearStructuresRunLevel ()
 Clear the local structures in this class in preparation for a new run.
 
G4int Create1DHistogram (G4String name, G4String title, G4int nbins, G4double xmin, G4double xmax)
 Create histograms for both evtHistos and runHistos. Return index from evtHistos.
 
G4int Create1DHistogram (G4String name, G4String title, std::vector< double > &edges)
 Create histograms for both evtHistos and runHistos. Return index from evtHistos.
 
G4int Create3DHistogram (G4String name, G4String title, G4int nBinsX, G4double xMin, G4double xMax, G4int nBinsY, G4double yMin, G4double yMax, G4int nBinsZ, G4double zMin, G4double zMax)
 Create histograms for both evtHistos and runHistos. Return index from evtHistos.
 
G4int Create4DHistogram (const G4String &name, const G4String &title, const G4String &eScale, const std::vector< double > &eBinsEdges, G4int nBinsX, G4double xMin, G4double xMax, G4int nBinsY, G4double yMin, G4double yMax, G4int nBinsZ, G4double zMin, G4double zMax, G4int nBinsE, G4double eMin, G4double eMax)
 Create histograms for both evtHistos and runHistos. Return index from evtHistos.
 

Protected Attributes

std::map< G4String, G4int > blmCollectionNameToHistogramID
 
G4bool storeELoss
 Options for dynamic bits of output.
 
G4bool storeELossTunnel
 Options for dynamic bits of output.
 
G4bool storeELossVacuum
 Options for dynamic bits of output.
 
G4bool storeELossWorld
 Options for dynamic bits of output.
 
G4bool storeELossWorldContents
 Options for dynamic bits of output.
 
G4bool storeApertureImpacts
 Options for dynamic bits of output.
 
G4bool storeApertureImpactsHistograms
 Options for dynamic bits of output.
 
G4bool storePrimaries
 Options for dynamic bits of output.
 
G4bool storeTrajectory
 Options for dynamic bits of output.
 
- Protected Attributes inherited from BDSOutputStructures
BDSOutputROOTParticleDataparticleDataOutput
 Geant4 information / particle tables.
 
BDSOutputROOTEventHeaderheaderOutput
 Information about the file.
 
BDSOutputROOTEventBeambeamOutput
 Beam output.
 
BDSOutputROOTEventOptionsoptionsOutput
 Options output.
 
BDSOutputROOTEventModelmodelOutput
 Model output.
 
BDSOutputROOTEventSampler< double > * primary
 Primary sampler structure.
 
BDSOutputROOTEventSampler< float > * primary
 
BDSOutputROOTEventCoordsprimaryGlobal
 
std::vector< BDSOutputROOTEventSampler< double > * > samplerTrees
 Sampler structures.
 
std::vector< BDSOutputROOTEventSampler< float > * > samplerTrees
 
std::vector< std::string > samplerNames
 Sampler names to use.
 
std::vector< BDSOutputROOTEventSamplerC * > samplerCTrees
 
std::vector< BDSOutputROOTEventSamplerS * > samplerSTrees
 
std::vector< std::string > samplerCNames
 
std::vector< std::string > samplerSNames
 
std::map< G4int, G4int > samplerIDToIndexPlane
 
std::map< G4int, G4int > samplerIDToIndexCylinder
 
std::map< G4int, G4int > samplerIDToIndexSphere
 
BDSOutputROOTEventRunInforunInfo
 Run information.
 
BDSOutputROOTEventHistogramsrunHistos
 Run level histograms.
 
BDSOutputROOTEventLosseLoss
 General energy deposition.
 
BDSOutputROOTEventLosspFirstHit
 Primary hit point.
 
BDSOutputROOTEventLosspLastHit
 Primary loss point.
 
BDSOutputROOTEventLosseLossVacuum
 General energy deposition.
 
BDSOutputROOTEventLosseLossTunnel
 Tunnel energy deposition.
 
BDSOutputROOTEventLossWorldeLossWorld
 World energy deposition.
 
BDSOutputROOTEventLossWorldeLossWorldExit
 World exit hits.
 
BDSOutputROOTEventLossWorldeLossWorldContents
 Externally supplied world contents hits.
 
BDSOutputROOTEventApertureapertureImpacts
 Impacts on the aperture.
 
BDSOutputROOTEventTrajectorytraj
 Trajectories.
 
BDSOutputROOTEventHistogramsevtHistos
 Event level histograms.
 
BDSOutputROOTEventInfoevtInfo
 Event information.
 
std::vector< BDSOutputROOTEventCollimator * > collimators
 Collimator output structures.
 
std::vector< G4String > collimatorNames
 Names of collimators in output structures.
 
G4int nCollimators
 Number of collimators in beam line.
 
std::vector< G4int > collimatorIndices
 Indices in beam line that are collimators.
 
std::map< G4String, G4int > collimatorIndicesByName
 Indices mapped to their name.
 
std::vector< BDSOutputROOTEventCollimatorInfocollimatorInfo
 
std::vector< std::pair< G4double, G4double > > collimatorDifferences
 
std::vector< G4String > cavityNames
 Names of cavities in output structures.
 
G4int nCavities
 Number of cavities in beam line.
 
std::vector< G4int > cavityIndices
 Indices in beam line that are cavities.
 
std::map< G4String, G4int > cavityIndicesByName
 Indices mapped to their name.
 
std::vector< BDSOutputROOTEventCavityInfocavityInfo
 Cavity parameters.
 
std::map< G4Material *, short int > materialToID
 
std::map< short int, G4String > materialIDToNameUnique
 

Private Types

enum class  LossType {
  energy , vacuum , tunnel , world ,
  worldexit , worldcontents
}
 Enum for different types of energy loss that can be written out. More...
 

Private Member Functions

virtual void WriteHeader ()=0
 Write the header.
 
virtual void WriteHeaderEndOfFile ()=0
 Overwrite and update header in the output.
 
virtual void WriteParticleData ()=0
 Write the geant4 information.
 
virtual void WriteBeam ()=0
 Write the beam.
 
virtual void WriteOptions ()=0
 Write the options.
 
virtual void WriteModel ()=0
 Write a representation of the samplers and beamline.
 
virtual void WriteFileEventLevel ()=0
 
virtual void WriteFileRunLevel ()=0
 
void CalculateHistogramParameters ()
 Calculate the number of bins and required maximum s.
 
void CreateHistograms ()
 Create histograms.
 
void FillPrimary (const G4PrimaryVertex *vertex, const G4int turnsTaken)
 
void FillEventInfo (const BDSEventInfo *info)
 Fill event summary information.
 
void FillSamplerHitsVector (const std::vector< BDSHitsCollectionSampler * > &hits)
 Fill sampler hits from a vector<sampler hits collection>.
 
void FillSamplerCylinderHitsVector (const std::vector< BDSHitsCollectionSamplerCylinder * > &hits)
 
void FillSamplerSphereHitsVector (const std::vector< BDSHitsCollectionSamplerSphere * > &hits)
 
void FillSamplerHits (const BDSHitsCollectionSampler *hits)
 Fill sampler hits into output structures.
 
void FillSamplerHitsLink (const BDSHitsCollectionSamplerLink *hits)
 Fill sampler link hits into output structures.
 
void FillPrimaryHit (const std::vector< const BDSTrajectoryPointHit * > &primaryHits)
 Fill the hit where the primary particle impact.
 
void FillEnergyLoss (const BDSHitsCollectionEnergyDeposition *loss, const LossType type)
 Fill a collection of energy hits into the appropriate output structure.
 
void FillEnergyLoss (const BDSHitsCollectionEnergyDepositionGlobal *loss, const LossType type)
 Fill a collection of energy hits in global coordinates into the appropriate output structure.
 
void FillPrimaryLoss (const std::vector< const BDSTrajectoryPointHit * > &primaryLosses)
 Fill a collection volume exit hits into the appropriate output structure.
 
void FillTrajectories (const BDSTrajectoriesToStore *trajectories)
 Copy a set of trajectories to the output structure.
 
void FillCollimatorHits (const BDSHitsCollectionCollimator *hits, const std::vector< const BDSTrajectoryPointHit * > &primaryLossPoints)
 Fill collimator hits.
 
void FillApertureImpacts (const BDSHitsCollectionApertureImpacts *hits)
 Fill aperture impact hits.
 
void FillScorerHits (const std::map< G4String, G4THitsMap< G4double > * > &scorerHitsMap)
 Fill a map of scorer hits into the output.
 
void FillScorerHitsIndividual (const G4String &hsitogramDefName, const G4THitsMap< G4double > *hitMap)
 Fill an individual scorer hits map into a particular output histogram.
 
void FillScorerHitsIndividualBLM (const G4String &histogramDefName, const G4THitsMap< G4double > *hitMap)
 
void FillRunInfoAndUpdateHeader (const BDSEventInfo *info, unsigned long long int nOriginalEventsIn, unsigned long long int nEventsRequestedIn, unsigned long long int nEventsInOriginalDistrFileIn, unsigned long long int nEventsDistrFileSkippedIn, unsigned int distrFileLoopNTimesIn)
 
void CopyFromHistToHist1D (const G4String &sourceName, const G4String &destinationName, const std::vector< G4int > &indices)
 
 BDSOutput ()=delete
 No default constructor.
 

Private Attributes

const G4String baseFileName
 Base file name.
 
const G4String fileExtension
 File extension to add to each file.
 
G4int numberEventPerFile
 Number of events stored per file.
 
G4int outputFileNumber
 Number of output file.
 
G4bool useScoringMap
 Whether the single 3D histogram will be built.
 
G4double sMaxHistograms
 
G4int nbins
 Number of bins for each histogram required.
 
G4bool createCollimatorOutputStructures
 
std::map< G4int, G4double > histIndexToUnits1D
 
std::map< G4int, G4double > histIndexToUnits3D
 
std::map< G4int, G4double > histIndexToUnits4D
 
G4bool storeCavityInfo
 Storage option.
 
G4bool storeCollimatorInfo
 Storage option.
 
G4bool storeCollimatorHits
 Storage option.
 
G4bool storeCollimatorHitsLinks
 Storage option.
 
G4bool storeCollimatorHitsIons
 Storage option.
 
G4bool storeELossHistograms
 Storage option.
 
G4bool storeELossTunnelHistograms
 Storage option.
 
G4bool storeELossVacuumHistograms
 Storage option.
 
G4bool storeParticleData
 Storage option.
 
G4bool storePrimaryHistograms
 Storage option.
 
G4bool storeModel
 Storage option.
 
G4bool storeSamplerPolarCoords
 Storage option.
 
G4bool storeSamplerCharge
 Storage option.
 
G4bool storeSamplerKineticEnergy
 Storage option.
 
G4bool storeSamplerMass
 Storage option.
 
G4bool storeSamplerRigidity
 Storage option.
 
G4bool storeSamplerIon
 Storage option.
 
G4int storeTrajectoryStepPoints
 Storage option.
 
G4bool storeTrajectoryStepPointLast
 Storage option.
 
BDS::TrajectoryOptions storeTrajectoryOptions
 Storage option.
 
G4double energyDeposited
 Integral when filling hit.
 
G4double energyDepositedVacuum
 Integral when filling hit.
 
G4double energyDepositedWorld
 Integral when filling hit.
 
G4double energyDepositedWorldContents
 Integral when filling hit.
 
G4double energyDepositedTunnel
 Integral when filling hit.
 
G4double energyImpactingAperture
 Integral when filling hit.
 
G4double energyImpactingApertureKinetic
 Integral when filling hit.
 
G4double energyWorldExit
 Integral when filling hit.
 
G4double energyWorldExitKinetic
 Integral when filling hit.
 
G4int nCollimatorsInteracted
 Integral when filling hit.
 
std::map< G4String, G4int > histIndices1D
 Map of histogram name (short) to index of histogram in output.
 
std::map< G4String, G4int > histIndices3D
 Map of histogram name (short) to index of histogram in output.
 
std::map< G4String, G4int > histIndices4D
 Map of histogram name (short) to index of histogram in output.
 
std::map< G4String, BDSHistBinMapperscorerCoordinateMaps
 Map of histogram name (short) to index of histogram in output.
 

Static Private Attributes

static const std::set< G4String > protectedNames
 Invalid names for samplers - kept here as this is where the output structures are created.
 

Detailed Description

Output base class that defines interface for all output types.

Definition at line 72 of file BDSOutput.hh.

Member Enumeration Documentation

◆ LossType

enum class BDSOutput::LossType
strongprivate

Enum for different types of energy loss that can be written out.

Definition at line 187 of file BDSOutput.hh.

Constructor & Destructor Documentation

◆ BDSOutput()

BDSOutput::BDSOutput ( const G4String &  baseFileNameIn,
const G4String &  fileExtentionIn,
G4int  fileNumberOffset 
)

◆ ~BDSOutput()

virtual BDSOutput::~BDSOutput ( )
inlinevirtual

Definition at line 79 of file BDSOutput.hh.

Member Function Documentation

◆ CalculateHistogramParameters()

void BDSOutput::CalculateHistogramParameters ( )
private

Calculate the number of bins and required maximum s.

Definition at line 439 of file BDSOutput.cc.

References BDSAcceleratorModel::BeamlineMain(), BDSBeamline::empty(), BDSBeamline::GetLastItem(), BDSBeamlineElement::GetSPositionEnd(), BDSGlobalConstants::Instance(), nbins, and sMaxHistograms.

Referenced by CreateHistograms().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CloseAndOpenNewFile()

void BDSOutput::CloseAndOpenNewFile ( )

Close a file and open a new one.

Definition at line 372 of file BDSOutput.cc.

References BDSOutputStructures::ClearStructuresHeader(), CloseFile(), InitialiseGeometryDependent(), and NewFile().

Here is the call graph for this function:

◆ CloseFile()

virtual void BDSOutput::CloseFile ( )
pure virtual

Write any unwritten contents and close the currently open file. The instance should be safe to delete after calling this method.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by CloseAndOpenNewFile(), BDSIM::GeneratePrimariesOnly(), and BDSIMLink::~BDSIMLink().

Here is the caller graph for this function:

◆ CopyFromHistToHist1D()

void BDSOutput::CopyFromHistToHist1D ( const G4String &  sourceName,
const G4String &  destinationName,
const std::vector< G4int > &  indices 
)
private

Utility function to copy out select bins from one histogram to another for 1D histograms only.

Definition at line 1220 of file BDSOutput.cc.

References BDSOutputStructures::evtHistos, BDSOutputROOTEventHistograms::Get1DHistogram(), histIndices1D, and BDSOutputStructures::runHistos.

Referenced by FillEnergyLoss(), FillPrimaryHit(), and FillPrimaryLoss().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateCollimatorOutputStructures()

G4bool BDSOutput::CreateCollimatorOutputStructures ( ) const
inlineprotected

Whether to create the collimator structures in the output or not.

Definition at line 165 of file BDSOutput.hh.

References createCollimatorOutputStructures.

Referenced by BDSOutputROOT::NewFile().

Here is the caller graph for this function:

◆ CreateHistograms()

void BDSOutput::CreateHistograms ( )
private

◆ FillApertureImpacts()

void BDSOutput::FillApertureImpacts ( const BDSHitsCollectionApertureImpacts hits)
private

Fill aperture impact hits.

Definition at line 1087 of file BDSOutput.cc.

References BDSOutputStructures::apertureImpacts, energyImpactingAperture, energyImpactingApertureKinetic, BDSOutputStructures::evtHistos, histIndices1D, storeApertureImpacts, and storeApertureImpactsHistograms.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ FillBeam()

void BDSOutput::FillBeam ( const GMAD::BeamBase beam)

Fill the local structure beam with the original ones from the parser. This also calls WriteBeam().

Definition at line 208 of file BDSOutput.cc.

References BDSOutputStructures::beamOutput, BDSOutputStructures::ClearStructuresBeam(), and WriteBeam().

Referenced by BDSIM::GeneratePrimariesOnly().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillCollimatorHits()

void BDSOutput::FillCollimatorHits ( const BDSHitsCollectionCollimator hits,
const std::vector< const BDSTrajectoryPointHit * > &  primaryLossPoints 
)
private

◆ FillEnergyLoss() [1/2]

void BDSOutput::FillEnergyLoss ( const BDSHitsCollectionEnergyDeposition loss,
const LossType  type 
)
private

◆ FillEnergyLoss() [2/2]

void BDSOutput::FillEnergyLoss ( const BDSHitsCollectionEnergyDepositionGlobal loss,
const LossType  type 
)
private

◆ FillEvent()

void BDSOutput::FillEvent ( const BDSEventInfo info,
const G4PrimaryVertex *  vertex,
const std::vector< BDSHitsCollectionSampler * > &  samplerHitsPlane,
const std::vector< BDSHitsCollectionSamplerCylinder * > &  samplerHitsCylinder,
const std::vector< BDSHitsCollectionSamplerSphere * > &  samplerHitsSphere,
const BDSHitsCollectionSamplerLink samplerHitsLink,
const BDSHitsCollectionEnergyDeposition energyLoss,
const BDSHitsCollectionEnergyDeposition energyLossFull,
const BDSHitsCollectionEnergyDeposition energyLossVacuum,
const BDSHitsCollectionEnergyDeposition energyLossTunnel,
const BDSHitsCollectionEnergyDepositionGlobal energyLossWorld,
const BDSHitsCollectionEnergyDepositionGlobal energyLossWorldContents,
const BDSHitsCollectionEnergyDepositionGlobal worldExitHits,
const std::vector< const BDSTrajectoryPointHit * > &  primaryHits,
const std::vector< const BDSTrajectoryPointHit * > &  primaryLosses,
const BDSTrajectoriesToStore trajectories,
const BDSHitsCollectionCollimator collimatorHits,
const BDSHitsCollectionApertureImpacts apertureImpactHits,
const std::map< G4String, G4THitsMap< G4double > * > &  scorerHitsMap,
const G4int  turnsTaken 
)

◆ FillEventInfo()

void BDSOutput::FillEventInfo ( const BDSEventInfo info)
private

◆ FillEventPrimaryOnly()

void BDSOutput::FillEventPrimaryOnly ( const BDSParticleCoordsFullGlobal coords,
const BDSParticleDefinition particle 
)

Fill the local structure with primary vertex information. A unique interface for the case of generating primaries only. This fills the primary structure, and calls WriteFileEventLevel() and then clears the structures. It therefore should not be used in conjunction with FillEvent().

Definition at line 271 of file BDSOutput.cc.

References BDSIonDefinition::A(), BDSParticleDefinition::BRho(), BDSParticleDefinition::Charge(), BDSOutputStructures::ClearStructuresEventLevel(), BDSOutputROOTEventCoords::Fill(), BDSParticleDefinition::IonDefinition(), BDSParticleDefinition::IsAnIon(), BDSParticleDefinition::Mass(), BDSParticleDefinition::Momentum(), BDSParticleDefinition::NElectrons(), BDSParticleDefinition::PDGID(), BDSOutputStructures::primary, WriteFileEventLevel(), and BDSIonDefinition::Z().

Referenced by BDSIM::GeneratePrimariesOnly().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillHeader()

void BDSOutput::FillHeader ( )

Fill the local structure header with information - updates time stamp.

Definition at line 182 of file BDSOutput.cc.

References BDSOutputROOTEventHeader::Fill(), BDSOutputStructures::headerOutput, and WriteHeader().

Referenced by BDSOutputROOT::NewFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillModel()

void BDSOutput::FillModel ( )

◆ FillOptions()

void BDSOutput::FillOptions ( const GMAD::OptionsBase options)

Fill the local structure options with the original ones from the parser. This also calls WriteOptions().

Definition at line 215 of file BDSOutput.cc.

References BDSOutputStructures::ClearStructuresOptions(), BDSOutputStructures::optionsOutput, and WriteOptions().

Referenced by BDSIM::GeneratePrimariesOnly().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillParticleData()

void BDSOutput::FillParticleData ( G4bool  writeIons)

Fill the local structure particle data with information. Also calls WriteParticleData().

Definition at line 190 of file BDSOutput.cc.

References BDSOutputROOTParticleData::Fill(), BDSOutputROOTParticleData::Flush(), BDSOutputStructures::particleDataOutput, storeParticleData, and WriteParticleData().

Here is the call graph for this function:

◆ FillPrimary()

void BDSOutput::FillPrimary ( const G4PrimaryVertex *  vertex,
const G4int  turnsTaken 
)
private

Fill the local structure with primary vertex information. Utility function to translate from G4PrimaryVertex to simple numbers.

Definition at line 243 of file BDSOutput.cc.

References BDSOutputROOTEventCoords::Fill(), FillPrimary(), and BDSOutputStructures::primary.

Referenced by FillEvent(), and FillPrimary().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillPrimaryHit()

void BDSOutput::FillPrimaryHit ( const std::vector< const BDSTrajectoryPointHit * > &  primaryHits)
private

Fill the hit where the primary particle impact.

Definition at line 980 of file BDSOutput.cc.

References BDSOutputStructures::collimatorIndices, CopyFromHistToHist1D(), BDSOutputStructures::evtHistos, BDSOutputROOTEventLoss::Fill(), histIndices1D, BDSOutputStructures::nCollimators, BDSOutputStructures::pFirstHit, BDSOutputStructures::runHistos, storeCollimatorInfo, and storePrimaryHistograms.

Referenced by FillEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillPrimaryLoss()

void BDSOutput::FillPrimaryLoss ( const std::vector< const BDSTrajectoryPointHit * > &  primaryLosses)
private

Fill a collection volume exit hits into the appropriate output structure.

Fill the hit where the primary stopped being a primary.

Definition at line 1001 of file BDSOutput.cc.

References BDSOutputStructures::collimatorIndices, CopyFromHistToHist1D(), BDSOutputStructures::evtHistos, BDSOutputROOTEventLoss::Fill(), histIndices1D, BDSOutputStructures::nCollimators, BDSOutputStructures::pLastHit, BDSOutputStructures::runHistos, storeCollimatorInfo, and storePrimaryHistograms.

Referenced by FillEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillRun()

void BDSOutput::FillRun ( const BDSEventInfo info,
unsigned long long int  nOriginalEventsIn,
unsigned long long int  nEventsRequestedIn,
unsigned long long int  nEventsInOriginalDistrFileIn,
unsigned long long int  nEventsDistrFileSkippedIn,
unsigned int  distrFileLoopNTimesIn 
)

Copy run information to output structure.

Definition at line 380 of file BDSOutput.cc.

References BDSOutputStructures::ClearStructuresRunLevel(), FillRunInfoAndUpdateHeader(), WriteFileRunLevel(), and WriteHeaderEndOfFile().

Here is the call graph for this function:

◆ FillRunInfoAndUpdateHeader()

void BDSOutput::FillRunInfoAndUpdateHeader ( const BDSEventInfo info,
unsigned long long int  nOriginalEventsIn,
unsigned long long int  nEventsRequestedIn,
unsigned long long int  nEventsInOriginalDistrFileIn,
unsigned long long int  nEventsDistrFileSkippedIn,
unsigned int  distrFileLoopNTimesIn 
)
private

Fill run level summary information. This also updates the header information for writing at the end of a file.

Definition at line 1202 of file BDSOutput.cc.

References BDSOutputROOTEventHeader::distrFileLoopNTimes, BDSEventInfo::GetInfo(), BDSOutputStructures::headerOutput, BDSOutputROOTEventHeader::nEventsInFile, BDSOutputROOTEventHeader::nEventsInFileSkipped, BDSOutputROOTEventHeader::nEventsRequested, BDSOutputROOTEventHeader::nOriginalEvents, and BDSOutputStructures::runInfo.

Referenced by FillRun().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillSamplerCylinderHitsVector()

void BDSOutput::FillSamplerCylinderHitsVector ( const std::vector< BDSHitsCollectionSamplerCylinder * > &  hits)
private

Definition at line 733 of file BDSOutput.cc.

◆ FillSamplerHits()

void BDSOutput::FillSamplerHits ( const BDSHitsCollectionSampler hits)
private

◆ FillSamplerHitsLink()

void BDSOutput::FillSamplerHitsLink ( const BDSHitsCollectionSamplerLink hits)
private

Fill sampler link hits into output structures.

Definition at line 808 of file BDSOutput.cc.

References BDSOutputStructures::samplerTrees, storeSamplerCharge, storeSamplerIon, storeSamplerKineticEnergy, storeSamplerMass, storeSamplerPolarCoords, and storeSamplerRigidity.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ FillSamplerHitsVector()

void BDSOutput::FillSamplerHitsVector ( const std::vector< BDSHitsCollectionSampler * > &  hits)
private

Fill sampler hits from a vector<sampler hits collection>.

Definition at line 707 of file BDSOutput.cc.

References BDSOutputStructures::samplerTrees, storeSamplerCharge, storeSamplerIon, storeSamplerKineticEnergy, storeSamplerMass, storeSamplerPolarCoords, and storeSamplerRigidity.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ FillSamplerSphereHitsVector()

void BDSOutput::FillSamplerSphereHitsVector ( const std::vector< BDSHitsCollectionSamplerSphere * > &  hits)
private

Definition at line 759 of file BDSOutput.cc.

◆ FillScorerHits()

void BDSOutput::FillScorerHits ( const std::map< G4String, G4THitsMap< G4double > * > &  scorerHitsMap)
private

Fill a map of scorer hits into the output.

Definition at line 1116 of file BDSOutput.cc.

References FillScorerHitsIndividual().

Referenced by FillEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillScorerHitsIndividual()

void BDSOutput::FillScorerHitsIndividual ( const G4String &  hsitogramDefName,
const G4THitsMap< G4double > *  hitMap 
)
private

◆ FillScorerHitsIndividualBLM()

void BDSOutput::FillScorerHitsIndividualBLM ( const G4String &  histogramDefName,
const G4THitsMap< G4double > *  hitMap 
)
private

Definition at line 1183 of file BDSOutput.cc.

◆ FillTrajectories()

void BDSOutput::FillTrajectories ( const BDSTrajectoriesToStore trajectories)
private

Copy a set of trajectories to the output structure.

Definition at line 1022 of file BDSOutput.cc.

References storeTrajectory, storeTrajectoryOptions, storeTrajectoryStepPointLast, storeTrajectoryStepPoints, and BDSOutputStructures::traj.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ GetNextFileName()

G4String BDSOutput::GetNextFileName ( )
protected

Get the next file name based on the base file name and the accrued number of files.

Definition at line 405 of file BDSOutput.cc.

References baseFileName, BDS::FileExists(), fileExtension, BDSGlobalConstants::Instance(), numberEventPerFile, and outputFileNumber.

Referenced by BDSOutputROOT::NewFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitialiseGeometryDependent()

void BDSOutput::InitialiseGeometryDependent ( )
virtual

Setup any geometry dependent output structures in the output file - such as samplers. This is run after the geometry has been constructed and 'closed'. This also sets up histograms based along S now the beam line is known.

Definition at line 168 of file BDSOutput.cc.

References createCollimatorOutputStructures, CreateHistograms(), BDSOutputStructures::InitialiseCollimators(), BDSOutputStructures::InitialiseMaterialMap(), BDSOutputStructures::InitialiseSamplers(), BDSOutputStructures::PrepareCavityInformation(), BDSOutputStructures::PrepareCollimatorInformation(), and storeCavityInfo.

Referenced by CloseAndOpenNewFile(), and BDSIMLink::Initialise().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InvalidSamplerName()

G4bool BDSOutput::InvalidSamplerName ( const G4String &  samplerName)
static

Test whether a sampler name is invalid or not.

Definition at line 393 of file BDSOutput.cc.

References protectedNames.

Referenced by BDSBeamline::AddComponent(), and BDSParallelWorldSampler::Construct().

Here is the caller graph for this function:

◆ NewFile()

virtual void BDSOutput::NewFile ( )
pure virtual

Open a new file. This should call WriteHeader() in it.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by CloseAndOpenNewFile(), BDSIM::GeneratePrimariesOnly(), and BDSIMLink::Initialise().

Here is the caller graph for this function:

◆ PrintProtectedNames()

void BDSOutput::PrintProtectedNames ( std::ostream &  out)
static

Feedback for protected names.

Definition at line 398 of file BDSOutput.cc.

References protectedNames.

Referenced by BDSBeamline::AddComponent(), and BDSParallelWorldSampler::Construct().

Here is the caller graph for this function:

◆ UpdateSamplers()

virtual void BDSOutput::UpdateSamplers ( )
inlinevirtual

Interface to allow updating samplers with dynamic construction. Only for link - not for regular use.

Reimplemented in BDSOutputROOT.

Definition at line 94 of file BDSOutput.hh.

References BDSOutputStructures::UpdateSamplerStructures().

Referenced by BDSIMLink::AddLinkCollimatorJaw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteBeam()

virtual void BDSOutput::WriteBeam ( )
privatepure virtual

Write the beam.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillBeam().

Here is the caller graph for this function:

◆ WriteFileEventLevel()

virtual void BDSOutput::WriteFileEventLevel ( )
privatepure virtual

Copy from local event structures to the actual file. Only event level structures are copied.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillEvent(), and FillEventPrimaryOnly().

Here is the caller graph for this function:

◆ WriteFileRunLevel()

virtual void BDSOutput::WriteFileRunLevel ( )
privatepure virtual

Copy from local run structures to the actual file. Only run level structures are copied.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillRun().

Here is the caller graph for this function:

◆ WriteHeader()

virtual void BDSOutput::WriteHeader ( )
privatepure virtual

Write the header.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillHeader().

Here is the caller graph for this function:

◆ WriteHeaderEndOfFile()

virtual void BDSOutput::WriteHeaderEndOfFile ( )
privatepure virtual

Overwrite and update header in the output.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillRun().

Here is the caller graph for this function:

◆ WriteModel()

virtual void BDSOutput::WriteModel ( )
privatepure virtual

Write a representation of the samplers and beamline.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillModel().

Here is the caller graph for this function:

◆ WriteOptions()

virtual void BDSOutput::WriteOptions ( )
privatepure virtual

Write the options.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillOptions().

Here is the caller graph for this function:

◆ WriteParticleData()

virtual void BDSOutput::WriteParticleData ( )
privatepure virtual

Write the geant4 information.

Implemented in BDSOutputNone, and BDSOutputROOT.

Referenced by FillParticleData().

Here is the caller graph for this function:

Field Documentation

◆ baseFileName

const G4String BDSOutput::baseFileName
private

Base file name.

Definition at line 295 of file BDSOutput.hh.

Referenced by GetNextFileName().

◆ blmCollectionNameToHistogramID

std::map<G4String, G4int> BDSOutput::blmCollectionNameToHistogramID
protected

Mapping from complete collection name ("SD/PS") to histogram ID to fill. We have this because the same primitive scorer information may appear for BLMs in multiple SDs that each represent a unique combination of PSs. Ultimately though, there's one histogram per BLM scorer (for all BLMs).

Definition at line 183 of file BDSOutput.hh.

Referenced by CreateHistograms().

◆ createCollimatorOutputStructures

G4bool BDSOutput::createCollimatorOutputStructures
private

Whether to create collimator output structures or not - based on several collimator storage options.

Definition at line 338 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateCollimatorOutputStructures(), and InitialiseGeometryDependent().

◆ energyDeposited

G4double BDSOutput::energyDeposited
private

Integral when filling hit.

Definition at line 341 of file BDSOutput.hh.

Referenced by FillEnergyLoss(), FillEvent(), and FillEventInfo().

◆ energyDepositedTunnel

G4double BDSOutput::energyDepositedTunnel
private

Integral when filling hit.

Definition at line 345 of file BDSOutput.hh.

Referenced by FillEnergyLoss(), FillEvent(), and FillEventInfo().

◆ energyDepositedVacuum

G4double BDSOutput::energyDepositedVacuum
private

Integral when filling hit.

Definition at line 342 of file BDSOutput.hh.

Referenced by FillEnergyLoss(), FillEvent(), and FillEventInfo().

◆ energyDepositedWorld

G4double BDSOutput::energyDepositedWorld
private

Integral when filling hit.

Definition at line 343 of file BDSOutput.hh.

Referenced by FillEnergyLoss(), FillEvent(), and FillEventInfo().

◆ energyDepositedWorldContents

G4double BDSOutput::energyDepositedWorldContents
private

Integral when filling hit.

Definition at line 344 of file BDSOutput.hh.

Referenced by FillEnergyLoss(), FillEvent(), and FillEventInfo().

◆ energyImpactingAperture

G4double BDSOutput::energyImpactingAperture
private

Integral when filling hit.

Definition at line 346 of file BDSOutput.hh.

Referenced by FillApertureImpacts(), FillEvent(), and FillEventInfo().

◆ energyImpactingApertureKinetic

G4double BDSOutput::energyImpactingApertureKinetic
private

Integral when filling hit.

Definition at line 347 of file BDSOutput.hh.

Referenced by FillApertureImpacts(), FillEvent(), and FillEventInfo().

◆ energyWorldExit

G4double BDSOutput::energyWorldExit
private

Integral when filling hit.

Definition at line 348 of file BDSOutput.hh.

Referenced by FillEnergyLoss(), FillEvent(), and FillEventInfo().

◆ energyWorldExitKinetic

G4double BDSOutput::energyWorldExitKinetic
private

Integral when filling hit.

Definition at line 349 of file BDSOutput.hh.

Referenced by FillEnergyLoss(), FillEvent(), and FillEventInfo().

◆ fileExtension

const G4String BDSOutput::fileExtension
private

File extension to add to each file.

Definition at line 296 of file BDSOutput.hh.

Referenced by GetNextFileName().

◆ histIndexToUnits1D

std::map<G4int, G4double> BDSOutput::histIndexToUnits1D
private

Map containing some histogram units. Not all will be filled, so the utility function GetWithDef should be used.

Definition at line 362 of file BDSOutput.hh.

Referenced by CreateHistograms().

◆ histIndexToUnits3D

std::map<G4int, G4double> BDSOutput::histIndexToUnits3D
private

Definition at line 363 of file BDSOutput.hh.

◆ histIndexToUnits4D

std::map<G4int, G4double> BDSOutput::histIndexToUnits4D
private

Definition at line 364 of file BDSOutput.hh.

◆ histIndices1D

std::map<G4String, G4int> BDSOutput::histIndices1D
private

Map of histogram name (short) to index of histogram in output.

Definition at line 354 of file BDSOutput.hh.

Referenced by CopyFromHistToHist1D(), CreateHistograms(), FillApertureImpacts(), FillCollimatorHits(), FillEnergyLoss(), FillPrimaryHit(), and FillPrimaryLoss().

◆ histIndices3D

std::map<G4String, G4int> BDSOutput::histIndices3D
private

Map of histogram name (short) to index of histogram in output.

Definition at line 355 of file BDSOutput.hh.

Referenced by CreateHistograms(), FillEnergyLoss(), and FillScorerHitsIndividual().

◆ histIndices4D

std::map<G4String, G4int> BDSOutput::histIndices4D
private

Map of histogram name (short) to index of histogram in output.

Definition at line 356 of file BDSOutput.hh.

Referenced by CreateHistograms(), and FillScorerHitsIndividual().

◆ nbins

G4int BDSOutput::nbins
private

Number of bins for each histogram required.

Definition at line 311 of file BDSOutput.hh.

Referenced by CalculateHistogramParameters(), and CreateHistograms().

◆ nCollimatorsInteracted

G4int BDSOutput::nCollimatorsInteracted
private

Integral when filling hit.

Definition at line 350 of file BDSOutput.hh.

Referenced by FillCollimatorHits(), FillEvent(), and FillEventInfo().

◆ numberEventPerFile

G4int BDSOutput::numberEventPerFile
private

Number of events stored per file.

Definition at line 297 of file BDSOutput.hh.

Referenced by BDSOutput(), and GetNextFileName().

◆ outputFileNumber

G4int BDSOutput::outputFileNumber
private

Number of output file.

Definition at line 298 of file BDSOutput.hh.

Referenced by GetNextFileName().

◆ protectedNames

const std::set< G4String > BDSOutput::protectedNames
staticprivate
Initial value:
= {
"Event", "Histos", "Info", "Primary", "PrimaryGlobal",
"Eloss", "ElossVacuum", "ElossTunnel", "ElossWorld", "ElossWorldExit",
"ElossWorldContents",
"PrimaryFirstHit", "PrimaryLastHit", "Trajectory", "ApertureImpacts"
}

Invalid names for samplers - kept here as this is where the output structures are created.

Definition at line 301 of file BDSOutput.hh.

Referenced by InvalidSamplerName(), and PrintProtectedNames().

◆ scorerCoordinateMaps

std::map<G4String, BDSHistBinMapper> BDSOutput::scorerCoordinateMaps
private

Map of histogram name (short) to index of histogram in output.

Definition at line 357 of file BDSOutput.hh.

Referenced by CreateHistograms(), and FillScorerHitsIndividual().

◆ sMaxHistograms

G4double BDSOutput::sMaxHistograms
private

The maximum s in mm such that there is an integer number of elossHistoBinWidths along the line. Used for histogramming purposes.

Definition at line 308 of file BDSOutput.hh.

Referenced by CalculateHistogramParameters(), and CreateHistograms().

◆ storeApertureImpacts

G4bool BDSOutput::storeApertureImpacts
protected

Options for dynamic bits of output.

Definition at line 173 of file BDSOutput.hh.

Referenced by BDSOutput(), FillApertureImpacts(), and BDSOutputROOT::NewFile().

◆ storeApertureImpactsHistograms

G4bool BDSOutput::storeApertureImpactsHistograms
protected

Options for dynamic bits of output.

Definition at line 174 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), and FillApertureImpacts().

◆ storeCavityInfo

G4bool BDSOutput::storeCavityInfo
private

Storage option.

Definition at line 314 of file BDSOutput.hh.

Referenced by BDSOutput(), and InitialiseGeometryDependent().

◆ storeCollimatorHits

G4bool BDSOutput::storeCollimatorHits
private

Storage option.

Definition at line 316 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillCollimatorHits().

◆ storeCollimatorHitsIons

G4bool BDSOutput::storeCollimatorHitsIons
private

Storage option.

Definition at line 318 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillCollimatorHits().

◆ storeCollimatorHitsLinks

G4bool BDSOutput::storeCollimatorHitsLinks
private

Storage option.

Definition at line 317 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillCollimatorHits().

◆ storeCollimatorInfo

G4bool BDSOutput::storeCollimatorInfo
private

Storage option.

Definition at line 315 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), FillEnergyLoss(), FillPrimaryHit(), and FillPrimaryLoss().

◆ storeELoss

G4bool BDSOutput::storeELoss
protected

Options for dynamic bits of output.

Definition at line 168 of file BDSOutput.hh.

Referenced by BDSOutput(), FillEnergyLoss(), and BDSOutputROOT::NewFile().

◆ storeELossHistograms

G4bool BDSOutput::storeELossHistograms
private

Storage option.

Definition at line 319 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), and FillEnergyLoss().

◆ storeELossTunnel

G4bool BDSOutput::storeELossTunnel
protected

Options for dynamic bits of output.

Definition at line 169 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), FillEnergyLoss(), and BDSOutputROOT::NewFile().

◆ storeELossTunnelHistograms

G4bool BDSOutput::storeELossTunnelHistograms
private

Storage option.

Definition at line 320 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), and FillEnergyLoss().

◆ storeELossVacuum

G4bool BDSOutput::storeELossVacuum
protected

Options for dynamic bits of output.

Definition at line 170 of file BDSOutput.hh.

Referenced by BDSOutput(), FillEnergyLoss(), and BDSOutputROOT::NewFile().

◆ storeELossVacuumHistograms

G4bool BDSOutput::storeELossVacuumHistograms
private

Storage option.

Definition at line 321 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), and FillEnergyLoss().

◆ storeELossWorld

G4bool BDSOutput::storeELossWorld
protected

Options for dynamic bits of output.

Definition at line 171 of file BDSOutput.hh.

Referenced by BDSOutput(), FillEnergyLoss(), and BDSOutputROOT::NewFile().

◆ storeELossWorldContents

G4bool BDSOutput::storeELossWorldContents
protected

Options for dynamic bits of output.

Definition at line 172 of file BDSOutput.hh.

Referenced by BDSOutput(), FillEnergyLoss(), and BDSOutputROOT::NewFile().

◆ storeModel

G4bool BDSOutput::storeModel
private

Storage option.

Definition at line 324 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillModel().

◆ storeParticleData

G4bool BDSOutput::storeParticleData
private

Storage option.

Definition at line 322 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillParticleData().

◆ storePrimaries

G4bool BDSOutput::storePrimaries
protected

Options for dynamic bits of output.

Definition at line 175 of file BDSOutput.hh.

Referenced by BDSOutput(), FillEvent(), and BDSOutputROOT::NewFile().

◆ storePrimaryHistograms

G4bool BDSOutput::storePrimaryHistograms
private

Storage option.

Definition at line 323 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), FillPrimaryHit(), and FillPrimaryLoss().

◆ storeSamplerCharge

G4bool BDSOutput::storeSamplerCharge
private

Storage option.

Definition at line 326 of file BDSOutput.hh.

Referenced by BDSOutput(), FillSamplerHits(), FillSamplerHitsLink(), and FillSamplerHitsVector().

◆ storeSamplerIon

G4bool BDSOutput::storeSamplerIon
private

Storage option.

Definition at line 330 of file BDSOutput.hh.

Referenced by BDSOutput(), FillSamplerHits(), FillSamplerHitsLink(), and FillSamplerHitsVector().

◆ storeSamplerKineticEnergy

G4bool BDSOutput::storeSamplerKineticEnergy
private

Storage option.

Definition at line 327 of file BDSOutput.hh.

Referenced by BDSOutput(), FillSamplerHits(), FillSamplerHitsLink(), and FillSamplerHitsVector().

◆ storeSamplerMass

G4bool BDSOutput::storeSamplerMass
private

Storage option.

Definition at line 328 of file BDSOutput.hh.

Referenced by BDSOutput(), FillSamplerHits(), FillSamplerHitsLink(), and FillSamplerHitsVector().

◆ storeSamplerPolarCoords

G4bool BDSOutput::storeSamplerPolarCoords
private

Storage option.

Definition at line 325 of file BDSOutput.hh.

Referenced by BDSOutput(), FillSamplerHits(), FillSamplerHitsLink(), and FillSamplerHitsVector().

◆ storeSamplerRigidity

G4bool BDSOutput::storeSamplerRigidity
private

Storage option.

Definition at line 329 of file BDSOutput.hh.

Referenced by BDSOutput(), FillSamplerHits(), FillSamplerHitsLink(), and FillSamplerHitsVector().

◆ storeTrajectory

G4bool BDSOutput::storeTrajectory
protected

Options for dynamic bits of output.

Definition at line 176 of file BDSOutput.hh.

Referenced by BDSOutput(), FillModel(), FillTrajectories(), and BDSOutputROOT::NewFile().

◆ storeTrajectoryOptions

BDS::TrajectoryOptions BDSOutput::storeTrajectoryOptions
private

Storage option.

Definition at line 333 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillTrajectories().

◆ storeTrajectoryStepPointLast

G4bool BDSOutput::storeTrajectoryStepPointLast
private

Storage option.

Definition at line 332 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillTrajectories().

◆ storeTrajectoryStepPoints

G4int BDSOutput::storeTrajectoryStepPoints
private

Storage option.

Definition at line 331 of file BDSOutput.hh.

Referenced by BDSOutput(), and FillTrajectories().

◆ useScoringMap

G4bool BDSOutput::useScoringMap
private

Whether the single 3D histogram will be built.

Definition at line 304 of file BDSOutput.hh.

Referenced by BDSOutput(), CreateHistograms(), and FillEnergyLoss().


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