From 7ff61080020edd5d6be0cdb439ca35539a714404 Mon Sep 17 00:00:00 2001 From: "theodore.efremov" <theodore.efremov@cea.fr> Date: Fri, 13 Dec 2024 16:41:42 +0100 Subject: [PATCH] Big bug resolved --- .../2024/macro/mwpc/Toff/ToffGenerator.cxx | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/Projects/AlPhaPha/2024/macro/mwpc/Toff/ToffGenerator.cxx b/Projects/AlPhaPha/2024/macro/mwpc/Toff/ToffGenerator.cxx index b2c2aef96..e9b30333d 100644 --- a/Projects/AlPhaPha/2024/macro/mwpc/Toff/ToffGenerator.cxx +++ b/Projects/AlPhaPha/2024/macro/mwpc/Toff/ToffGenerator.cxx @@ -111,13 +111,21 @@ void ToffGenerator(bool Create = true ){ M14 = Time->GetMWPC14Mult(); M23 = Time->GetMWPC23Mult(); M24 = Time->GetMWPC24Mult(); - if (M23 == 2){ - cout << M23 << " "<< S23[0]<< " " << S23[1]<< endl; + + + + for (int i=0 ; i<M13 ; i++){ + S13[i] = Time->GetSection_MWPC3(i); + S23[i] = Time->GetSection_MWPC3(i); } + + for (int i=0 ; i<M14 ; i++){ + S14[i] = Time->GetSection_MWPC4(i); + S24[i] = Time->GetSection_MWPC4(i); + } + if (M13 == 2 && (abs(S13[0]-S13[1]) == 1)){ - cout << S13[0]<< endl; vector<int> Pos = SortSection(S13); - cout << S13[0] << endl; hToff13->Fill(S13[0], Time->GetTime_MWPC13(Pos[0]) - Time->GetTime_MWPC13(Pos[1]) ); hToffOnline13->Fill(S13[0], (Time->GetTime_MWPC13(Pos[0]) - Toff[S13[0]]) -( Time->GetTime_MWPC13(Pos[1]) -Toff[S13[1]] )); @@ -402,6 +410,15 @@ void ToffGenerator(bool Create = true ){ M23 = Time->GetMWPC23Mult(); M24 = Time->GetMWPC24Mult(); + for (int i=0 ; i<M13 ; i++){ + S13[i] = Time->GetSection_MWPC3(i); + S23[i] = Time->GetSection_MWPC3(i); + } + + for (int i=0 ; i<M14 ; i++){ + S14[i] = Time->GetSection_MWPC4(i); + S24[i] = Time->GetSection_MWPC4(i); + } if (M13 == 2 && (abs(S13[0]-S13[1]) == 1)){ -- GitLab