33 |
#include <TPaveText.h> |
#include <TPaveText.h> |
34 |
#include <TCanvas.h> |
#include <TCanvas.h> |
35 |
#include <physics/tof/TofEvent.h> |
#include <physics/tof/TofEvent.h> |
36 |
|
#include <cstdlib> |
37 |
|
#include <sys/stat.h> |
38 |
|
#include <math.h> |
39 |
#include <iostream> |
#include <iostream> |
40 |
#include <fstream> |
#include <fstream> |
41 |
|
|
187 |
// find hitted paddle by looking for ADC values on both sides |
// find hitted paddle by looking for ADC values on both sides |
188 |
// since we looking for helium this gives decent results |
// since we looking for helium this gives decent results |
189 |
|
|
190 |
Int_t tof11_i,tof12_i,tof21_i,tof22_i,tof31_i,tof32_i; |
//Int_t tof11_i,tof12_i,tof21_i,tof22_i,tof31_i,tof32_i; |
191 |
|
Int_t tof11_i,tof12_i,tof31_i,tof32_i; |
192 |
Float_t a1,a2; |
Float_t a1,a2; |
193 |
Int_t jj; |
Int_t jj; |
194 |
|
|
195 |
// reset values |
// reset values |
196 |
tof11_i = -1; |
tof11_i = -1; |
197 |
tof12_i = -1; |
tof12_i = -1; |
198 |
tof21_i = -1; |
//tof21_i = -1; |
199 |
tof22_i = -1; |
//tof22_i = -1; |
200 |
tof31_i = -1; |
tof31_i = -1; |
201 |
tof32_i = -1; |
tof32_i = -1; |
202 |
|
|
210 |
a2 = adca[16+2*jj+1]; |
a2 = adca[16+2*jj+1]; |
211 |
if ((a1 < 3000) && (a2 < 3000)) tof12_i = jj; |
if ((a1 < 3000) && (a2 < 3000)) tof12_i = jj; |
212 |
} |
} |
213 |
for(jj=0; jj<2; jj++){ |
/* for(jj=0; jj<2; jj++){ |
214 |
a1 = adca[28+2*jj]; |
a1 = adca[28+2*jj]; |
215 |
a2 = adca[28+2*jj+1]; |
a2 = adca[28+2*jj+1]; |
216 |
if ((a1 < 3000) && (a2 < 3000)) tof21_i = jj; |
// if ((a1 < 3000) && (a2 < 3000)) tof21_i = jj; |
217 |
} |
} |
218 |
for(jj=0; jj<2; jj++){ |
for(jj=0; jj<2; jj++){ |
219 |
a1 = adca[32+2*jj]; |
a1 = adca[32+2*jj]; |
220 |
a2 = adca[32+2*jj+1]; |
a2 = adca[32+2*jj+1]; |
221 |
if ((a1 < 3000) && (a2 < 3000)) tof22_i = jj; |
// if ((a1 < 3000) && (a2 < 3000)) tof22_i = jj; |
222 |
} |
}*/ |
223 |
for(jj=0; jj<3; jj++){ |
for(jj=0; jj<3; jj++){ |
224 |
a1 = adca[36+2*jj]; |
a1 = adca[36+2*jj]; |
225 |
a2 = adca[36+2*jj+1]; |
a2 = adca[36+2*jj+1]; |