58 void set_value(std::string property, T value);
69 std::cout <<
"modulator> setting value " << std::setw(25) << std::left <<
property << value << std::endl;
73 {
set(
this,property,value);}
74 catch(
const std::runtime_error&)
76 std::cerr <<
"Error: modulator> unknown parameter \"" <<
property <<
"\" with value " << value << std::endl;
Modulator class for parser.
double tOffset
time offset used for phase calculation (ns) for modulator on top of rf cavity
double amplitudeOffset
numerical value added to -1 -> 1 modulator as offset
void print() const
Print some properties.
double frequency
frequency of modulation on top of rf cavity in Hz
void PublishMembers()
publish members
double amplitudeScale
multiplier for amplitude of modulation
double phase
phase of modulation oscillator on top of rf cavity
void set_value(std::string property, T value)
Set methods by property name and value.
Class that provides introspection to its members.
void set(Modulator *instance, const std::string &name, double value)
Parser namespace for GMAD language. Combination of Geant4 and MAD.