31 class SamplerPlacement;
81 void set_value(std::string property, T value,
bool bExit =
true);
99 std::cout <<
"placement> Setting value " << std::setw(25) << std::left
100 <<
property << value << std::endl;
104 {
set(
this,property,value);}
105 catch (
const std::runtime_error&)
107 std::cerr <<
"Error: placement> unknown option \"" <<
property
108 <<
"\" with value \"" << value <<
"\"" << std::endl;
112 std::rethrow_exception(std::current_exception());
Placement class for parser.
bool axisAngle
Flag to use the axis angle construction of rotation.
std::string fieldAll
Name of field object to apply to all of placement.
bool sensitive
Whether to record hits or not.
std::string name
Name of this placement.
void print() const
print some properties
std::string side
which side to attach to: top, bottom, left, right.
double theta
Euler angle for rotation.
double sideOffset
Gap between side and component.
double psi
Euler angle for rotation.
double s
Curvilinear s position to place w.r.t..
bool dontReloadGeometry
Purposively don't reload for unique placements (must know what we're doing)
std::string bdsimElement
Name of bdsim-built component to place instead of piece of geometry.
void PublishMembers()
publish members
bool autoColour
Whether to auto colour the geometry.
void set_value(std::string property, T value, bool bExit=true)
set methods by property name and value
bool stripOuterVolume
Whether to place the world LV as a G4AssemblyVolume.
std::string sequence
Name of sequence to place.
std::string geometryFile
Geometry to load in format:path.
int referenceElementNumber
Index of repetition of element if there are multiple uses.
double phi
Euler angle for rotation.
std::string referenceElement
Name of reference element w.r.t. to place to.
Class that provides introspection to its members.
void set(Placement *instance, const std::string &name, double value)
Query structure class for parser.
Sampler placement class for parser.
ScorerMesh class for parser.
Parser namespace for GMAD language. Combination of Geant4 and MAD.