From a0a501763f2da452965f96d512c276af8a722e0d Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Wed, 13 Oct 2021 12:34:42 -0500
Subject: [PATCH] analysis script fixes

---
 benchmarks/synchrotron/analysis/synchrotron_sim.cxx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/benchmarks/synchrotron/analysis/synchrotron_sim.cxx b/benchmarks/synchrotron/analysis/synchrotron_sim.cxx
index 10a4a98f..00b0835b 100644
--- a/benchmarks/synchrotron/analysis/synchrotron_sim.cxx
+++ b/benchmarks/synchrotron/analysis/synchrotron_sim.cxx
@@ -19,7 +19,7 @@ R__LOAD_LIBRARY(libDD4pod.so)
 
 #include "eicd/ReconstructedParticleCollection.h"
 
-void synchrotron_raw(const char* fname = "sim_synchrotron.root"){
+void synchrotron_sim(const char* fname = "sim_synchrotron.root"){
 
   fmt::print(fmt::emphasis::bold | fg(fmt::color::forest_green), "Running synchrotron analysis...\n");
 
@@ -34,8 +34,8 @@ void synchrotron_raw(const char* fname = "sim_synchrotron.root"){
   ;
 
   auto n_VertexBarrelHits = df0.Mean("n_VertexBarrelHits");
-  auto n_VertexEndcapHits = df0.Mean("n_VertexEncdapHits");
+  auto n_VertexEndcapHits = df0.Mean("n_VertexEndcapHits");
 
-  std::cout << "n_VertexBarrelHits = " << n_VertexBarrelHits << " / ev" << std::endl;
-  std::cout << "n_VertexEndcapHits = " << n_VertexEndcapHits << " / ev" << std::endl;
+  std::cout << "n_VertexBarrelHits = " << *n_VertexBarrelHits << " / ev" << std::endl;
+  std::cout << "n_VertexEndcapHits = " << *n_VertexEndcapHits << " / ev" << std::endl;
 }
-- 
GitLab