1 #include <boost/lambda/lambda.hpp>
4 #include <fwk/CentralConfig.h>
5 #include <utl/ErrorLogger.h>
6 #include <utl/Reader.h>
7 #include <utl/AugerException.h>
9 using namespace TelescopeSimulatorLX;
13 using namespace boost::lambda;
19 FindConfig(configLink);
21 fIsInitialized =
true;
30 warn <<
"Attempt to initialize an already initialized manager: " << configLink;
35 fBranch = CentralConfig::GetInstance()->GetTopBranch(configLink);
39 err <<
'\'' << configLink <<
"' manager requested in the manager configuration but "
40 "the bootstrap file does not specify a configuration file for it.";
51 const string& componentProperty,
52 const string& componentName)
57 FindBranch(componentProperty, componentName);
68 vector<double> abscissaVector;
69 abscissaBranch.
GetData(abscissaVector);
74 vector<double> ordinateVector;
75 ordinateBranch.
GetData(ordinateVector);
82 for_each(ordinateVector.begin(), ordinateVector.end(), _1 *= scaleY);
85 for (
unsigned int i = 0; i < abscissaVector.size(); ++i)
86 tabulatedReturnData.
PushBack(abscissaVector[i], ordinateVector[i]);
96 const string& componentName)
Class to hold collection (x,y) points and provide interpolation between them.
void PushBack(const double x, const double y)
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
Exception for errors encountered when parsing XML.
Class representing a document branch.
Status GetData(T &returnData, const std::string &componentProperty, const std::string &componentName) const
Return data as a TabulatedFunction.
#define WARNING(message)
Macro for logging warning messages.
void GetData(bool &b) const
Overloads of the GetData member template function.
utl::Branch FindBranch(const std::string &property, const std::string &component) const
void FindConfig(const std::string &configLink)
Locate the configuration file in CentralConfig and make a Reader for it.
void Init(const std::string &configLink)
#define ERROR(message)
Macro for logging error messages.