From 03a9c9f141797fcd62eb8d5913795c3212013de8 Mon Sep 17 00:00:00 2001
From: adrien-matta <a.matta@surrey.ac.uk>
Date: Thu, 5 Dec 2013 23:24:33 +0100
Subject: [PATCH] * Fixing yet another crash in TMust2Spectra  - Missing +1 to
 index in naming the spectra

---
 NPLib/MUST2/TMust2Spectra.cxx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/NPLib/MUST2/TMust2Spectra.cxx b/NPLib/MUST2/TMust2Spectra.cxx
index a76733115..509db6204 100644
--- a/NPLib/MUST2/TMust2Spectra.cxx
+++ b/NPLib/MUST2/TMust2Spectra.cxx
@@ -217,19 +217,19 @@ void TMust2Spectra::InitPhysicsSpectra(){
   // ID plot detector by detector
   for (unsigned int i = 0; i < fNumberOfTelescope; i++) { // loop on number of detectors
     // E-TOF:
-    name = Form("MM%d_E_TOF",i);
+    name = Form("MM%d_E_TOF",i+1);
     AddHisto2D(name, name,500,0,50,1000,200,1200,"MUST2/PHY");
 
     // SILIE-DE:
-    name = Form("MM%d_SILIE_E",i);
+    name = Form("MM%d_SILIE_E",i+1);
     AddHisto2D(name, name,500,0,200,500,0,50,"MUST2/PHY");
 
     // CSI-DE:
-    name = Form("MM%d_CSIE_E",i);
+    name = Form("MM%d_CSIE_E",i+1);
     AddHisto2D(name, name,500,0,500,500,0,50,"MUST2/PHY");
 
     // Etot-DE:
-    name = Form("MM%d_Etot_E",i);
+    name = Form("MM%d_Etot_E",i+1);
     AddHisto2D(name, name,500,0,500,500,0,50,"MUST2/PHY");
   }
 }
-- 
GitLab