|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INDETPHYSVALMONITORING_INDETPLOTBASE
6 #define INDETPHYSVALMONITORING_INDETPLOTBASE
14 #include "GaudiKernel/ServiceHandle.h"
20 #define IDPVM_BOOK(name) mBook(name, #name)
40 const std::string&
folder =
"default",
41 const std::string& nameOverride=
"");
48 template <
class Htype>
void book (Htype* & pHisto,
49 const std::string& histoIdentifier,
50 const std::string & nameOverride=
"",
51 const std::string&
folder =
"default");
66 static void fillHisto(TProfile2D* pTprofile,
const float xval,
const float yval,
const float weight,
const float weight2=1.0);
74 static void fillHisto(TH3* pTh3,
const float xval,
const float yval,
const float zval);
77 static void fillHisto(TEfficiency* eff2d,
const float xvalue,
const float yvalue,
const bool accepted,
const float weight);
83 mBook(
T& pHisto,
const std::string& histoIdentifier) {
84 return book(pHisto, histoIdentifier.substr(2));
92 #include "InDetPlotBase.ixx"
void book(Htype *&pHisto, const std::string &histoIdentifier, const std::string &nameOverride="", const std::string &folder="default")
Helper method to book histograms using an identifier string.
Mixin class to give extra capabilities to plots such as ATH_MSG and an easier booking interface,...
def TProfile(*args, **kwargs)
Class to provide easy MsgStream access and capabilities.
Almost-a-struct for holding the single histogram definition.
ServiceHandle< IHistogramDefinitionSvc > m_histoDefSvc
InDetPlotBase(InDetPlotBase *pParent, const std::string &dirName)
Constructor taking parent node and directory name for plots.
void mBook(T &pHisto, const std::string &histoIdentifier)
book, for use by macro
static void fillHisto(TProfile *pTprofile, const float bin, const float weight, const float weight2=1.0)
SingleHistogramDefinition retrieveDefinition(const std::string &histoIdentifier, const std::string &folder="default", const std::string &nameOverride="")
Retrieve a single histogram definition, given the unique string identifier.
Interface class to get the histogram definition for a named histogram in a given directory.