![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
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");
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;
157 result = pthisHistoPair->second.xAxis;
168 result = pthisHistoPair->second.yAxis;
179 result = pthisHistoPair->second.zAxis;
190 result = pthisHistoPair->second.xTitle;
200 result = pthisHistoPair->second.yTitle;
210 result = pthisHistoPair->second.zTitle;
227 if (IIncidentListener::interfaceID().versionMatch(riid)) {
228 *ppvInterface =
dynamic_cast<IIncidentListener*
>(
this);
233 return AthService::queryInterface(riid, ppvInterface);
236 return StatusCode::SUCCESS;
std::string title(const std::string &name, const std::string &dirName="") const final
Return Histogram title by histogram identifier (and directory name, if supplied)
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
Return x axes (lo,hi) by histogram identifier (and directory name, if supplied)
std::string zTitle(const std::string &name, const std::string &dirName="") const final
Return z-axis title by histogram identifier (and directory name, if supplied)
virtual StatusCode finalize()
std::string yTitle(const std::string &name, const std::string &dirName="") const final
Return y-axis title by histogram identifier (and directory name, if supplied)
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
Return number of y bins by histogram identifier (and directory name, if supplied); default returns 0 ...
::StatusCode StatusCode
StatusCode definition for legacy code.
IHistogramDefinitionSvc::axesLimits_t zLimits(const std::string &name, const std::string &dirName="") const final
Return z axes (lo,hi) by histogram identifier (and directory name, if supplied)
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
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
Return number of z bins by histogram identifier (and directory name, if supplied); default returns 0 ...
unsigned int nBinsX(const std::string &name, const std::string &dirName="") const final
Return number of x bins by histogram identifier (and directory name, if supplied)
virtual ~HistogramDefinitionSvc()
StringProperty m_formatString
#define ATH_MSG_WARNING(x)
static const InterfaceID & interfaceID()
reimplemented from IInterface
std::string histoType(const std::string &name, const std::string &dirName="") const final
Return Histogram type (TH1, TH2 etc) by histogram identifier (and directory name, if supplied)
SingleHistogramDefinition definition(const std::string &name, const std::string &dirName="") const final
Return a histogram definition, retrieved by histogram identifier (and directory name,...
std::string xTitle(const std::string &name, const std::string &dirName="") const final
Return x-axis title by histogram identifier (and directory name, if supplied)
IHistogramDefinitionSvc::axesLimits_t yLimits(const std::string &name, const std::string &dirName="") const final
Return y axes (lo,hi) by histogram identifier (and directory name, if supplied). Default returns (nan...
Interface class to get the histogram definition for a named histogram in a given directory.
std::unique_ptr< IReadHistoDef > m_reader