ATLAS Offline Software
|
#include <AthHistogramming.h>
Public Member Functions | |
AthHistogramming (const std::string &name) | |
Constructor with parameters: More... | |
virtual | ~AthHistogramming () |
Destructor: More... | |
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 . More... | |
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. More... | |
TH1 * | bookGetPointer (const TH1 &hist, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of histograms. More... | |
TH1 * | bookGetPointer (TH1 *hist, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of histograms. More... | |
TH1 * | bookGetPointer (TH1 &histRef, std::string tDir="", std::string stream="") |
Simplify the booking and registering (into THistSvc) of histograms. More... | |
StatusCode | book (const TH1 &hist, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of histograms. More... | |
StatusCode | book (TH1 *hist, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of histograms. More... | |
StatusCode | book (TH1 &histRef, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of histograms. More... | |
TH1 * | hist (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
Simplify the retrieval of registered histograms of any type. More... | |
TH2 * | hist2d (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
Simplify the retrieval of registered 2-d histograms. More... | |
TH3 * | hist3d (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
Simplify the retrieval of registered 3-d histograms. More... | |
TTree * | bookGetPointer (const TTree &treeRef, std::string tDir="", std::string stream="") |
Simplify the booking and registering (into THistSvc) of TTrees. More... | |
StatusCode | book (const TTree &treeRef, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of TTrees. More... | |
TTree * | tree (const std::string &treeName, const std::string &tDir="", const std::string &stream="") |
Simplify the retrieval of registered TTrees. More... | |
TGraph * | bookGetPointer (const TGraph &graphRef, std::string tDir="", std::string stream="") |
Simplify the booking and registering (into THistSvc) of TGraphs. More... | |
StatusCode | book (const TGraph &graphRef, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of TGraphs. More... | |
TGraph * | graph (const std::string &graphName, const std::string &tDir="", const std::string &stream="") |
Simplify the retrieval of registered TGraphs. More... | |
TEfficiency * | bookGetPointer (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of TEfficiency. More... | |
TEfficiency * | bookGetPointer (TEfficiency *eff, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of TEfficiency. More... | |
TEfficiency * | bookGetPointer (TEfficiency &effRef, std::string tDir="", std::string stream="") |
Simplify the booking and registering (into THistSvc) of TEfficiency. More... | |
StatusCode | book (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of TEfficiency. More... | |
StatusCode | book (TEfficiency *eff, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of TEfficiency. More... | |
StatusCode | book (TEfficiency &effRef, const std::string &tDir="", const std::string &stream="") |
Simplify the booking and registering (into THistSvc) of TEfficiency. More... | |
TEfficiency * | efficiency (const std::string &effName, const std::string &tDir="", const std::string &stream="") |
Simplify the retrieval of registered TEfficiency. More... | |
Private Types | |
typedef uint32_t | hash_t |
typedef for the internal hash More... | |
typedef std::map< const hash_t, TH1 * > | HistMap_t |
Typedef for convenience. More... | |
typedef std::map< const hash_t, TEfficiency * > | EffMap_t |
Typedef for convenience. More... | |
typedef std::map< const hash_t, TTree * > | TreeMap_t |
Typedef for convenience. More... | |
typedef std::map< const hash_t, TGraph * > | GraphMap_t |
Typedef for convenience. More... | |
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. More... | |
void | myReplace (std::string &str, const std::string &oldStr, const std::string &newStr) |
Helper method to replace sub-string. More... | |
hash_t | hash (const std::string &histName) const |
Method to calculate a 32-bit hash from a string. More... | |
Private Attributes | |
ServiceHandle< ITHistSvc > | m_histSvc |
Pointer to the THistSvc (event store by default) More... | |
HistMap_t | m_histMap |
The map of histogram names to their pointers. More... | |
EffMap_t | m_effMap |
The map of histogram names to their pointers. More... | |
TreeMap_t | m_treeMap |
The map of TTree names to their pointers. More... | |
GraphMap_t | m_graphMap |
The map of TGraph names to their pointers. More... | |
std::string | m_streamName |
Name of the ROOT output stream (file) More... | |
std::string | m_rootDir |
Name of the ROOT directory. More... | |
std::string | m_histNamePrefix |
The prefix for the histogram THx name. More... | |
std::string | m_histNamePostfix |
The postfix for the histogram THx name. More... | |
std::string | m_histTitlePrefix |
The prefix for the histogram THx title. More... | |
std::string | m_histTitlePostfix |
The postfix for the histogram THx title. More... | |
std::string | m_name |
Instance name. More... | |
MsgStream | m_msg |
Cached Message Stream. More... | |
Definition at line 36 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 205 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 219 of file AthHistogramming.h.
|
private |
typedef for the internal hash
Definition at line 169 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 198 of file AthHistogramming.h.
|
private |
Typedef for convenience.
Definition at line 212 of file AthHistogramming.h.
AthHistogramming::AthHistogramming | ( | const std::string & | name | ) |
|
virtual |
Destructor:
Definition at line 54 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 335 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 303 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 403 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 356 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 346 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 324 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 314 of file AthHistogramming.h.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 281 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of TGraphs.
Definition at line 427 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 260 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 312 of file AthHistogramming.cxx.
|
protected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 146 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 293 of file AthHistogramming.h.
|
protected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 98 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 272 of file AthHistogramming.h.
|
private |
|
protected |
To be called by the derived classes to fill the internal configuration.
Definition at line 66 of file AthHistogramming.cxx.
|
protected |
Simplify the retrieval of registered TEfficiency.
Definition at line 250 of file AthHistogramming.cxx.
|
protected |
Simplify the retrieval of registered TGraphs.
Definition at line 492 of file AthHistogramming.cxx.
|
inlineprivate |
Method to calculate a 32-bit hash from a string.
Definition at line 428 of file AthHistogramming.h.
|
protected |
Simplify the retrieval of registered histograms of any type.
Definition at line 198 of file AthHistogramming.cxx.
|
inlineprotected |
Simplify the retrieval of registered 2-d histograms.
Definition at line 369 of file AthHistogramming.h.
|
inlineprotected |
Simplify the retrieval of registered 3-d histograms.
Definition at line 386 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 421 of file AthHistogramming.h.
|
protected |
Simplify the retrieval of registered TTrees.
Definition at line 378 of file AthHistogramming.cxx.
|
private |
The map of histogram names to their pointers.
Definition at line 208 of file AthHistogramming.h.
|
private |
The map of TGraph names to their pointers.
Definition at line 222 of file AthHistogramming.h.
|
private |
The map of histogram names to their pointers.
Definition at line 201 of file AthHistogramming.h.
|
private |
The postfix for the histogram THx name.
Definition at line 235 of file AthHistogramming.h.
|
private |
The prefix for the histogram THx name.
Definition at line 232 of file AthHistogramming.h.
|
private |
Pointer to the THistSvc (event store by default)
Definition at line 194 of file AthHistogramming.h.
|
private |
The postfix for the histogram THx title.
Definition at line 241 of file AthHistogramming.h.
|
private |
The prefix for the histogram THx title.
Definition at line 238 of file AthHistogramming.h.
|
private |
Cached Message Stream.
Definition at line 248 of file AthHistogramming.h.
|
private |
Instance name.
Definition at line 245 of file AthHistogramming.h.
|
private |
Name of the ROOT directory.
Definition at line 229 of file AthHistogramming.h.
|
private |
Name of the ROOT output stream (file)
Definition at line 226 of file AthHistogramming.h.
|
private |
The map of TTree names to their pointers.
Definition at line 215 of file AthHistogramming.h.