From 533290f7e7f7abd8372226c36f0d671f4ebe8164 Mon Sep 17 00:00:00 2001 From: "theodore.efremov" <theodore.efremov@cea.fr> Date: Thu, 17 Oct 2024 13:47:22 +0200 Subject: [PATCH] Some bug hunting on the EtotInit --- NPLib/Detectors/PISTA/TICPhysics.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NPLib/Detectors/PISTA/TICPhysics.cxx b/NPLib/Detectors/PISTA/TICPhysics.cxx index 3063b9212..a4097a504 100644 --- a/NPLib/Detectors/PISTA/TICPhysics.cxx +++ b/NPLib/Detectors/PISTA/TICPhysics.cxx @@ -107,7 +107,7 @@ void TICPhysics::BuildPhysicalEvent() { for (int Seg = 0; Seg<10; Seg++){ if (Seg == 0 && m_Data_Year == 2024 ){ - EtotInit += 0.75 * Cal->GetValue("IC/INIT_SEG"+NPL::itoa(Seg)+"_ALIGN",0)* fIC_raw[1]; + EtotInit += 0.75 * Cal->GetValue("IC/INIT_SEG"+NPL::itoa(Seg+1)+"_ALIGN",0)* fIC_raw[1]; } else { @@ -317,6 +317,7 @@ void TICPhysics::Clear() { for(int i=0; i<11; i++){ fIC[i] = 0; fIC_raw[i] = 0; + fIC_Init[i] = 0; } } -- GitLab