1 #include <fdet/MirrorSegment.h>
3 #include <det/Detector.h>
4 #include <det/VManager.h>
6 #include <utl/TabulatedFunction.h>
7 #include <utl/ErrorLogger.h>
17 MirrorSegment::MirrorSegment() :
18 fRadiusOfCurvature(0),
48 const std::string& property,
49 const std::string& component,
50 const std::string& errorMsg)
54 requestedData =
new T;
57 return *requestedData;
65 const std::string& property,
66 const std::string& component,
67 const std::string& errorMsg)
70 const VManager& manager = Detector::GetInstance().GetFManagerRegister();
80 if (foundFlag == VManager::eNotFound) {
82 err <<
"Did not find requested component: '" << errorMsg;
Base class for exceptions trying to access non-existing components.
Interface for detector managers.
virtual Status GetData(double &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0
std::map< std::string, std::string > IndexMap
utl::TabulatedFunction * fReflectivity
double * fRadiusOfCurvature
#define ERROR(message)
Macro for logging error messages.
Status
Specifies success or (eventually) various possible failure modes.
const T & GetMirrorSegmentData(T *&requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const