1 #ifndef UtilAlgos_TFileService_h 2 #define UtilAlgos_TFileService_h 24 class ModuleCallingContext;
25 class ModuleDescription;
37 TFile &
file()
const {
return * file_; }
49 bool cd()
const {
return tFileDirectory_.cd(); }
53 return tFileDirectory_.getBareDirectory(subdir);
59 return tFileDirectory_.getObject<
T>(objname, subdir);
63 template<
typename T,
typename ... Args>
65 return tFileDirectory_.make<T>(args ...);
70 return tFileDirectory_.
mkdir(dir, descr);
static const std::string kSharedResource
T * make(const Args &...args) const
make new ROOT object
TFile * file_
pointer to opened TFile
std::string fullPath() const
return the full path of the stored histograms
static thread_local TFileDirectory tFileDirectory_
TFileDirectory & tFileDirectory()
TDirectory * getBareDirectory(const std::string &subdir="") const
TFile & file() const
return opened TFile
bool isProcessWideService(ZombieKillerService const *)
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
T * getObject(const std::string &objname, const std::string &subdir="")