Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/ramcore/SamToNTuple.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <string>
#include <thread>
#include <vector>
#include <iostream>

namespace {

Expand All @@ -36,14 +37,15 @@ void samtoramntuple(const char *datafile,
int compression_algorithm,
uint32_t quality_policy)
{
TStopwatch stopwatch;
stopwatch.Start();

auto rootFile = std::unique_ptr<TFile>(TFile::Open(treefile, "RECREATE"));
if (!rootFile || !rootFile->IsOpen()) {
printf("Failed to create RAM file %s\n", treefile);
return;
}
ROOT::EnableImplicitMT();
TStopwatch stopwatch;
stopwatch.Start();

auto rootFile = std::unique_ptr<TFile>(TFile::Open(treefile, "RECREATE"));
if (!rootFile || !rootFile->IsOpen()) {
std::cout << "Failed to create RAM file " << treefile << "\n";
return;
}

RAMNTupleRecord::InitializeRefs();

Expand Down