Skip to content

Commit

Permalink
add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Oct 2, 2024
1 parent dd351f6 commit 263452d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/samples/RNTuple/rntuple_nanoAOD_importer.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
R__LOAD_LIBRARY(ROOTNTuple)
#include <ROOT/RField.hxx>
#include <ROOT/RNTuple.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <ROOT/RRawFile.hxx>

void rntuple_nanoAOD_importer() {
auto importer = ROOT::Experimental::RNTupleImporter::Create("./Run2012BC_DoubleMuParked_Muons.root", "Events", "./Run2012BC_DoubleMuParked_Muons_rntuple_1000evts.root");
auto c = importer.get();
c->SetMaxEntries(1000);
c->Import();
}
2 changes: 2 additions & 0 deletions test/samples/RNTuple/runall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ root -q ./rntuple_stl_containers.C
root -q ./rntuple_int_multicluster.C
root -q ./rntuple_split_3e4.C
root -q ./rntuple_minimal.C
rm ./Run2012BC_DoubleMuParked_Muons_rntuple_1000evts.root
root -q ./rntuple_nanoAOD_importer.C

0 comments on commit 263452d

Please sign in to comment.