122 |
const Int_t sizeH=neventH; |
const Int_t sizeH=neventH; |
123 |
const Int_t sizeC=neventC; |
const Int_t sizeC=neventC; |
124 |
Int_t count=0,trk_cal_us[sizeH],countrun=1; |
Int_t count=0,trk_cal_us[sizeH],countrun=1; |
125 |
Double_t perc=0,xMIN=0,xMAX=0; |
Float_t perc=0,xMIN=0,xMAX=0; |
126 |
ULong64_t HOBT[sizeH],COBT[sizeC]; |
ULong64_t HOBT[sizeH],COBT[sizeC]; |
127 |
|
|
128 |
for (Int_t vi=0; vi<sizeH;vi++){ |
for (Int_t vi=0; vi<sizeH;vi++){ |
148 |
countrun+=1; |
countrun+=1; |
149 |
// printf("\n%lld\t\tcountrun=%d\n",HOBT[ev],countrun); |
// printf("\n%lld\t\tcountrun=%d\n",HOBT[ev],countrun); |
150 |
} |
} |
151 |
countrun+=20; |
countrun+=(Int_t)nevent/30000; |
152 |
printf("\ncountrun=%d\n",countrun); |
printf("\ncountrun=%d\n",countrun); |
153 |
// |
// |
154 |
// information about calibration OBT |
// information about calibration OBT |
219 |
//*************************************************************************************** |
//*************************************************************************************** |
220 |
|
|
221 |
|
|
222 |
Double_t posy = 0.95; // up y-coord - top pads |
Float_t posy = 0.95; // up y-coord - top pads |
223 |
Double_t hpad = 0; // pad height |
Float_t hpad = 0; // pad height |
224 |
Double_t posx1=0; // left x-coord - pad column |
Float_t posx1=0; // left x-coord - pad column |
225 |
Double_t posx0=0; // x-coord - column division |
Float_t posx0=0; // x-coord - column division |
226 |
Double_t wrel = 0; // relative x size of first sub-column |
Float_t wrel = 0; // relative x size of first sub-column |
227 |
Double_t marg = 0.004; // margin among pads |
Float_t marg = 0.004; // margin among pads |
228 |
|
|
229 |
hpad = (posy-marg*11)/6; |
hpad = (posy-marg*11)/6; |
230 |
wrel = (1-marg*4)/2; |
wrel = (1-marg*4)/2; |
267 |
t2->SetTextSize(0.08); |
t2->SetTextSize(0.08); |
268 |
|
|
269 |
Int_t i=0; |
Int_t i=0; |
270 |
Double_t x[30000], xb[30000]; |
Float_t x[30000], xb[30000]; |
271 |
Double_t yyd[30000][12],yyb[30000][12]; |
Float_t yyd[30000][12],yyb[30000][12]; |
272 |
for (Int_t ev=minev; ev<maxevent; ev++){ |
for (Int_t ev=minev; ev<maxevent; ev++){ |
273 |
tr->GetEntry(ev); |
tr->GetEntry(ev); |
274 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
275 |
|
|
276 |
if(ev==maxevent-1) maxev=maxevent-1; |
if(ev==maxevent-1) maxev=maxevent-1; |
277 |
// printf("prova00\n"); |
// printf("prova00\n"); |
278 |
if((ph->GetOrbitalTime()<x[ev-minev-1]&&ev-minev!=0) || ev-minev>30000){ |
if((ph->GetOrbitalTime()<x[ev-minev-1]&&ev-minev!=0) || ev-minev==30000){ |
279 |
maxev=ev; |
maxev=ev; |
280 |
// printf("prova12\n"); |
// printf("prova12\n"); |
281 |
break; |
break; |
334 |
|
|
335 |
for (Int_t i=0; i<12 ; i++){ |
for (Int_t i=0; i<12 ; i++){ |
336 |
|
|
337 |
Double_t y[maxev-minev],yb[maxev-minev]; |
Float_t y[maxev-minev],yb[maxev-minev]; |
338 |
for(Int_t v=0;v<maxev-minev;v++){ |
for(Int_t v=0;v<maxev-minev;v++){ |
339 |
y[v]=yyd[v][i]; |
y[v]=yyd[v][i]; |
340 |
yb[v]=yyb[v][i]; |
yb[v]=yyb[v][i]; |