5#ifndef INDETPHYSVALMONITORING_INDETPLOTBASE
6#define INDETPHYSVALMONITORING_INDETPLOTBASE
14#include "GaudiKernel/ServiceHandle.h"
21#define IDPVM_BOOK(name) mBook(name, #name)
41 std::string_view folder =
"default",
42 std::string_view nameOverride=
"");
49 template <
class Htype>
void book (Htype* & pHisto,
50 std::string_view histoIdentifier,
51 std::string_view nameOverride=
"",
52 std::string_view folder =
"default");
66 static void fillHisto(TProfile* pTprofile,
const float bin,
const float weight,
const float weight2=1.0);
67 static void fillHisto(TProfile2D* pTprofile,
const float xval,
const float yval,
const float weight,
const float weight2=1.0);
69 static void fillHisto(TH1* pTh1,
const float value);
70 static void fillHisto(TH1* pTh1,
const float value,
const float weight);
72 static void fillHisto(TH2* pTh2,
const float xval,
const float yval);
73 static void fillHisto(TH2* pTh2,
const float xval,
const float yval,
const float weight);
75 static void fillHisto(TH3* pTh3,
const float xval,
const float yval,
const float zval);
77 static void fillHisto(TEfficiency* pTeff,
const float value,
const bool accepted,
float weight);
78 static void fillHisto(TEfficiency* eff2d,
const float xvalue,
const float yvalue,
const bool accepted,
const float weight);
84 mBook(T& pHisto,
const std::string& histoIdentifier) {
85 return book(pHisto, histoIdentifier.substr(2));
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Interface class to get the histogram definition for a named histogram in a given directory.
static void fillHisto(TProfile *pTprofile, const float bin, const float weight, const float weight2=1.0)
ServiceHandle< IHistogramDefinitionSvc > m_histoDefSvc
void mBook(T &pHisto, const std::string &histoIdentifier)
book, for use by macro
SingleHistogramDefinition retrieveDefinition(std::string_view histoIdentifier, std::string_view folder="default", std::string_view nameOverride="")
Retrieve a single histogram definition, given the unique string identifier.
InDetPlotBase(InDetPlotBase *pParent, const std::string &dirName)
Constructor taking parent node and directory name for plots.
void book(Htype *&pHisto, std::string_view histoIdentifier, std::string_view nameOverride="", std::string_view folder="default")
Helper method to book histograms using an identifier string.
PlotBase(PlotBase *parent, std::string_view sDir)
Almost-a-struct for holding the single histogram definition.