![]() |
The Gaudi Framework
v27r0
|
#include <src/THistSvc/THistSvc.h>
Classes | |
class | GlobalDirectoryRestore |
struct | THistID |
Public Member Functions | |
StatusCode | initialize () override |
StatusCode | reinitialize () override |
StatusCode | finalize () override |
StatusCode | regHist (const std::string &name) override |
StatusCode | regHist (const std::string &name, TH1 *) override |
StatusCode | regHist (const std::string &name, TH2 *) override |
StatusCode | regHist (const std::string &name, TH3 *) override |
StatusCode | getHist (const std::string &name, TH1 *&) const override |
StatusCode | getHist (const std::string &name, TH2 *&) const override |
StatusCode | getHist (const std::string &name, TH3 *&) const override |
StatusCode | regTree (const std::string &name) override |
StatusCode | regTree (const std::string &name, TTree *) override |
StatusCode | getTree (const std::string &name, TTree *&) const override |
StatusCode | regGraph (const std::string &name) override |
StatusCode | regGraph (const std::string &name, TGraph *) override |
StatusCode | getGraph (const std::string &name, TGraph *&) const override |
StatusCode | deReg (TObject *obj) override |
StatusCode | deReg (const std::string &name) override |
std::vector< std::string > | getHists () const override |
std::vector< std::string > | getTrees () const override |
std::vector< std::string > | getGraphs () const override |
StatusCode | getTHists (TDirectory *td, TList &, bool recurse=false) const override |
StatusCode | getTHists (const std::string &name, TList &, bool recurse=false) const override |
StatusCode | getTHists (TDirectory *td, TList &tl, bool recurse=false, bool reg=false) override |
StatusCode | getTHists (const std::string &name, TList &tl, bool recurse=false, bool reg=false) override |
StatusCode | getTTrees (TDirectory *td, TList &, bool recurse=false) const override |
StatusCode | getTTrees (const std::string &name, TList &, bool recurse=false) const override |
StatusCode | getTTrees (TDirectory *td, TList &tl, bool recurse=false, bool reg=false) override |
StatusCode | getTTrees (const std::string &name, TList &tl, bool recurse=false, bool reg=false) override |
bool | exists (const std::string &name) const override |
THistSvc (const std::string &name, ISvcLocator *svc) | |
void | handle (const Incident &) override |
StatusCode | io_reinit () override |
callback method to reinitialize the internal state of the component for I/O purposes (e.g. More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Member Functions | |
~THistSvc () override=default | |
Private Types | |
enum | Mode { READ, WRITE, UPDATE, APPEND, SHARE, INVALID } |
typedef std::map< std::string, THistID > | uidMap |
typedef std::multimap< std::string, THistID > | idMap |
typedef std::map< TObject *, THistID > | objMap |
typedef std::multimap< std::string, std::string > | streamMap |
Private Member Functions | |
template<typename T > | |
StatusCode | regHist_i (T *hist, const std::string &name) |
template<typename T > | |
StatusCode | getHist_i (const std::string &name, T *&hist, bool quiet=false) const |
template<typename T > | |
StatusCode | readHist_i (const std::string &name, T *&hist) const |
StatusCode | readHist (const std::string &name, TH1 *&) const |
StatusCode | readHist (const std::string &name, TH2 *&) const |
StatusCode | readHist (const std::string &name, TH3 *&) const |
StatusCode | readTree (const std::string &name, TTree *&) const |
void | updateFiles () |
StatusCode | write () |
StatusCode | connect (const std::string &) |
TDirectory * | changeDir (const THistSvc::THistID &hid) const |
std::string | dirname (std::string &dir) const |
void | removeDoubleSlash (std::string &) const |
bool | browseTDir (TDirectory *dir) const |
bool | findStream (const std::string &name, std::string &root, std::string &rem, TFile *&file) const |
void | parseString (const std::string &id, std::string &root, std::string &rem) const |
void | setupInputFile (Property &inputfile) |
call-back method to handle input stream property More... | |
void | setupOutputFile (Property &outputfile) |
call-back method to handle output stream property More... | |
void | setupCompressionLevel (Property &cmp) |
void | copyFileLayout (TDirectory *, TDirectory *) |
helper function to recursively copy the layout of a TFile into a new TFile More... | |
void | MergeRootFile (TDirectory *target, TDirectory *source) |
StatusCode | rootOpenAction (FILEMGR_CALLBACK_ARGS) |
StatusCode | rootOpenErrAction (FILEMGR_CALLBACK_ARGS) |
Private Attributes | |
MsgStream | m_log |
StringArrayProperty | m_inputfile |
StringArrayProperty | m_outputfile |
std::vector< std::string > | m_Rstream |
std::vector< std::string > | m_Wstream |
IntegerProperty | m_autoSave |
IntegerProperty | m_autoFlush |
IntegerProperty | m_compressionLevel |
IntegerProperty | m_maxFileSize |
BooleanProperty | m_print |
std::set< std::string > | m_alreadyConnectedInFiles |
list of already connected files. More... | |
std::set< std::string > | m_alreadyConnectedOutFiles |
list of already connected files. More... | |
uidMap | m_uids |
idMap | m_ids |
objMap | m_tobjs |
std::map< std::string, std::pair< TFile *, Mode > > | m_files |
streamMap | m_fileStreams |
std::map< std::string, std::string > | m_sharedFiles |
bool | signaledStop = false |
bool | m_delayConnect = false |
bool | m_okToConnect = false |
std::string | m_curstream |
IIncidentSvc * | p_incSvc = nullptr |
IFileMgr * | p_fileMgr = nullptr |
Additional Inherited Members | |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
Definition at line 26 of file THistSvc.h.
|
private |
Definition at line 195 of file THistSvc.h.
|
private |
Definition at line 196 of file THistSvc.h.
|
private |
Definition at line 197 of file THistSvc.h.
|
private |
Definition at line 194 of file THistSvc.h.
|
private |
Enumerator | |
---|---|
READ | |
WRITE | |
UPDATE | |
APPEND | |
SHARE | |
INVALID |
Definition at line 105 of file THistSvc.h.
THistSvc::THistSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Definition at line 62 of file THistSvc.cpp.
|
overrideprotecteddefault |
|
private |
Definition at line 405 of file THistSvc.cpp.
|
private |
Definition at line 1655 of file THistSvc.cpp.
|
private |
Definition at line 1431 of file THistSvc.cpp.
|
private |
helper function to recursively copy the layout of a TFile into a new TFile
Definition at line 1872 of file THistSvc.cpp.
|
override |
Definition at line 913 of file THistSvc.cpp.
|
override |
Definition at line 958 of file THistSvc.cpp.
|
private |
Definition at line 1684 of file THistSvc.cpp.
|
override |
Definition at line 1806 of file THistSvc.cpp.
|
override |
Definition at line 241 of file THistSvc.cpp.
|
private |
Definition at line 1161 of file THistSvc.cpp.
|
override |
Definition at line 1111 of file THistSvc.cpp.
|
override |
Definition at line 1118 of file THistSvc.cpp.
|
override |
Definition at line 1052 of file THistSvc.cpp.
|
override |
Definition at line 1059 of file THistSvc.cpp.
|
override |
Definition at line 1066 of file THistSvc.cpp.
|
private |
Definition at line 142 of file THistSvc.icc.
|
override |
Definition at line 1073 of file THistSvc.cpp.
|
override |
Definition at line 451 of file THistSvc.cpp.
|
override |
Definition at line 506 of file THistSvc.cpp.
|
override |
Definition at line 659 of file THistSvc.cpp.
|
override |
Definition at line 733 of file THistSvc.cpp.
|
override |
Definition at line 1088 of file THistSvc.cpp.
|
override |
Definition at line 1095 of file THistSvc.cpp.
|
override |
Definition at line 559 of file THistSvc.cpp.
|
override |
Definition at line 612 of file THistSvc.cpp.
|
override |
Definition at line 790 of file THistSvc.cpp.
|
override |
Definition at line 864 of file THistSvc.cpp.
|
override |
Definition at line 1816 of file THistSvc.cpp.
|
override |
Definition at line 78 of file THistSvc.cpp.
|
override |
callback method to reinitialize the internal state of the component for I/O purposes (e.g.
upon fork(2)
)
Definition at line 1912 of file THistSvc.cpp.
|
private |
Definition at line 1730 of file THistSvc.cpp.
|
private |
Definition at line 1205 of file THistSvc.cpp.
|
private |
Definition at line 1133 of file THistSvc.cpp.
|
private |
Definition at line 1140 of file THistSvc.cpp.
|
private |
Definition at line 1147 of file THistSvc.cpp.
|
private |
Definition at line 242 of file THistSvc.icc.
|
private |
Definition at line 1154 of file THistSvc.cpp.
|
override |
Definition at line 1024 of file THistSvc.cpp.
|
override |
Definition at line 1032 of file THistSvc.cpp.
|
override |
Definition at line 974 of file THistSvc.cpp.
|
override |
Definition at line 983 of file THistSvc.cpp.
|
override |
Definition at line 990 of file THistSvc.cpp.
|
override |
Definition at line 997 of file THistSvc.cpp.
|
private |
Definition at line 17 of file THistSvc.icc.
|
override |
Definition at line 1004 of file THistSvc.cpp.
|
override |
Definition at line 1012 of file THistSvc.cpp.
|
override |
Definition at line 230 of file THistSvc.cpp.
|
private |
Definition at line 1720 of file THistSvc.cpp.
|
private |
Definition at line 2030 of file THistSvc.cpp.
|
private |
Definition at line 2062 of file THistSvc.cpp.
|
private |
Definition at line 1223 of file THistSvc.cpp.
|
private |
call-back method to handle input stream property
Definition at line 1236 of file THistSvc.cpp.
|
private |
call-back method to handle output stream property
Definition at line 1275 of file THistSvc.cpp.
|
private |
Definition at line 1305 of file THistSvc.cpp.
|
private |
Definition at line 1399 of file THistSvc.cpp.
|
private |
list of already connected files.
This is to keep track of files registered by the setupInputFile callback method
Definition at line 187 of file THistSvc.h.
|
private |
list of already connected files.
This is to keep track of files registered by the setupOutputFile callback method
Definition at line 191 of file THistSvc.h.
|
private |
Definition at line 182 of file THistSvc.h.
|
private |
Definition at line 182 of file THistSvc.h.
|
private |
Definition at line 182 of file THistSvc.h.
|
mutableprivate |
Definition at line 211 of file THistSvc.h.
|
private |
Definition at line 209 of file THistSvc.h.
|
private |
Definition at line 203 of file THistSvc.h.
|
private |
Definition at line 204 of file THistSvc.h.
|
private |
Definition at line 200 of file THistSvc.h.
|
private |
Definition at line 180 of file THistSvc.h.
|
mutableprivate |
Definition at line 178 of file THistSvc.h.
|
private |
Definition at line 182 of file THistSvc.h.
|
private |
Definition at line 209 of file THistSvc.h.
|
private |
Definition at line 180 of file THistSvc.h.
|
private |
Definition at line 183 of file THistSvc.h.
|
private |
Definition at line 181 of file THistSvc.h.
|
private |
Definition at line 206 of file THistSvc.h.
|
private |
Definition at line 201 of file THistSvc.h.
|
private |
Definition at line 199 of file THistSvc.h.
|
private |
Definition at line 181 of file THistSvc.h.
|
private |
Definition at line 214 of file THistSvc.h.
|
private |
Definition at line 213 of file THistSvc.h.
|
private |
Definition at line 208 of file THistSvc.h.