Skip to content
Snippets Groups Projects
Commit 7ff61080 authored by Theodore Efremov's avatar Theodore Efremov :hibiscus:
Browse files

Big bug resolved

parent f41bd4d8
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
......@@ -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)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment