25#include "parser/parser.h"
78 using GMAD::Parser::GetSamplerFilterIDToSet;
116 explicit BDSParser(
const std::string& filename);
Const entry to parser objects.
const GMAD::Element * GetElement(const std::string &name)
const GMAD::FastList< GMAD::Element > & GetSequence(const std::string &name)
Return sequence.
std::vector< GMAD::Scorer > GetScorers() const
Return the parser list of that object.
void AmalgamateBeam(const GMAD::Beam &beamIn, bool recreate)
Amalgamate the input beam definition with the ones stored in teh parser.
const GMAD::OptionsBase * GetOptionsBase() const
Return bare options base class.
void CheckOptions()
Check options for consistency. This also checks the beam options.
static BDSParser * Instance()
Access method.
std::vector< GMAD::Atom > GetAtoms() const
Return the parser list of that object.
std::vector< GMAD::Aperture > GetApertures() const
Return the parser list of that object.
std::vector< GMAD::CavityModel > GetCavityModels() const
Return the parser list of that object.
static BDSParser * instance
Instance.
std::vector< GMAD::Field > GetFields() const
Return the parser list of that object.
const GMAD::Beam & GetBeam() const
Return beam.
static bool IsInitialised()
Returns if parser is initialised.
const GMAD::Options & GetOptions() const
Return options.
BDSParser()=delete
No default constructor.
std::vector< GMAD::Crystal > GetCrystals() const
Return the parser list of that object.
std::vector< GMAD::Query > GetQuery() const
Return the parser list of that object.
std::vector< GMAD::SamplerPlacement > GetSamplerPlacements() const
Return the parser list of that object.
std::vector< GMAD::Region > GetRegions() const
Return the parser list of that object.
const GMAD::Element * GetPlacementElement(const std::string &name)
std::vector< GMAD::BLMPlacement > GetBLMs() const
Return the parser list of that object.
void AmalgamateOptions(const GMAD::Options &optionsIn)
Amalgamate the input options with the ones stored in the parser.
std::vector< GMAD::NewColour > GetColours() const
Return the parser list of that object.
std::vector< GMAD::Modulator > GetModulators() const
Return the parser list of that object.
const GMAD::BeamBase * GetBeamBase() const
Return bare beam base class.
const std::vector< GMAD::PhysicsBiasing > GetBiasingVector() const
Return the parser list of that object.
std::vector< GMAD::Material > GetMaterials() const
Return the parser list of that object.
const GMAD::FastList< GMAD::PhysicsBiasing > & GetBiasing() const
Return biasing list.
GMAD::Beam & GetBeam()
Return beam non-const. Required when loading a file and need to change beam parameters to match.
std::vector< GMAD::ScorerMesh > GetScorerMesh() const
Return the parser list of that object.
virtual ~BDSParser()
Destructor.
std::vector< GMAD::Placement > GetPlacements() const
Return the parser list of that object.
Options for a beam distribution.
List with Efficient Lookup.
Basic options class independent of Geant4.
FastList< Atom > atom_list
List of parser defined instances of that object.
FastList< BLMPlacement > blm_list
List of parser defined instances of that object.
FastList< Crystal > crystal_list
List of parser defined instances of that object.
FastList< Placement > placement_list
List of parser defined instances of that object.
FastList< Region > region_list
List of parser defined instances of that object.
FastList< Modulator > modulator_list
List of parser defined instances of that object.
FastList< NewColour > colour_list
List of parser defined instances of that object.
FastList< Scorer > scorer_list
List of parser defined instances of that object.
Options options
General options.
FastList< Aperture > aperture_list
List of parser defined instances of that object.
FastList< PhysicsBiasing > xsecbias_list
List of parser defined instances of that object.
FastList< ScorerMesh > scorermesh_list
List of parser defined instances of that object.
const Element * find_placement_element_safe(const std::string &element_name) const
search placement_element
FastList< SamplerPlacement > samplerplacement_list
List of parser defined instances of that object.
const FastList< Element > & get_sequence(const std::string &name)
const FastList< Element > & GetBeamline() const
FastList< Field > field_list
List of parser defined instances of that object.
FastList< CavityModel > cavitymodel_list
List of parser defined instances of that object.
FastList< Query > query_list
List of parser defined instances of that object.
FastList< Material > material_list
List of parser defined instances of that object.
const Element * find_element_safe(const std::string &element_name) const
find element by pointer - nullptr if not found - searches element_list