diff --git a/NPLib/Detectors/PISTA/TICPhysics.cxx b/NPLib/Detectors/PISTA/TICPhysics.cxx index 3063b9212b5b2914e2f027c38b80f7f8ed20d389..a4097a504c20469497aeb45bd921963ec5a7c612 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; } }