10 #include <utl/TabulatedFunction.h>
11 #include <utl/Reader.h>
12 #include <utl/ErrorLogger.h>
13 #include <utl/MathConstants.h>
14 #include <utl/Vector.h>
15 #include <utl/PhysicalConstants.h>
16 #include <utl/Transformation.h>
17 #include <utl/TabulatedFunctionErrors.h>
18 #include <atm/ConstantFluorescenceModel.h>
19 #include <fwk/CentralConfig.h>
32 CentralConfig::GetInstance()->
GetTopBranch(
"ConstantFluorescenceModel");
38 fSpectrumNormalization = 0.0;
39 for (
unsigned int i = 0; i < fFluorescenceYield.size(); ++i)
40 fSpectrumNormalization += fFluorescenceYield[i];
44 const std::vector<double>&
45 ConstantFluorescenceModel::GetWavelengths()
53 ConstantFluorescenceModel::EvaluateFluorescenceYield(
const double )
57 vector<double> normalizedFY = fFluorescenceYield;
60 for (
int i = 0; i < int(fFluorescenceYield.size()); ++i)
61 total += fFluorescenceYield[i];
63 fFluorescenceSpectrum.
Clear();
65 for (
int i = 0; i < int(normalizedFY.size()); ++i) {
66 normalizedFY[i] *= fTotalLight/total;
67 fFluorescenceSpectrum.PushBack(fWavelength[i], normalizedFY[i]);
70 return fFluorescenceSpectrum;
75 ConstantFluorescenceModel::GetdEdX0()
Branch GetTopBranch() const
Class to hold collection (x,y) points and provide interpolation between them.
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
Class representing a document branch.
void GetData(bool &b) const
Overloads of the GetData member template function.