![]() |
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 by the derived classes to fill the internal configuration. | |
| TH1 * | bookGetPointer (const TH1 &hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | bookGetPointer (TH1 *hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | bookGetPointer (TH1 &histRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (const TH1 &hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (TH1 *hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (TH1 &histRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | hist (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered histograms of any type. | |
| TH2 * | hist2d (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered 2-d histograms. | |
| TH3 * | hist3d (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered 3-d histograms. | |
| TTree * | bookGetPointer (const TTree &treeRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of TTrees. | |
| StatusCode | book (const TTree &treeRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TTrees. | |
| TTree * | tree (const std::string &treeName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered TTrees. | |
| TGraph * | bookGetPointer (const TGraph &graphRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of TGraphs. | |
| StatusCode | book (const TGraph &graphRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TGraphs. | |
| TGraph * | graph (const std::string &graphName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered TGraphs. | |
| TEfficiency * | bookGetPointer (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | bookGetPointer (TEfficiency *eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | bookGetPointer (TEfficiency &effRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (TEfficiency *eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (TEfficiency &effRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | efficiency (const std::string &effName, const std::string &tDir="", const std::string &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 | |
| void | buildBookingString (std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false) |
| Method to build individual booking string. | |
| void | myReplace (std::string &str, const std::string &oldStr, const std::string &newStr) |
| Helper method to replace sub-string. | |
| hash_t | hash (const std::string &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 207 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 221 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 200 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 214 of file AthHistogramming.h.
| AthHistogramming::AthHistogramming | ( | const std::string & | name | ) |
Constructor with parameters:
Definition at line 26 of file AthHistogramming.cxx.
|
virtual |
Destructor:
Definition at line 39 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 337 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 305 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 405 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 358 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 348 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 326 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 283 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of TGraphs.
Definition at line 412 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 262 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 297 of file AthHistogramming.cxx.
|
protected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 131 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 295 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 83 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 274 of file AthHistogramming.h.
|
private |
Method to build individual booking string.
Definition at line 545 of file AthHistogramming.cxx.
|
protected |
To be called by the derived classes to fill the internal configuration.
Definition at line 51 of file AthHistogramming.cxx.
|
protected |
Simplify the retrieval of registered TEfficiency.
Definition at line 235 of file AthHistogramming.cxx.
|
protected |
Simplify the retrieval of registered TGraphs.
Definition at line 477 of file AthHistogramming.cxx.
|
inlineprivate |
Method to calculate a 32-bit hash from a string.
Definition at line 430 of file AthHistogramming.h.
|
protected |
Simplify the retrieval of registered histograms of any type.
Definition at line 183 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the retrieval of registered 2-d histograms.
Definition at line 371 of file AthHistogramming.h.
|
inlineprotected |
Simplify the retrieval of registered 3-d histograms.
Definition at line 388 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 423 of file AthHistogramming.h.
|
private |
Helper method to replace sub-string.
Definition at line 575 of file AthHistogramming.cxx.
|
protected |
Simplify the retrieval of registered TTrees.
Definition at line 363 of file AthHistogramming.cxx.
|
private |
The map of histogram names to their pointers.
Definition at line 210 of file AthHistogramming.h.
|
private |
The map of TGraph names to their pointers.
Definition at line 224 of file AthHistogramming.h.
|
private |
The map of histogram names to their pointers.
Definition at line 203 of file AthHistogramming.h.
|
private |
The postfix for the histogram THx name.
Definition at line 237 of file AthHistogramming.h.
|
private |
The prefix for the histogram THx name.
Definition at line 234 of file AthHistogramming.h.
|
private |
Pointer to the THistSvc (event store by default).
Definition at line 196 of file AthHistogramming.h.
|
private |
The postfix for the histogram THx title.
Definition at line 243 of file AthHistogramming.h.
|
private |
The prefix for the histogram THx title.
Definition at line 240 of file AthHistogramming.h.
|
private |
Cached Message Stream.
Definition at line 250 of file AthHistogramming.h.
|
private |
Instance name.
Definition at line 247 of file AthHistogramming.h.
|
private |
Definition at line 231 of file AthHistogramming.h.
|
private |
Name of the ROOT output stream (file).
Definition at line 228 of file AthHistogramming.h.
|
private |
The map of TTree names to their pointers.
Definition at line 217 of file AthHistogramming.h.