|
ATLAS Offline Software
|
Go to the documentation of this file.
18 const std::pair<float, float> invalidLimits = std::make_pair(
19 std::numeric_limits<float>::quiet_NaN(), std::numeric_limits<float>::quiet_NaN());
20 const std::string defaultFormat(
"text/plain");
21 const std::string xmlFormat(
"text/xml");
26 base_class(
name, pSvcLocator), m_format{
UNKNOWN}, m_reader{} {}
39 ATH_MSG_ERROR(
"Unknown format for the input to the hdef service");
40 return StatusCode::FAILURE;
46 ATH_MSG_FATAL(
"Text format histogram definition files are deprecated.");
47 return StatusCode::FAILURE;
60 if (not
h.second.isValid()) {
65 if (ok and(not allDefsOk)) {
67 return StatusCode::RECOVERABLE;
70 ATH_MSG_ERROR(
"The definition reader failed to read the histogram definitions.");
71 return StatusCode::FAILURE;
73 return StatusCode::SUCCESS;
79 return StatusCode::SUCCESS;
88 result = pthisHistoPair->second;
99 result = pthisHistoPair->second.histoType;
110 result = pthisHistoPair->second.title;
117 unsigned int nbins(0);
121 nbins = pthisHistoPair->second.nBinsX;
128 unsigned int nbins(0);
132 nbins = pthisHistoPair->second.nBinsY;
139 unsigned int nbins(0);
143 nbins = pthisHistoPair->second.nBinsZ;
150 axesLimits_t
result(invalidLimits);
154 result = pthisHistoPair->second.xAxis;
161 axesLimits_t
result(invalidLimits);
165 result = pthisHistoPair->second.yAxis;
172 axesLimits_t
result(invalidLimits);
176 result = pthisHistoPair->second.zAxis;
187 result = pthisHistoPair->second.xTitle;
197 result = pthisHistoPair->second.yTitle;
207 result = pthisHistoPair->second.zTitle;
std::string title(const std::string &name, const std::string &dirName="") const final
std::string stringIndex() const
add the folder path to produce the full histogram name e.g. myFolder/myHisto
std::pair< float, float > axesLimits_t
typedef for axes limits, (lower bound, upper bound)
IHistogramDefinitionSvc::axesLimits_t xLimits(const std::string &name, const std::string &dirName="") const final
std::string zTitle(const std::string &name, const std::string &dirName="") const final
virtual StatusCode finalize()
std::string yTitle(const std::string &name, const std::string &dirName="") const final
std::map< std::string, SingleHistogramDefinition > m_histoDefMap
HistogramDefinitionSvc(const std::string &name, ISvcLocator *svc)
virtual StatusCode initialize()
unsigned int nBinsY(const std::string &name, const std::string &dirName="") const final
::StatusCode StatusCode
StatusCode definition for legacy code.
IHistogramDefinitionSvc::axesLimits_t zLimits(const std::string &name, const std::string &dirName="") const final
IHistogramDefinitionSvc::Formats m_format
Almost-a-struct for holding the single histogram definition.
unsigned int nBinsZ(const std::string &name, const std::string &dirName="") const final
unsigned int nBinsX(const std::string &name, const std::string &dirName="") const final
virtual ~HistogramDefinitionSvc()
StringProperty m_formatString
#define ATH_MSG_WARNING(x)
std::string histoType(const std::string &name, const std::string &dirName="") const final
SingleHistogramDefinition definition(const std::string &name, const std::string &dirName="") const final
std::string xTitle(const std::string &name, const std::string &dirName="") const final
IHistogramDefinitionSvc::axesLimits_t yLimits(const std::string &name, const std::string &dirName="") const final
std::unique_ptr< IReadHistoDef > m_reader