#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 22 of file TH1Store.h.
typedef SSMap::const_iterator TH1Store::SSMapConstIter |
Definition at line 24 of file TH1Store.h.
typedef std::map<std::string, TH1 *> TH1Store::STH1PtrMap |
Definition at line 23 of file TH1Store.h.
typedef STH1PtrMap::const_iterator TH1Store::STH1PtrMapConstIter |
Definition at line 26 of file TH1Store.h.
typedef STH1PtrMap::iterator TH1Store::STH1PtrMapIter |
Definition at line 25 of file TH1Store.h.
typedef std::vector<std::string> TH1Store::SVec |
Definition at line 21 of file TH1Store.h.
TH1Store::TH1Store | ( | ) |
Definition at line 20 of file TH1Store.cc.
TH1Store::~TH1Store | ( | ) |
|
private |
Definition at line 95 of file TH1Store.cc.
References TrackerOfflineValidation_Dqm_cff::dirName, and oniaPATMuonsWithTrigger_cff::matches.
Referenced by write().
void TH1Store::add | ( | TH1 * | histPtr, |
const std::string & | directory = "" |
||
) |
Definition at line 30 of file TH1Store.cc.
References cms::cuda::assert(), DMR_cfg::cerr, gather_cfg::cout, createBeamHaloJobs::directory, m_nameDirMap, m_ptrMap, Skims_PA_cff::name, and sm_verbose.
Referenced by fwlite::EventContainer::add(), and counter.Counter::register().
TH1* TH1Store::hist | ( | const std::string & | name | ) |
|
inline |
Definition at line 64 of file TH1Store.h.
References hist(), Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by hist().
|
inline |
Definition at line 65 of file TH1Store.h.
References hist(), and Skims_PA_cff::name.
Referenced by hist().
|
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 68 of file TH1Store.cc.
References _createDir(), gather_cfg::cout, DeadROC_duringRun::dir, m_nameDirMap, and m_ptrMap.
|
friend |
|
static |
Definition at line 28 of file TH1Store.h.
|
private |
Definition at line 93 of file TH1Store.h.
Referenced by setDeleteOnDestruction(), and ~TH1Store().
|
private |
Definition at line 95 of file TH1Store.h.
|
private |
Definition at line 94 of file TH1Store.h.
Referenced by add(), write(), and ~TH1Store().
|
staticprivate |
Definition at line 101 of file TH1Store.h.
Referenced by add(), and setVerbose().