32 class SamplerPlacement;
82 void set_value(std::string property, T value);
100 std::cout <<
"placement> Setting value " << std::setw(25) << std::left
101 <<
property << value << std::endl;
105 {
set(
this,property,value);}
106 catch (
const std::runtime_error&)
108 std::cerr <<
"Error: placement> unknown option \"" <<
property
109 <<
"\" with value \"" << value <<
"\"" << std::endl;
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.
void set_value(std::string property, T value)
set methods by property name and value
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.
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.