1 #ifndef _atm_VZoneSlice_h_
2 #define _atm_VZoneSlice_h_
4 #include <det/VManager.h>
5 #include <det/Detector.h>
6 #include <utl/AugerException.h>
39 const std::string& zoneSliceId,
40 const std::string& headerZoneIdString,
41 const double minHeight,
const double maxHeight) :
66 const std::string& property,
67 const std::string& component,
68 const std::string& errorMsg)
73 requestedData =
new T;
82 det::Detector::GetInstance().GetAManagerRegister();
85 manager.
GetData(*requestedData, property, component, indexMap);
91 requestedData =
nullptr;
108 const std::string& zoneTable,
109 const std::string& foreignKey,
110 const std::string& lambdaTable,
111 const std::string& column,
112 const std::string& errorMsg)
117 requestedData =
new T;
126 det::Detector::GetInstance().GetAManagerRegister();
128 std::string lambdaIdString;
130 manager.
GetData(lambdaIdString, zoneTable, foreignKey, indexMap1);
133 { lambdaTable +
"_id", lambdaIdString }
137 manager.
GetData(*requestedData, lambdaTable, column, indexMap2);
142 delete requestedData;
143 requestedData =
nullptr;
void GetSliceData(T *&requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const
std::string fZoneSliceIdString
void GetLambdaSliceData(T *&requestedData, const std::string &zoneTable, const std::string &foreignKey, const std::string &lambdaTable, const std::string &column, const std::string &errorMsg) const
double GetMinHeight() const
Height of the bottom of the slice.
Interface for detector managers.
virtual Status GetData(double &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0
Exception to use in case requested data not found in the database with detailed printout.
double GetMaxHeight() const
Height of the top of the slice.
Base class for AttSlice and PFSlice.
std::map< std::string, std::string > IndexMap
VZoneSlice(const std::string &headerDBName, const std::string &zoneSliceId, const std::string &headerZoneIdString, const double minHeight, const double maxHeight)
std::string fHeaderZoneIdString
Status
Specifies success or (eventually) various possible failure modes.
std::string fHeaderDBName