diff --git a/Projects/AlPhaPha/2024/macro/mwpc/Toff/ToffGenerator.cxx b/Projects/AlPhaPha/2024/macro/mwpc/Toff/ToffGenerator.cxx index b2c2aef96162fe765f2eebaedcd57f9132737212..e9b30333df59508e79ef70bb44d4e6f717d73a46 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)){