51 std::shared_ptr<TFile>
getFile(std::string,
bool ignoreErrors =
false);
61 std::map<std::string, std::weak_ptr<TFile>>
m_files;
This single instance class takes track of all open ROOT files open in "create" mode,...
RootFileCreationManager()
Constructor is private.
void operator=(RootFileCreationManager const &)=delete
We do not need this interface.
std::map< std::string, std::weak_ptr< TFile > > m_files
store for the open files
RootFileCreationManager(RootFileCreationManager const &)=delete
We so not want copy construction.
std::shared_ptr< TFile > getFile(std::string, bool ignoreErrors=false)
Get a file with a specific name, if is does not exist it will be created.
static RootFileCreationManager & getInstance()
Interface for the FileManager.
Abstract base class for different kinds of events.