|
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{} {
27 declareProperty(
"DefinitionSource", m_source);
28 declareProperty(
"DefinitionFormat", m_formatString =
"text/plain");
42 ATH_MSG_ERROR(
"Unknown format for the input to the hdef service");
43 return StatusCode::FAILURE;
49 ATH_MSG_FATAL(
"Text format histogram definition files are deprecated.");
50 return StatusCode::FAILURE;
63 if (not
h.second.isValid()) {
68 if (ok and(not allDefsOk)) {
70 return StatusCode::RECOVERABLE;
73 ATH_MSG_ERROR(
"The definition reader failed to read the histogram definitions.");
74 return StatusCode::FAILURE;
76 return StatusCode::SUCCESS;
82 return StatusCode::SUCCESS;
91 result = pthisHistoPair->second;
102 result = pthisHistoPair->second.histoType;
113 result = pthisHistoPair->second.title;
120 unsigned int nbins(0);
124 nbins = pthisHistoPair->second.nBinsX;
131 unsigned int nbins(0);
135 nbins = pthisHistoPair->second.nBinsY;
142 unsigned int nbins(0);
146 nbins = pthisHistoPair->second.nBinsZ;
153 axesLimits_t
result(invalidLimits);
157 result = pthisHistoPair->second.xAxis;
164 axesLimits_t
result(invalidLimits);
168 result = pthisHistoPair->second.yAxis;
175 axesLimits_t
result(invalidLimits);
179 result = pthisHistoPair->second.zAxis;
190 result = pthisHistoPair->second.xTitle;
200 result = pthisHistoPair->second.yTitle;
210 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