18#include "optionsBase.h"
33 geant4PhysicsMacroFileNameFromExecOptions =
false;
66 verboseImportanceSampling = 0;
68 verboseSensitivity =
false;
88 physicsVerbose =
false;
90 physicsEnergyLimitLow = 0;
91 physicsEnergyLimitHigh = 0;
92 g4PhysicsUseBDSIMRangeCuts =
true;
93 g4PhysicsUseBDSIMCutsAndLimits =
true;
98 elossHistoBinWidth = 1.0;
116 eventNumberOffset = 0;
120 xsize=0.0, ysize=0.0;
124 outerMaterialName =
"iron";
125 horizontalWidth = 0.6;
126 thinElementLength = 1e-7;
129 coilWidthFraction = -1;
130 coilHeightFraction = -1;
131 ignoreLocalMagnetGeometry =
false;
132 buildPoleFaceGeometry =
true;
135 preprocessGDMLSchema =
true;
140 includeFringeFields =
true;
141 includeFringeFieldsCavities =
true;
144 yokeFieldsMatchLHCGeometry =
true;
145 useOldMultipoleOuterFields =
false;
146 scalingFieldOuter = 1.0;
147 integrateKineticEnergyAlongBeamline =
true;
149 cavityFieldType =
"constantinz";
163 worldMaterial =
"G4_AIR";
164 worldGeometryFile =
"";
165 autoColourWorldGeometryFile =
true;
166 importanceWorldGeometryFile =
"";
167 importanceVolumeMap =
"";
170 vacuumPressure = 1e-12;
189 removeTemporaryFiles =
true;
190 temporaryDirectory =
"";
237 scaleFactorLaser = 1;
238 defaultBiasVacuum =
"";
239 defaultBiasMaterial =
"";
240 biasForWorldVolume =
"";
241 biasForWorldContents =
"";
242 biasForWorldVacuum =
"";
243 worldVacuumVolumeNames =
"";
246 integratorSet =
"bdsimmatrix";
249 lengthSafetyLarge = 1e-6;
253 chordStepMinimum = 1e-9;
254 chordStepMinimumYoke = 1e-6;
255 deltaIntersection = 1e-8;
256 sampleElementsWithPoleface =
false;
259 dEThresholdForScattering = 1e-11;
263 minimumEpsilonStep = 1e-12;
264 maximumEpsilonStep = 1e-7;
265 minimumEpsilonStepThin = 1e-12;
266 maximumEpsilonStepThin = 1e-3;
268 stopSecondaries =
false;
269 killNeutrinos =
false;
270 killedParticlesMassAddedToEloss =
false;
274 sensitiveOuter =
true;
275 sensitiveBeamPipe =
true;
278 numberOfEventsPerNtuple = 0;
280 storeMinimalData =
false;
282 storeApertureImpacts =
true;
283 storeApertureImpactsHistograms =
true;
284 storeApertureImpactsIons =
false;
285 storeApertureImpactsAll =
false;
286 apertureImpactsMinimumKE = 0;
287 storeCavityInfo =
true;
288 storeCollimatorInfo =
false;
289 storeCollimatorHits =
false;
290 storeCollimatorHitsLinks =
false;
291 storeCollimatorHitsIons =
false;
292 storeCollimatorHitsAll =
false;
293 collimatorHitsMinimumKE = 0;
295 storeElossHistograms =
true;
296 storeElossVacuum =
false;
297 storeElossVacuumHistograms =
false;
298 storeElossTunnel =
false;
299 storeElossTunnelHistograms =
false;
300 storeElossWorld =
false;
301 storeElossWorldIntegral =
false;
302 storeElossWorldContents =
false;
303 storeElossWorldContentsIntegral =
false;
304 storeElossTurn =
false;
305 storeElossLinks =
false;
306 storeElossLocal =
false;
307 storeElossGlobal =
false;
308 storeElossTime =
false;
309 storeElossStepLength =
false;
310 storeElossPreStepKineticEnergy =
false;
311 storeElossModelID =
false;
312 storeElossPhysicsProcesses =
false;
313 storeParticleData =
true;
314 storePrimaries =
true;
315 storePrimaryHistograms =
true;
317 storeTrajectory =
false;
319 storeTrajectoryDepth = 0;
320 storeTrajectoryStepPoints = 0;
321 storeTrajectoryStepPointLast =
false;
322 storeTrajectoryParticle =
"";
323 storeTrajectoryParticleID =
"";
324 storeTrajectorySecondaryParticles =
false;
325 storeTrajectoryEnergyThreshold = -1.0;
326 storeTrajectorySamplerID =
"";
327 storeTrajectoryELossSRange =
"";
329 storeTrajectoryTransportationSteps =
true;
331 storeTrajectoryKineticEnergy =
true;
332 storeTrajectoryMomentumVector =
false;
333 storeTrajectoryProcesses =
false;
334 storeTrajectoryTime =
false;
335 storeTrajectoryLocal =
false;
336 storeTrajectoryLinks =
false;
337 storeTrajectoryIon =
false;
338 storeTrajectoryMaterial =
false;
339 storeTrajectoryAllVariables =
false;
341 trajectoryFilterLogicAND =
false;
343 storeSamplerAll =
false;
344 storeSamplerPolarCoords =
false;
345 storeSamplerCharge =
false;
346 storeSamplerKineticEnergy =
true;
347 storeSamplerMass =
false;
348 storeSamplerRigidity =
false;
349 storeSamplerIon =
false;
357 storePerEventHistos =
true;
359 samplersSplitLevel = 0;
361 uprootCompatible = 0;
365 ptcOneTurnMapFileName =
"";
367 printFractionEvents = 0.1;
368 printFractionTurns = 0.2;
369 printPhysicsProcesses =
false;
387 useScoringMap =
false;
390 enableMillicharge =
false;
391 millichargeName =
"millicharged";
392 millichargeMass = 100;
393 millichargeCharge = 0.1;
394 millichargeID = 411000;
400 std::cout<<
"Options " << std::endl;
401 std::cout<<
"n particles : " <<
nGenerate << std::endl;
402 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
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 maximumBetaChangePerStep
physics parameters
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.
bool turnOffMuonDecay
physics parameters
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.
bool extendPionDecayChannels
physics parameters
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.