41 EGS_AngularSpreadSource::EGS_AngularSpreadSource(
EGS_Input *input,
50 int err = input->
getInput(
"source name",sname);
52 egsWarning(
"EGS_AngularSpreadSource: missing/wrong inline source "
53 "definition and missing wrong 'source name' input\n");
56 if (!source)
egsWarning(
"EGS_AngularSpreadSource: a source named %s"
60 int err = input->
getInput(
"sigma",sigma);
63 sigma = -0.4246609001440095285*sigma;
71 void EGS_AngularSpreadSource::setUp() {
72 otype =
"EGS_AngularSpreadSource";
87 createSourceTemplate<EGS_AngularSpreadSource>(input,f,
"angular spread source");
static EGS_BaseSource * createSource(EGS_Input *)
Create sources from the information pointed to by input.
const char * getSourceDescription() const
Get a short description of this source.
An angular spread source: header.
int ref()
Increase the reference count to this object.
static EGS_BaseSource * getSource(const string &Name)
Get a pointer to the source named Name.
Attempts to fix broken math header files.
EGS_BaseSource * source
The source being transformed.
string otype
The object type.
Base source class. All particle sources must be derived from this class.
string description
A short source description.
EGS_InfoFunction EGS_EXPORT egsWarning
Always use this function for reporting warnings.