Skip to content
Snippets Groups Projects
Commit 3d6fbb0a authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Analysis script

parent d6bb80fb
No related branches found
No related tags found
1 merge request!106Resolve "Include synchrotron radiation benchmark"
This commit is part of merge request !106. Comments created here will be created in the context of that merge request.
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include "ROOT/RDataFrame.hxx"
#include "Math/Vector4D.h"
#include "TCanvas.h"
#include <nlohmann/json.hpp>
using json = nlohmann::json;
R__LOAD_LIBRARY(libfmt.so)
#include "fmt/core.h"
#include "fmt/color.h"
R__LOAD_LIBRARY(libeicd.so)
R__LOAD_LIBRARY(libDD4pod.so)
#include "eicd/ReconstructedParticleCollection.h"
void synchrotron_tests(const char* fname = "rec.root"){
fmt::print(fmt::emphasis::bold | fg(fmt::color::forest_green), "Running synchrotron analysis...\n");
// Run this in multi-threaded mode if desired
ROOT::EnableImplicitMT();
ROOT::RDataFrame df("events", fname);
}
......@@ -146,7 +146,7 @@ if [[ -n "${DO_ANA}" || -n "${DO_ALL}" ]] ; then
mkdir -p results/synchrotron
# here you can add as many scripts as you want.
root -b -q "benchmarks/synchrotron/analysis/synchrotron.cxx+(\"${JUGGLER_REC_FILE}\")"
root -b -q "benchmarks/synchrotron/analysis/synchrotron_tests.cxx+(\"${JUGGLER_REC_FILE/.root/.raw.root}\")"
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running root script"
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment