From 96bc8ac8bde589e395382a539373ad2793840b3b Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Sun, 14 Nov 2021 01:30:16 +0000
Subject: [PATCH] b0_tracker debugging

---
 .rootlogon.C                                  | 19 +++++++++----------
 .../{scripts => analysis}/b0_tracker_hits.cxx |  0
 benchmarks/b0_tracker/config.yml              |  1 +
 benchmarks/b0_tracker/forward_protons.sh      |  4 +---
 4 files changed, 11 insertions(+), 13 deletions(-)
 rename benchmarks/b0_tracker/{scripts => analysis}/b0_tracker_hits.cxx (100%)

diff --git a/.rootlogon.C b/.rootlogon.C
index cb4b2897..5ce62268 100644
--- a/.rootlogon.C
+++ b/.rootlogon.C
@@ -4,14 +4,13 @@
 
   R__LOAD_LIBRARY(fmt)
 
-	// Setting for Graphs
-	gROOT->SetStyle("Plain");
-	gStyle->SetOptFit(1);
-	gStyle->SetLineWidth(2);
-	gStyle->SetPadTickX(1);
-	gStyle->SetPadTickY(1);
-	gStyle->SetPadGridX(1);
-	gStyle->SetPadGridY(1);
-	gStyle->SetPadLeftMargin(0.14);
-
+  // Setting for Graphs
+  gROOT->SetStyle("Plain");
+  gStyle->SetOptFit(1);
+  gStyle->SetLineWidth(2);
+  gStyle->SetPadTickX(1);
+  gStyle->SetPadTickY(1);
+  gStyle->SetPadGridX(1);
+  gStyle->SetPadGridY(1);
+  gStyle->SetPadLeftMargin(0.14);
 }
diff --git a/benchmarks/b0_tracker/scripts/b0_tracker_hits.cxx b/benchmarks/b0_tracker/analysis/b0_tracker_hits.cxx
similarity index 100%
rename from benchmarks/b0_tracker/scripts/b0_tracker_hits.cxx
rename to benchmarks/b0_tracker/analysis/b0_tracker_hits.cxx
diff --git a/benchmarks/b0_tracker/config.yml b/benchmarks/b0_tracker/config.yml
index c752d977..1c6970ef 100644
--- a/benchmarks/b0_tracker/config.yml
+++ b/benchmarks/b0_tracker/config.yml
@@ -2,6 +2,7 @@ sim:b0_tracker:
   stage: simulate
   extends: .det_benchmark
   script:
+    - compile_analyses.py b0_tracker
     - bash benchmarks/b0_tracker/forward_protons.sh
 
 bench:b0_tracker:
diff --git a/benchmarks/b0_tracker/forward_protons.sh b/benchmarks/b0_tracker/forward_protons.sh
index d78b81b7..f0a6be99 100755
--- a/benchmarks/b0_tracker/forward_protons.sh
+++ b/benchmarks/b0_tracker/forward_protons.sh
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-source .local/bin/env.sh
-
 if [[ ! -n  "${JUGGLER_DETECTOR}" ]] ; then 
   export JUGGLER_DETECTOR="topside"
 fi
@@ -43,7 +41,7 @@ mkdir -p results
 
 rootls -t ${JUGGLER_SIM_FILE}
 # Plot the input events
-root -b -q "benchmarks/b0_tracker/scripts/b0_tracker_hits.cxx(\"${JUGGLER_SIM_FILE}\")"
+root -b -q "benchmarks/b0_tracker/analysis/b0_tracker_hits.cxx+(\"${JUGGLER_SIM_FILE}\")"
 if [[ "$?" -ne "0" ]] ; then
   echo "ERROR running script: events"
   exit 1
-- 
GitLab