From 263452db7df4abc3c3b503ceb8b2d37576410eee Mon Sep 17 00:00:00 2001 From: Moelf Date: Wed, 2 Oct 2024 23:35:33 +0200 Subject: [PATCH] add scripts --- test/samples/RNTuple/rntuple_nanoAOD_importer.C | 12 ++++++++++++ test/samples/RNTuple/runall.sh | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 test/samples/RNTuple/rntuple_nanoAOD_importer.C diff --git a/test/samples/RNTuple/rntuple_nanoAOD_importer.C b/test/samples/RNTuple/rntuple_nanoAOD_importer.C new file mode 100644 index 00000000..78eb2bbd --- /dev/null +++ b/test/samples/RNTuple/rntuple_nanoAOD_importer.C @@ -0,0 +1,12 @@ +R__LOAD_LIBRARY(ROOTNTuple) +#include +#include +#include +#include + +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(); +} diff --git a/test/samples/RNTuple/runall.sh b/test/samples/RNTuple/runall.sh index 9d582dfd..0f082b44 100644 --- a/test/samples/RNTuple/runall.sh +++ b/test/samples/RNTuple/runall.sh @@ -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