|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/Bootstrap.h"
9 #include "GaudiKernel/ISvcLocator.h"
10 #include "GaudiKernel/Service.h"
11 #include "GaudiKernel/IToolSvc.h"
20 validArguments(
const float arg) {
21 return not (std::isnan(
arg));
25 validArguments(
const float arg1,
const float arg2) {
26 return not (std::isnan(arg1) or std::isnan(arg2));
30 validArguments(
const float arg1,
const float arg2,
const float arg3) {
31 return not (std::isnan(arg1) or std::isnan(arg2) or std::isnan(arg3));
39 m_histoDefSvc(
"HistogramDefinitionSvc",
"TCCPlots") {}
45 ATH_MSG_WARNING(
"Histogram definition is empty for identifier " << histoIdentifier);
61 ATH_MSG_WARNING(
"Histogram definition is empty for identifier " << histoIdentifier);
78 ATH_MSG_WARNING(
"Histogram definition is empty for identifier " << histoIdentifier);
95 if (pTh1 and validArguments(
value)) {
101 if (pTh1 and validArguments(
value)) {
108 if (pTh2 and validArguments(
xval,
yval)) {
114 if (pTh2 and validArguments(
xval,
yval)) {
121 if (pTh3 and validArguments(
xval,
yval, zval)) {
127 if (pTh3 and validArguments(
xval,
yval, zval)) {
135 ATH_MSG_DEBUG(
"Retrieving SingleHistogramDefinition for "<< histoIdentifier);
138 bool folderDefault = (
folder.empty() or
folder ==
"default");
141 if (folderDefault and
s.empty()) {
142 const std::string otherDefault = (
folder.empty()) ? (
"default") :
"";
146 ATH_MSG_WARNING(
"Histogram definition is empty for identifier " << histoIdentifier);
TH2F * Book2D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2F histogram.
ServiceHandle< IHistogramDefinitionSvc > m_histoDefSvc
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
IHistogramDefinitionSvc::axesLimits_t xAxis
static void fillHisto(TH1 *pTh1, const float value)
SingleHistogramDefinition retrieveDefinition(const std::string &histoIdentifier, const std::string &folder="default")
Retrieve a single histogram definition, given the unique string identifier.
Class to provide easy MsgStream access and capabilities.
TH3F * Book3D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, int nBinsZ, float startZ, float endZ, bool prependDir=true)
Book a TH3F histogram.
Almost-a-struct for holding the single histogram definition.
TCCPlotsBase(PlotBase *pParent, const std::string &folder)
#define ATH_MSG_WARNING(x)
IHistogramDefinitionSvc::axesLimits_t yAxis
bool isValid() const
Is the histogram definition valid.
IHistogramDefinitionSvc::axesLimits_t zAxis
bool empty() const
Is the histogram definition empty?
void book(TH1 *&pHisto, const SingleHistogramDefinition &hd)
Book a TH1 histogram.