19#include "samplerplacement.h"
79 publish(
"apertureModel", &SamplerPlacement::apertureModel);
80 publish(
"shape", &SamplerPlacement::shape);
81 publish(
"apertureType", &SamplerPlacement::shape);
82 publish(
"aper1", &SamplerPlacement::aper1);
83 publish(
"aper2", &SamplerPlacement::aper2);
84 publish(
"aper3", &SamplerPlacement::aper3);
85 publish(
"aper4", &SamplerPlacement::aper4);
86 publish(
"startAnglePhi", &SamplerPlacement::startAnglePhi);
87 publish(
"sweepAnglePhi", &SamplerPlacement::sweepAnglePhi);
88 publish(
"startAngleTheta", &SamplerPlacement::startAngleTheta);
89 publish(
"sweepAngleTheta", &SamplerPlacement::sweepAngleTheta);
96 std::cout <<
"SamplerPlacement: "
97 <<
"name " <<
name << std::endl
101 <<
"s" <<
s << std::endl
102 <<
"x " <<
x << std::endl
103 <<
"y " <<
y << std::endl
104 <<
"z " <<
z << std::endl
105 <<
"phi " <<
phi << std::endl
106 <<
"theta " <<
theta << std::endl
107 <<
"psi " <<
psi << std::endl
108 <<
"axisX " <<
axisX << std::endl
109 <<
"axisY " <<
axisY << std::endl
110 <<
"axisZ " <<
axisZ << std::endl
111 <<
"angle " <<
angle << std::endl
112 <<
"axisAngle " <<
axisAngle << std::endl
113 <<
"apertureMode " << apertureModel << std::endl
114 <<
"shape " << shape << std::endl
115 <<
"aper1 " << aper1 << std::endl
116 <<
"aper2 " << aper2 << std::endl
117 <<
"aper3 " << aper3 << std::endl
118 <<
"aper4 " << aper4 << std::endl
119 <<
"startAnglePhi " << startAnglePhi << std::endl
120 <<
"sweepAnglePhi " << sweepAnglePhi << std::endl
121 <<
"startAngleTheta " << startAngleTheta << std::endl
122 <<
"sweepAngleTheta " << sweepAngleTheta << std::endl
125 {std::cout << v <<
", ";}
126 std::cout <<
"}" << std::endl
void publish(const std::string &name, T C::*mp)
Make pointer to member from class C and type T with accessible with a name.
int referenceElementNumber
Index of repetition of element if there are multiple uses.
double phi
Euler angle for rotation.
std::string name
Name of this samplerplacement.
std::string referenceElement
Name of reference element w.r.t. to place to.
void PublishMembers()
publish members
std::string samplerType
Plane, Cylinder, Sphere.
SamplerPlacement()
constructor
std::list< double > partID
List of PDG IDs of which particles to record for - default is empty, so all particles.
void print() const
print some properties
double theta
Euler angle for rotation.
double s
Curvilinear s position to place w.r.t..
double psi
Euler angle for rotation.
bool axisAngle
Flag to use the axis angle construction of rotation.
int partIDSetID
The unique ID of the particle set given by the parser.
Parser namespace for GMAD language. Combination of Geant4 and MAD.