9 #ifndef _ROOTFILE_HELPER_H_
10 #define _ROOTFILE_HELPER_H_
15 #include <QtCore/QMutex>
50 static TFile*
create(
const std::string& rootfilename,
51 const std::string& options =
"RECREATE");
58 static void close(TFile* rootfile);
ROOTFileHelper()
make default constructor private
static TFile * create(const std::string &rootfilename, const std::string &options="RECREATE")
create and return an instance of the rootfile
std::map< std::string, TFile * > rootfiles_t
easier code
static QMutex _mutex
Singleton Mutex to lock write operations.
static void close(TFile *rootfile)
close root file
static rootfiles_t _rootfiles
container for all the root files