3 #include <ROOT/RNTuple.hxx> 4 #include <ROOT/RNTupleModel.hxx> 17 printf(
"RntDumper::RntDumper() failed creeating file '%s'.\n",
fname);
18 throw std::runtime_error(
"Failed creating file");
20 printf(
"RntDumper::RntDumper() succesfully opened file '%s'.\n",
fname);
24 printf(
"RntDumper::~RntDumper() destroying writers and closing file '%s'.\n",
m_file->GetName());
42 REX::RNTupleWriter *
w = wup.get();
59 printf(
"RntDumper::FinalizeAll() shutting down %d instances.\n", (
int)
s_instances.size());
std::unique_ptr< TFile > m_file
std::unordered_map< std::string, std::unique_ptr< RNTupleWriter > > m_writers
RntDumper(const char *fname)
static std::vector< RntDumper * > s_instances
RNTupleWriter * WritifyModel(std::unique_ptr< RNTupleModel > &model, std::string_view mname)
static void FinalizeAll()
std::unique_ptr< RNTupleModel > CreateModel()
std::vector< TTree * > m_trees
static RntDumper * Create(const char *fname)
void RegisterTree(TTree *t)