19#include "optionsBase.h"
25OptionsBase::OptionsBase()
34 geant4PhysicsMacroFileNameFromExecOptions =
false;
65 verboseImportanceSampling = 0;
85 physicsVerbose =
false;
87 physicsEnergyLimitLow = 0;
88 physicsEnergyLimitHigh = 0;
89 g4PhysicsUseBDSIMRangeCuts =
true;
90 g4PhysicsUseBDSIMCutsAndLimits =
true;
95 elossHistoBinWidth = 1.0;
113 eventNumberOffset = 0;
117 xsize=0.0, ysize=0.0;
121 outerMaterialName =
"iron";
122 horizontalWidth = 0.6;
123 thinElementLength = 1e-7;
126 coilWidthFraction = -1;
127 coilHeightFraction = -1;
128 ignoreLocalMagnetGeometry =
false;
129 buildPoleFaceGeometry =
true;
132 preprocessGDMLSchema =
true;
137 includeFringeFields =
true;
138 includeFringeFieldsCavities =
true;
141 yokeFieldsMatchLHCGeometry =
true;
142 useOldMultipoleOuterFields =
false;
143 scalingFieldOuter = 1.0;
157 worldMaterial =
"G4_AIR";
158 worldGeometryFile =
"";
159 autoColourWorldGeometryFile =
true;
160 importanceWorldGeometryFile =
"";
161 importanceVolumeMap =
"";
164 vacuumPressure = 1e-12;
183 removeTemporaryFiles =
true;
184 temporaryDirectory =
"";
226 defaultBiasVacuum =
"";
227 defaultBiasMaterial =
"";
228 biasForWorldVolume =
"";
229 biasForWorldContents =
"";
230 biasForWorldVacuum =
"";
231 worldVacuumVolumeNames =
"";
234 integratorSet =
"bdsimmatrix";
236 lengthSafetyLarge = 1e-6;
240 chordStepMinimum = 1e-9;
241 chordStepMinimumYoke = 1e-6;
242 deltaIntersection = 1e-8;
243 sampleElementsWithPoleface =
false;
246 dEThresholdForScattering = 1e-11;
250 minimumEpsilonStep = 5e-25;
251 maximumEpsilonStep = 1e-7;
253 stopSecondaries =
false;
254 killNeutrinos =
false;
255 killedParticlesMassAddedToEloss =
false;
259 sensitiveOuter =
true;
260 sensitiveBeamPipe =
true;
263 numberOfEventsPerNtuple = 0;
265 storeMinimalData =
false;
267 storeApertureImpacts =
true;
268 storeApertureImpactsHistograms =
true;
269 storeApertureImpactsIons =
false;
270 storeApertureImpactsAll =
false;
271 apertureImpactsMinimumKE = 0;
272 storeCollimatorInfo =
false;
273 storeCollimatorHits =
false;
274 storeCollimatorHitsLinks =
false;
275 storeCollimatorHitsIons =
false;
276 storeCollimatorHitsAll =
false;
277 collimatorHitsMinimumKE = 0;
279 storeElossHistograms =
true;
280 storeElossVacuum =
false;
281 storeElossVacuumHistograms =
false;
282 storeElossTunnel =
false;
283 storeElossTunnelHistograms =
false;
284 storeElossWorld =
false;
285 storeElossWorldContents =
false;
286 storeElossTurn =
false;
287 storeElossLinks =
false;
288 storeElossLocal =
false;
289 storeElossGlobal =
false;
290 storeElossTime =
false;
291 storeElossStepLength =
false;
292 storeElossPreStepKineticEnergy =
false;
293 storeElossModelID =
false;
294 storeElossPhysicsProcesses =
false;
295 storeParticleData =
true;
296 storePrimaries =
true;
297 storePrimaryHistograms =
true;
299 storeTrajectory =
false;
301 storeTrajectoryDepth = 0;
302 storeTrajectoryStepPoints = 0;
303 storeTrajectoryStepPointLast =
false;
304 storeTrajectoryParticle =
"";
305 storeTrajectoryParticleID =
"";
306 storeTrajectoryEnergyThreshold = -1.0;
307 storeTrajectorySamplerID =
"";
308 storeTrajectoryELossSRange =
"";
310 storeTrajectoryTransportationSteps =
true;
312 storeTrajectoryKineticEnergy =
true;
313 storeTrajectoryMomentumVector =
false;
314 storeTrajectoryProcesses =
false;
315 storeTrajectoryTime =
false;
316 storeTrajectoryLocal =
false;
317 storeTrajectoryLinks =
false;
318 storeTrajectoryIon =
false;
319 storeTrajectoryMaterial =
false;
320 storeTrajectoryAllVariables =
false;
322 trajectoryFilterLogicAND =
false;
324 storeSamplerAll =
false;
325 storeSamplerPolarCoords =
false;
326 storeSamplerCharge =
false;
327 storeSamplerKineticEnergy =
false;
328 storeSamplerMass =
false;
329 storeSamplerRigidity =
false;
330 storeSamplerIon =
false;
338 samplersSplitLevel = 0;
342 ptcOneTurnMapFileName =
"";
344 printFractionEvents = 0.1;
345 printFractionTurns = 0.2;
346 printPhysicsProcesses =
false;
364 useScoringMap =
false;
370 std::cout<<
"Options " << std::endl;
371 std::cout<<
"n particles : " <<
nGenerate << std::endl;
372 std::cout<<
"BV sign : " <<
ffact << std::endl;
std::string seedStateFileName
Seed state file path.
std::string magnetGeometryType
default magnet geometry parameters
double beamlineZ
Initial beam line transform w.r.t. the world coordinate frame.
int nGenerate
The number of primary events to simulate.
std::string physicsList
list of physics processes
double muonSplittingThresholdParentEk2
physics parameters
double beamlineAngle
Initial beam line transform w.r.t. the world coordinate frame.
double beamlineS
Initial beam line transform w.r.t. the world coordinate frame.
bool survey
Parameter for survey.
double minimumRange
physics parameters
std::string outputFileName
Parameter for output format.
int muonSplittingFactor
physics parameters
double tunnelSoilThickness
tunnel geometry parameters
double minimumRadiusOfCurvature
Minimum allowed radius of curvature.
std::string outputFormat
Parameter for output format.
int verboseSteppingEventContinueFor
Stepping level verbosity.
bool beamlineAxisAngle
Initial beam line transform w.r.t. the world coordinate frame.
std::string exportFileName
Parameter for controlling geometry export.
int seed
The seed value for the random number generator.
double tunnelOffsetY
tunnel geometry parameters
double tunnelFloorOffset
tunnel geometry parameters
int verboseEventContinueFor
Event level verbosity.
bool hStyle
H Style dipoles (if not, C Style).
double xsize
for element specification
std::string particlesToExcludeFromCuts
physics parameters
double ffact
magnetic field flip (+1 default, -1: flip sign)
double tunnelMaxSegmentLength
tunnel geometry parameters
double muonSplittingThresholdParentEk
physics parameters
int verboseEventStart
Event level verbosity.
bool useLENDGammaNuclear
physics parameters
double maximumTrackingTime
Maximum tracking time per track [s].
bool dontSplitSBends
geometry debug, don't split bends into multiple segments
std::string tunnelMaterial
tunnel geometry parameters
bool useASCIISeedState
Whether to use the seed state from an ASCII file.
bool tunnelIsInfiniteAbsorber
physics parameters
bool verboseSteppingPrimaryOnly
Stepping level verbosity.
double muonSplittingExclusionWeight
physics parameters
bool collimatorsAreInfiniteAbsorbers
physics parameters
int verboseRunLevel
Run level verbosity.
bool turnOnOpticalSurface
Physics processes.
double prodCutProtons
physics parameters
int nSegmentsPerCircle
Number of facets per 2pi in visualisation.
std::string soilMaterial
tunnel geometry parameters
bool preprocessGDML
geometry control
int maximumBetaChangePerStep
physics parameters
bool batch
Flag for batch / interactive mode.
double minimumKineticEnergy
physics parameters
int eventOffset
Event number to start from when recreating from a root file.
int verboseTrackingLevel
Tracking verbosity.
bool circular
Flag for circular machine.
bool checkOverlaps
bdsim options
double neutronKineticEnergyLimit
physics parameters
double aper1
default beampipe parameters
double maximumTrackLength
Maximum permitted track length [m].
int verboseEventLevel
Event level verbosity.
bool turnOnOpticalAbsorption
Physics processes.
bool buildTunnelStraight
tunnel geometry parameters
std::string inputFileName
Input filename.
long maximumTracksPerEvent
physics parameters
double backupStepperMomLimit
Fractional momentum limit for reverting to backup steppers.
double aper2
default beampipe parameters
int outputCompressionLevel
Parameter for output format.
double beamlinePhi
Initial beam line transform w.r.t. the world coordinate frame.
double maximumStepLength
Maximum permitted step length in any volume.
std::string exportType
Parameter for controlling geometry export.
double neutronTimeLimit
physics parameters
bool recreateSeedState
Load seed state when recreating events.
std::string vacMaterial
vacuum material
bool verbose
General verbosity.
std::string recreateFileName
The file path to recreate a run from.
bool teleporterFullTransform
Whether to use the new Transform3D method for the teleporter.
bool buildTunnelFloor
tunnel geometry parameters
int startFromEvent
Event to start from when recreating.
std::string emptyMaterial
material in container volumes
bool muonSplittingExcludeWeight1Particles
physics parameters
double prodCutPhotons
physics parameters
bool generatePrimariesOnly
Whether to only generate primary coordinates and quit, or not.
double defaultRangeCut
physics parameters
double beamlineAxisY
Initial beam line transform w.r.t. the world coordinate frame.
double prodCutElectrons
physics parameters
double tunnelAper1
tunnel geometry parameters
bool verboseEventBDSIM
Event level verbosity.
int maximumPhotonsPerStep
physics parameters
std::string beampipeMaterial
default beampipe parameters
bool exportGeometry
Parameter for controlling geometry export.
int verboseSteppingLevel
Stepping level verbosity.
double beampipeThickness
default beampipe parameters
bool turnOnRayleighScattering
Physics processes.
std::string geant4PhysicsMacroFileName
Geant4 physics macro.
void print() const
print some properties
std::string visMacroFileName
Visualisation filename.
double scintYieldFactor
physics parameters
bool beamPipeIsInfiniteAbsorber
physics parameters
double beamlineX
Initial beam line transform w.r.t. the world coordinate frame.
std::string apertureType
default beampipe parameters
bool verboseSteppingBDSIM
Stepping level verbosity.
bool useMuonNuclear
physics parameters
bool useElectroNuclear
physics parameters
int verboseSteppingEventStart
Stepping level verbosity.
std::string surveyFileName
Parameter for survey.
bool recreate
Whether to recreate from a file or not.
double tunnelAper2
tunnel geometry parameters
bool turnOnMieScattering
Physics processes.
double beamlineY
Initial beam line transform w.r.t. the world coordinate frame.
double beamlineAxisX
Initial beam line transform w.r.t. the world coordinate frame.
double tunnelThickness
tunnel geometry parameters
std::string randomEngine
Name of random engine to use.
double prodCutPositrons
physics parameters
bool buildTunnel
tunnel geometry parameters
bool outputDoublePrecision
Parameter for output format.
bool writeSeedState
Write the seed state each event to a text file.
bool visDebug
Flag for visualisation debug.
bool useGammaToMuMu
physics parameters
double aper4
default beampipe parameters
double aper3
default beampipe parameters
double minimumKineticEnergyTunnel
physics parameters
double tunnelOffsetX
tunnel geometry parameters
bool usePositronToMuMu
physics parameters
std::string tunnelType
tunnel geometry parameters
double beamlineAxisZ
Initial beam line transform w.r.t. the world coordinate frame.
double beamlinePsi
Initial beam line transform w.r.t. the world coordinate frame.
std::string geant4MacroFileName
Geant4 macro to run.
bool trajNoTransportation
kept only for backwards compatibility.
bool usePositronToHadrons
physics parameters
bool tunnelVisible
tunnel geometry parameters
int muonSplittingFactor2
physics parameters
double worldVolumeMargin
Padding margin for world volume size.
double nominalMatrixRelativeMomCut
Momentum threshold for nominal dipole matrix tracking.
double beamlineTheta
Initial beam line transform w.r.t. the world coordinate frame.
bool ignoreLocalAperture
default beampipe parameters
Parser namespace for GMAD language. Combination of Geant4 and MAD.