Contains both a art::TFileDirectory
and the TDirectory
it manages.
More...
Contains both a art::TFileDirectory
and the TDirectory
it manages.
Definition at line 103 of file PlotSandbox.h.
icarus::trigger::PlotSandbox::TFileDirectoryHelper::TFileDirectoryHelper |
( |
art::TFileDirectory |
dir, |
|
|
TDirectory * |
ROOTdir |
|
) |
| |
|
inline |
template<typename RootDir = TDirectoryFile>
static TFileDirectoryHelper icarus::trigger::PlotSandbox::TFileDirectoryHelper::create |
( |
art::TFileDirectory |
parentDir, |
|
|
std::string const & |
subdir, |
|
|
std::string const & |
dirTitle = "" |
|
) |
| |
|
static |
Creates a helper managing a subdirectory of parentDir
.
auto icarus::trigger::PlotSandbox::TFileDirectoryHelper::create |
( |
art::TFileDirectory |
dir | ) |
|
|
static |
Definition at line 32 of file PlotSandbox.cxx.
48 static constexpr
const char* TestDirName =
" PlotSandbox invalid name! ";
52 TDirectory* testDir =
dir.make<TDirectory>(TestDirName, TestDirName);
54 throw cet::exception(
"PlotSandbox") <<
"TFileDirectoryHelper::create() "
55 "failed to figure out the ROOT directory!\n";
57 TDirectory* pROOTdir = testDir->GetMotherDir();
58 MF_LOG_DEBUG(
"TFileDirectoryHelper")
59 <<
"icarus::trigger::PlotSandbox::TFileDirectoryHelper::create(): "
60 <<
"found parent directory: '" << pROOTdir->GetName() <<
"'";
65 return {
dir, pROOTdir };
template<typename RootDir >
auto icarus::trigger::PlotSandbox::TFileDirectoryHelper::create |
( |
art::TFileDirectory |
parentDir, |
|
|
std::string const & |
subdir, |
|
|
std::string const & |
dirTitle |
|
) |
| -> TFileDirectoryHelper
|
Definition at line 620 of file PlotSandbox.h.
633 = parentDir.make<RootDir>(subdir.c_str(), dirTitle.c_str());
639 return { parentDir.mkdir(subdir, dirTitle), pROOTdir };
art::TFileDirectory icarus::trigger::PlotSandbox::TFileDirectoryHelper::fDir |
TDirectory* icarus::trigger::PlotSandbox::TFileDirectoryHelper::fROOTdir |
The documentation for this struct was generated from the following files: