#include <TH1Store.h>
Public Types | |
typedef std::map< std::string, std::string > | SSMap |
typedef SSMap::const_iterator | SSMapConstIter |
typedef std::map< std::string, TH1 * > | STH1PtrMap |
typedef STH1PtrMap::const_iterator | STH1PtrMapConstIter |
typedef STH1PtrMap::iterator | STH1PtrMapIter |
typedef std::vector< std::string > | SVec |
Public Member Functions | |
void | add (TH1 *histPtr, const std::string &directory="") |
TH1 * | hist (const std::string &name) |
TH1 * | hist (const char *name) |
TH1 * | hist (const TString &name) |
void | setDeleteOnDestruction (bool deleteOnDestruction=true) |
TH1Store () | |
void | write (const std::string &filename, const SVec &argsVec=kEmptyVec, const SVec &inputFilesVec=kEmptyVec) const |
void | write (TFile *filePtr, const SVec &argsVec=kEmptyVec, const SVec &inputFilesVec=kEmptyVec) const |
~TH1Store () | |
Static Public Member Functions | |
static void | setVerbose (bool verbose=true) |
Static Public Attributes | |
static const SVec | kEmptyVec |
Private Member Functions | |
TDirectory * | _createDir (const std::string &dirname, TFile *filePtr) const |
Private Attributes | |
bool | m_deleteOnDestruction |
SSMap | m_nameDirMap |
STH1PtrMap | m_ptrMap |
Static Private Attributes | |
static bool | sm_verbose = false |
Friends | |
std::ostream & | operator<< (std::ostream &o_stream, const TH1Store &rhs) |
Definition at line 15 of file TH1Store.h.
typedef std::map< std::string, std::string > TH1Store::SSMap |
Definition at line 24 of file TH1Store.h.
typedef SSMap::const_iterator TH1Store::SSMapConstIter |
Definition at line 26 of file TH1Store.h.
typedef std::map< std::string, TH1* > TH1Store::STH1PtrMap |
Definition at line 25 of file TH1Store.h.
typedef STH1PtrMap::const_iterator TH1Store::STH1PtrMapConstIter |
Definition at line 28 of file TH1Store.h.
typedef STH1PtrMap::iterator TH1Store::STH1PtrMapIter |
Definition at line 27 of file TH1Store.h.
typedef std::vector< std::string > TH1Store::SVec |
Definition at line 23 of file TH1Store.h.
TH1Store::TH1Store | ( | ) |
Definition at line 21 of file TH1Store.cc.
TH1Store::~TH1Store | ( | ) |
|
private |
Definition at line 131 of file TH1Store.cc.
References TrackerOfflineValidation_Dqm_cff::dirName, and matches.
Referenced by write().
void TH1Store::add | ( | TH1 * | histPtr, |
const std::string & | directory = "" |
||
) |
Definition at line 39 of file TH1Store.cc.
References assert(), ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, createBeamHaloJobs::directory, m_nameDirMap, m_ptrMap, mergeVDriftHistosByStation::name, and sm_verbose.
Referenced by fwlite::EventContainer::add(), and counter.Counter::register().
TH1* TH1Store::hist | ( | const std::string & | name | ) |
Referenced by hist().
|
inline |
Definition at line 68 of file TH1Store.h.
References hist(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
inline |
|
inlinestatic |
void TH1Store::write | ( | const std::string & | filename, |
const SVec & | argsVec = kEmptyVec , |
||
const SVec & | inputFilesVec = kEmptyVec |
||
) | const |
Referenced by fwlite::EventContainer::~EventContainer().
void TH1Store::write | ( | TFile * | filePtr, |
const SVec & | argsVec = kEmptyVec , |
||
const SVec & | inputFilesVec = kEmptyVec |
||
) | const |
Definition at line 93 of file TH1Store.cc.
References _createDir(), gather_cfg::cout, dir, m_nameDirMap, and m_ptrMap.
|
friend |
|
static |
Definition at line 30 of file TH1Store.h.
|
private |
Definition at line 105 of file TH1Store.h.
Referenced by setDeleteOnDestruction(), and ~TH1Store().
|
private |
Definition at line 107 of file TH1Store.h.
|
private |
Definition at line 106 of file TH1Store.h.
Referenced by add(), write(), and ~TH1Store().
|
staticprivate |
Definition at line 113 of file TH1Store.h.
Referenced by add(), and setVerbose().