![]() |
ATLAS Offline Software
|
#include <AthHistogramming.h>
Public Member Functions | |
| AthHistogramming (const std::string &name) | |
| Constructor with parameters: | |
| virtual | ~AthHistogramming () |
| Destructor: | |
| const ServiceHandle< ITHistSvc > & | histSvc () const |
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc. | |
Protected Member Functions | |
| StatusCode | configAthHistogramming (const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix) |
| To be called to fill the internal configuration. | |
| TH1 * | bookGetPointer (const TH1 &hist, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | bookGetPointer (TH1 *hist, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | bookGetPointer (TH1 &histRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (const TH1 &hist, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (TH1 *hist, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (TH1 &histRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | hist (std::string_view histName, std::string_view tDir="", std::string_view stream="") |
| Simplify the retrieval of registered histograms of any type. | |
| TH2 * | hist2d (std::string_view histName, std::string_view tDir="", std::string_view stream="") |
| Simplify the retrieval of registered 2-d histograms. | |
| TH3 * | hist3d (std::string_view histName, std::string_view tDir="", std::string_view stream="") |
| Simplify the retrieval of registered 3-d histograms. | |
| TTree * | bookGetPointer (const TTree &treeRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TTrees. | |
| StatusCode | book (const TTree &treeRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TTrees. | |
| TTree * | tree (std::string_view treeName, std::string_view tDir="", std::string_view stream="") |
| Simplify the retrieval of registered TTrees. | |
| TGraph * | bookGetPointer (const TGraph &graphRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TGraphs. | |
| StatusCode | book (const TGraph &graphRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TGraphs. | |
| TGraph * | graph (std::string_view graphName, std::string_view tDir="", std::string_view stream="") |
| Simplify the retrieval of registered TGraphs. | |
| TEfficiency * | bookGetPointer (const TEfficiency &eff, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | bookGetPointer (TEfficiency *eff, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | bookGetPointer (TEfficiency &effRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (const TEfficiency &eff, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (TEfficiency *eff, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (TEfficiency &effRef, std::string_view tDir="", std::string_view stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | efficiency (std::string_view effName, std::string_view tDir="", std::string_view stream="") |
| Simplify the retrieval of registered TEfficiency. | |
Private Types | |
| typedef uint32_t | hash_t |
| typedef for the internal hash | |
| typedef std::map< const hash_t, TH1 * > | HistMap_t |
| Typedef for convenience. | |
| typedef std::map< const hash_t, TEfficiency * > | EffMap_t |
| Typedef for convenience. | |
| typedef std::map< const hash_t, TTree * > | TreeMap_t |
| Typedef for convenience. | |
| typedef std::map< const hash_t, TGraph * > | GraphMap_t |
| Typedef for convenience. | |
Private Member Functions | |
| std::string | buildBookingString (std::string_view histName, std::string_view tDir, std::string_view stream, bool usePrefixPostfix=false) const |
| Method to build individual booking string. | |
| hash_t | hash (std::string_view histName) const |
| Method to calculate a 32-bit hash from a string. | |
Private Attributes | |
| ServiceHandle< ITHistSvc > | m_histSvc |
| Pointer to the THistSvc (event store by default). | |
| HistMap_t | m_histMap |
| The map of histogram names to their pointers. | |
| EffMap_t | m_effMap |
| The map of histogram names to their pointers. | |
| TreeMap_t | m_treeMap |
| The map of TTree names to their pointers. | |
| GraphMap_t | m_graphMap |
| The map of TGraph names to their pointers. | |
| std::string | m_streamName |
| Name of the ROOT output stream (file). | |
| std::string | m_rootDir |
| Name of the ROOT directory. | |
| std::string | m_histNamePrefix |
| The prefix for the histogram THx name. | |
| std::string | m_histNamePostfix |
| The postfix for the histogram THx name. | |
| std::string | m_histTitlePrefix |
| The prefix for the histogram THx title. | |
| std::string | m_histTitlePostfix |
| The postfix for the histogram THx title. | |
| std::string | m_name |
| Instance name. | |
| MsgStream | m_msg |
| Cached Message Stream. | |
Definition at line 38 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 199 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 213 of file AthHistogramming.h.
|
private |
typedef for the internal hash
Definition at line 171 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 192 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 206 of file AthHistogramming.h.
| AthHistogramming::AthHistogramming | ( | const std::string & | name | ) |
Constructor with parameters:
Definition at line 39 of file AthHistogramming.cxx.
|
virtual |
Destructor:
Definition at line 52 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 329 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TGraphs.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 297 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 397 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 350 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 340 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 318 of file AthHistogramming.h.
|
inlineprotected |
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 275 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of TGraphs.
Definition at line 374 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 254 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 268 of file AthHistogramming.cxx.
|
protected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 139 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 287 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 97 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 266 of file AthHistogramming.h.
|
private |
Method to build individual booking string.
Definition at line 500 of file AthHistogramming.cxx.
|
protected |
To be called to fill the internal configuration.
Definition at line 64 of file AthHistogramming.cxx.
|
protected |
Simplify the retrieval of registered TEfficiency.
Definition at line 214 of file AthHistogramming.cxx.
|
protected |
Simplify the retrieval of registered TGraphs.
Definition at line 438 of file AthHistogramming.cxx.
|
inlineprivate |
Method to calculate a 32-bit hash from a string.
Definition at line 422 of file AthHistogramming.h.
|
protected |
Simplify the retrieval of registered histograms of any type.
Definition at line 182 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the retrieval of registered 2-d histograms.
Definition at line 363 of file AthHistogramming.h.
|
inlineprotected |
Simplify the retrieval of registered 3-d histograms.
Definition at line 380 of file AthHistogramming.h.
|
inline |
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc.
Definition at line 415 of file AthHistogramming.h.
|
protected |
Simplify the retrieval of registered TTrees.
Definition at line 333 of file AthHistogramming.cxx.
|
private |
The map of histogram names to their pointers.
Definition at line 202 of file AthHistogramming.h.
|
private |
The map of TGraph names to their pointers.
Definition at line 216 of file AthHistogramming.h.
|
private |
The map of histogram names to their pointers.
Definition at line 195 of file AthHistogramming.h.
|
private |
The postfix for the histogram THx name.
Definition at line 229 of file AthHistogramming.h.
|
private |
The prefix for the histogram THx name.
Definition at line 226 of file AthHistogramming.h.
|
private |
Pointer to the THistSvc (event store by default).
Definition at line 188 of file AthHistogramming.h.
|
private |
The postfix for the histogram THx title.
Definition at line 235 of file AthHistogramming.h.
|
private |
The prefix for the histogram THx title.
Definition at line 232 of file AthHistogramming.h.
|
private |
Cached Message Stream.
Definition at line 242 of file AthHistogramming.h.
|
private |
Instance name.
Definition at line 239 of file AthHistogramming.h.
|
private |
Definition at line 223 of file AthHistogramming.h.
|
private |
Name of the ROOT output stream (file).
Definition at line 220 of file AthHistogramming.h.
|
private |
The map of TTree names to their pointers.
Definition at line 209 of file AthHistogramming.h.