BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Recipe class for scorer. Checks values. More...
#include <BDSScorerInfo.hh>
Public Member Functions | |
BDSScorerInfo ()=delete | |
No default constructor as unused. | |
BDSScorerInfo (const GMAD::Scorer &scorer, G4bool upgradeTo3D=false) | |
void | CheckParticle (G4ParticleDefinition *particleIn, const G4String &nameIn) |
Utility function to check valid pointer and throw exception if not. | |
Data Fields | |
BDSScorerType | scorerType |
Scorer type. | |
G4String | name |
Scorer name. | |
G4ParticleDefinition * | particle |
Particle filter. | |
G4double | minimumKineticEnergy |
G4double | maximumKineticEnergy |
G4double | minimumTime |
G4double | maximumTime |
G4String | filename |
Name of the conversion factor file. | |
G4String | pathname |
Path of the conversion factor file (for ambient dose) | |
std::vector< G4Material * > | materialsToInclude |
std::vector< G4Material * > | materialsToExclude |
Which materials to include for scoring. | |
G4bool | worldVolumeOnly |
Which materials to exclude for scoring. | |
G4bool | primariesOnly |
Recipe class for scorer. Checks values.
Convert a parser scorer instance to one using Geant4 types and units. Check values and find particle definition.
Definition at line 45 of file BDSScorerInfo.hh.
|
explicit |
Constructor. If upgradeTo3D is true, some scorer types will be upgraded to 3d as required for use in a mesh.
Definition at line 39 of file BDSScorerInfo.cc.
References CheckParticle(), BDS::DetermineScorerType(), filename, BDSMaterials::Instance(), materialsToExclude, name, GMAD::Scorer::name, particle, GMAD::Scorer::particleName, GMAD::Scorer::particlePDGID, pathname, scorerType, BDS::SplitOnWhiteSpace(), BDS::StrContains(), GMAD::Scorer::type, BDSException::what(), and worldVolumeOnly.
void BDSScorerInfo::CheckParticle | ( | G4ParticleDefinition * | particleIn, |
const G4String & | nameIn | ||
) |
Utility function to check valid pointer and throw exception if not.
Definition at line 112 of file BDSScorerInfo.cc.
Referenced by BDSScorerInfo().
G4String BDSScorerInfo::filename |
Name of the conversion factor file.
Definition at line 67 of file BDSScorerInfo.hh.
Referenced by BDSScorerInfo(), and BDSScorerFactory::GetAppropriateScorer().
std::vector<G4Material*> BDSScorerInfo::materialsToExclude |
Which materials to include for scoring.
Definition at line 70 of file BDSScorerInfo.hh.
Referenced by BDSScorerInfo(), and BDSScorerFactory::CreateFilter().
std::vector<G4Material*> BDSScorerInfo::materialsToInclude |
Definition at line 69 of file BDSScorerInfo.hh.
G4double BDSScorerInfo::maximumKineticEnergy |
Definition at line 64 of file BDSScorerInfo.hh.
G4double BDSScorerInfo::maximumTime |
Definition at line 66 of file BDSScorerInfo.hh.
G4double BDSScorerInfo::minimumKineticEnergy |
Definition at line 63 of file BDSScorerInfo.hh.
G4double BDSScorerInfo::minimumTime |
Definition at line 65 of file BDSScorerInfo.hh.
G4String BDSScorerInfo::name |
Scorer name.
Definition at line 61 of file BDSScorerInfo.hh.
Referenced by BDSScorerInfo(), BDS::BuildBLMs(), BDSDetectorConstruction::ConstructScoringMeshes(), BDSScorerFactory::CreateScorer(), and BDSScorerFactory::GetAppropriateScorer().
G4ParticleDefinition* BDSScorerInfo::particle |
Particle filter.
Definition at line 62 of file BDSScorerInfo.hh.
Referenced by BDSScorerInfo(), and BDSScorerFactory::CreateFilter().
G4String BDSScorerInfo::pathname |
Path of the conversion factor file (for ambient dose)
Definition at line 68 of file BDSScorerInfo.hh.
Referenced by BDSScorerInfo(), and BDSScorerFactory::GetAppropriateScorer().
G4bool BDSScorerInfo::primariesOnly |
Definition at line 72 of file BDSScorerInfo.hh.
BDSScorerType BDSScorerInfo::scorerType |
Scorer type.
Definition at line 60 of file BDSScorerInfo.hh.
Referenced by BDSScorerInfo(), and BDSScorerFactory::GetAppropriateScorer().
G4bool BDSScorerInfo::worldVolumeOnly |
Which materials to exclude for scoring.
Whether to score from the world volume only
Definition at line 71 of file BDSScorerInfo.hh.
Referenced by BDSScorerInfo(), and BDSScorerFactory::CreateFilter().