25 |
#include <EventHeader.h> |
#include <EventHeader.h> |
26 |
#include <RunHeaderEvent.h> |
#include <RunHeaderEvent.h> |
27 |
// |
// |
28 |
|
#define MAXSTORAGE 50000 |
29 |
|
|
30 |
void stringcopy(TString& s1, const TString& s2, Int_t from=0, Int_t to=0){ |
void stringcopy(TString& s1, const TString& s2, Int_t from=0, Int_t to=0){ |
31 |
if ( to == 0 ){ |
if ( to == 0 ){ |
123 |
const Int_t sizeH=neventH; |
const Int_t sizeH=neventH; |
124 |
const Int_t sizeC=neventC; |
const Int_t sizeC=neventC; |
125 |
Int_t count=0,trk_cal_us[sizeH],countrun=1; |
Int_t count=0,trk_cal_us[sizeH],countrun=1; |
126 |
Double_t perc=0,xMIN=0,xMAX=0; |
Float_t perc=0,xMIN=0,xMAX=0; |
127 |
ULong64_t HOBT[sizeH],COBT[sizeC]; |
ULong64_t HOBT[sizeH],COBT[sizeC]; |
128 |
|
|
129 |
for (Int_t vi=0; vi<sizeH;vi++){ |
for (Int_t vi=0; vi<sizeH;vi++){ |
149 |
countrun+=1; |
countrun+=1; |
150 |
// printf("\n%lld\t\tcountrun=%d\n",HOBT[ev],countrun); |
// printf("\n%lld\t\tcountrun=%d\n",HOBT[ev],countrun); |
151 |
} |
} |
152 |
countrun+=20; |
countrun+=(Int_t)nevent/30000; |
153 |
printf("\ncountrun=%d\n",countrun); |
printf("\ncountrun=%d\n",countrun); |
154 |
// |
// |
155 |
// information about calibration OBT |
// information about calibration OBT |
220 |
//*************************************************************************************** |
//*************************************************************************************** |
221 |
|
|
222 |
|
|
223 |
Double_t posy = 0.95; // up y-coord - top pads |
Float_t posy = 0.95; // up y-coord - top pads |
224 |
Double_t hpad = 0; // pad height |
Float_t hpad = 0; // pad height |
225 |
Double_t posx1=0; // left x-coord - pad column |
Float_t posx1=0; // left x-coord - pad column |
226 |
Double_t posx0=0; // x-coord - column division |
Float_t posx0=0; // x-coord - column division |
227 |
Double_t wrel = 0; // relative x size of first sub-column |
Float_t wrel = 0; // relative x size of first sub-column |
228 |
Double_t marg = 0.004; // margin among pads |
Float_t marg = 0.004; // margin among pads |
229 |
|
|
230 |
hpad = (posy-marg*11)/6; |
hpad = (posy-marg*11)/6; |
231 |
wrel = (1-marg*4)/2; |
wrel = (1-marg*4)/2; |
268 |
t2->SetTextSize(0.08); |
t2->SetTextSize(0.08); |
269 |
|
|
270 |
Int_t i=0; |
Int_t i=0; |
271 |
Double_t x[30000], xb[30000]; |
Float_t x[MAXSTORAGE], xb[MAXSTORAGE]; |
272 |
Double_t yyd[30000][12],yyb[30000][12]; |
Float_t yyd[MAXSTORAGE][12],yyb[MAXSTORAGE][12]; |
273 |
for (Int_t ev=minev; ev<maxevent; ev++){ |
for (Int_t ev=minev; ev<maxevent; ev++){ |
274 |
tr->GetEntry(ev); |
tr->GetEntry(ev); |
275 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
276 |
|
|
277 |
if(ev==maxevent-1) maxev=maxevent-1; |
if(ev==maxevent-1) maxev=maxevent-1; |
278 |
// printf("prova00\n"); |
// printf("prova00\n"); |
279 |
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==MAXSTORAGE){ |
280 |
maxev=ev; |
maxev=ev; |
281 |
// printf("prova12\n"); |
// printf("prova12\n"); |
282 |
break; |
break; |
335 |
|
|
336 |
for (Int_t i=0; i<12 ; i++){ |
for (Int_t i=0; i<12 ; i++){ |
337 |
|
|
338 |
Double_t y[maxev-minev],yb[maxev-minev]; |
Float_t y[maxev-minev],yb[maxev-minev]; |
339 |
for(Int_t v=0;v<maxev-minev;v++){ |
for(Int_t v=0;v<maxev-minev;v++){ |
340 |
y[v]=yyd[v][i]; |
y[v]=yyd[v][i]; |
341 |
yb[v]=yyb[v][i]; |
yb[v]=yyb[v][i]; |