19#include "optionsBase.h"
34 geant4PhysicsMacroFileNameFromExecOptions =
false;
67 verboseImportanceSampling = 0;
69 verboseSensitivity =
false;
89 physicsVerbose =
false;
91 physicsEnergyLimitLow = 0;
92 physicsEnergyLimitHigh = 0;
93 g4PhysicsUseBDSIMRangeCuts =
true;
94 g4PhysicsUseBDSIMCutsAndLimits =
true;
99 elossHistoBinWidth = 1.0;
117 eventNumberOffset = 0;
121 xsize=0.0, ysize=0.0;
125 outerMaterialName =
"iron";
126 horizontalWidth = 0.6;
127 thinElementLength = 1e-7;
130 coilWidthFraction = -1;
131 coilHeightFraction = -1;
132 ignoreLocalMagnetGeometry =
false;
133 buildPoleFaceGeometry =
true;
136 preprocessGDMLSchema =
true;
141 includeFringeFields =
true;
142 includeFringeFieldsCavities =
true;
145 yokeFieldsMatchLHCGeometry =
true;
146 useOldMultipoleOuterFields =
false;
147 scalingFieldOuter = 1.0;
148 integrateKineticEnergyAlongBeamline =
true;
150 cavityFieldType =
"constantinz";
164 worldMaterial =
"G4_AIR";
165 worldGeometryFile =
"";
166 autoColourWorldGeometryFile =
true;
167 importanceWorldGeometryFile =
"";
168 importanceVolumeMap =
"";
171 vacuumPressure = 1e-12;
190 removeTemporaryFiles =
true;
191 temporaryDirectory =
"";
236 scaleFactorLaser = 1;
237 defaultBiasVacuum =
"";
238 defaultBiasMaterial =
"";
239 biasForWorldVolume =
"";
240 biasForWorldContents =
"";
241 biasForWorldVacuum =
"";
242 worldVacuumVolumeNames =
"";
245 integratorSet =
"bdsimmatrix";
248 lengthSafetyLarge = 1e-6;
252 chordStepMinimum = 1e-9;
253 chordStepMinimumYoke = 1e-6;
254 deltaIntersection = 1e-8;
255 sampleElementsWithPoleface =
false;
258 dEThresholdForScattering = 1e-11;
262 minimumEpsilonStep = 1e-12;
263 maximumEpsilonStep = 1e-7;
264 minimumEpsilonStepThin = 1e-12;
265 maximumEpsilonStepThin = 1e-3;
267 stopSecondaries =
false;
268 killNeutrinos =
false;
269 killedParticlesMassAddedToEloss =
false;
273 sensitiveOuter =
true;
274 sensitiveBeamPipe =
true;
277 numberOfEventsPerNtuple = 0;
279 storeMinimalData =
false;
281 storeApertureImpacts =
true;
282 storeApertureImpactsHistograms =
true;
283 storeApertureImpactsIons =
false;
284 storeApertureImpactsAll =
false;
285 apertureImpactsMinimumKE = 0;
286 storeCavityInfo =
true;
287 storeCollimatorInfo =
false;
288 storeCollimatorHits =
false;
289 storeCollimatorHitsLinks =
false;
290 storeCollimatorHitsIons =
false;
291 storeCollimatorHitsAll =
false;
292 collimatorHitsMinimumKE = 0;
294 storeElossHistograms =
true;
295 storeElossVacuum =
false;
296 storeElossVacuumHistograms =
false;
297 storeElossTunnel =
false;
298 storeElossTunnelHistograms =
false;
299 storeElossWorld =
false;
300 storeElossWorldIntegral =
false;
301 storeElossWorldContents =
false;
302 storeElossWorldContentsIntegral =
false;
303 storeElossTurn =
false;
304 storeElossLinks =
false;
305 storeElossLocal =
false;
306 storeElossGlobal =
false;
307 storeElossTime =
false;
308 storeElossStepLength =
false;
309 storeElossPreStepKineticEnergy =
false;
310 storeElossModelID =
false;
311 storeElossPhysicsProcesses =
false;
312 storeParticleData =
true;
313 storePrimaries =
true;
314 storePrimaryHistograms =
true;
316 storeTrajectory =
false;
318 storeTrajectoryDepth = 0;
319 storeTrajectoryStepPoints = 0;
320 storeTrajectoryStepPointLast =
false;
321 storeTrajectoryParticle =
"";
322 storeTrajectoryParticleID =
"";
323 storeTrajectorySecondaryParticles =
false;
324 storeTrajectoryEnergyThreshold = -1.0;
325 storeTrajectorySamplerID =
"";
326 storeTrajectoryELossSRange =
"";
328 storeTrajectoryTransportationSteps =
true;
330 storeTrajectoryKineticEnergy =
true;
331 storeTrajectoryMomentumVector =
false;
332 storeTrajectoryProcesses =
false;
333 storeTrajectoryTime =
false;
334 storeTrajectoryLocal =
false;
335 storeTrajectoryLinks =
false;
336 storeTrajectoryIon =
false;
337 storeTrajectoryMaterial =
false;
338 storeTrajectoryAllVariables =
false;
340 trajectoryFilterLogicAND =
false;
342 storeSamplerAll =
false;
343 storeSamplerPolarCoords =
false;
344 storeSamplerCharge =
false;
345 storeSamplerKineticEnergy =
true;
346 storeSamplerMass =
false;
347 storeSamplerRigidity =
false;
348 storeSamplerIon =
false;
356 storePerEventHistos =
true;
358 samplersSplitLevel = 0;
360 uprootCompatible = 0;
364 ptcOneTurnMapFileName =
"";
366 printFractionEvents = 0.1;
367 printFractionTurns = 0.2;
368 printPhysicsProcesses =
false;
386 useScoringMap =
false;
389 enableMillicharge =
false;
390 millichargeName =
"millicharged";
391 millichargeMass = 100;
392 millichargeCharge = 0.1;
393 millichargeID = 411000;
399 std::cout<<
"Options " << std::endl;
400 std::cout<<
"n particles : " <<
nGenerate << std::endl;
401 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.
int visVerbosity
Geant4 vis system 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 restoreFTPFDiffractionForAGreater10
physics parameters
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.
double xrayAllSurfaceRoughness
physics parameters
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.