67 |
Double_t obt; |
Double_t obt; |
68 |
TString status; |
TString status; |
69 |
Int_t IPM1status, IPM2status; |
Int_t IPM1status, IPM2status; |
70 |
ULong_t lastime, firstime, obt1; |
ULong_t lastime, firstime, obt1, utile; |
71 |
double obmin=0.; |
double obmin=0.; |
72 |
double obmax=0.; |
double obmax=0.; |
73 |
double limitdown=0; |
double limitdown=0; |
197 |
for(Int_t kk = 0; kk<nevents; kk++){ |
for(Int_t kk = 0; kk<nevents; kk++){ |
198 |
headBr->GetEntry(kk); |
headBr->GetEntry(kk); |
199 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
200 |
if(obmin >= ph->GetOrbitalTime())obmin=ph->GetOrbitalTime(); |
utile=ph->GetOrbitalTime(); |
201 |
if(obmax <= ph->GetOrbitalTime())obmax=ph->GetOrbitalTime(); |
if(obmin >= utile)obmin=utile; |
202 |
|
if(obmax <= utile)obmax=utile; |
203 |
} |
} |
204 |
limitdown= obmin - 1000000; |
limitdown= obmin - 1000000; |
205 |
limitup= obmax + 1000000; |
limitup= obmax + 1000000; |
207 |
for(Int_t kk = 0; kk<nevents; kk++){ |
for(Int_t kk = 0; kk<nevents; kk++){ |
208 |
headBr->GetEntry(kk); |
headBr->GetEntry(kk); |
209 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
210 |
|
utile=ph->GetOrbitalTime(); |
211 |
//cout<<"OrbitalTime()"<<ph->GetOrbitalTime()<<"\n"; |
//cout<<"OrbitalTime()"<<ph->GetOrbitalTime()<<"\n"; |
212 |
if(obmin >= ph->GetOrbitalTime())obmin=ph->GetOrbitalTime(); |
if(obmin >= utile)obmin=utile; |
213 |
if(obmax <= ph->GetOrbitalTime())obmax=ph->GetOrbitalTime(); |
if(obmax <= utile)obmax=utile; |
214 |
} |
} |
215 |
limitdown=obmin; |
limitdown=obmin; |
216 |
limitup=obmax; |
limitup=obmax; |
259 |
} |
} |
260 |
} |
} |
261 |
} |
} |
262 |
|
utile=ph->GetOrbitalTime(); |
263 |
//obt=ph->GetOrbitalTime(); |
//obt=ph->GetOrbitalTime(); |
264 |
calib_1_MEAN=calib_1/128; |
calib_1_MEAN=calib_1/128; |
265 |
//calib_1_RMS=calibS4_1->GetRMS(1); |
//calib_1_RMS=calibS4_1->GetRMS(1); |
267 |
//calib_2_RMS=calibS4_2->GetRMS(1); |
//calib_2_RMS=calibS4_2->GetRMS(1); |
268 |
calib_4_MEAN=calib_4/128; |
calib_4_MEAN=calib_4/128; |
269 |
//calib_4_RMS=calibS4_4->GetRMS(1); |
//calib_4_RMS=calibS4_4->GetRMS(1); |
270 |
cal1->Fill(ph->GetOrbitalTime(),calib_1_MEAN); |
cal1->Fill(utile,calib_1_MEAN); |
271 |
cal2->Fill(ph->GetOrbitalTime(),calib_2_MEAN); |
cal2->Fill(utile,calib_2_MEAN); |
272 |
cal4->Fill(ph->GetOrbitalTime(),calib_4_MEAN); |
cal4->Fill(utile,calib_4_MEAN); |
273 |
calib_1=calib_2=calib_4=0; |
calib_1=calib_2=calib_4=0; |
274 |
|
|
275 |
} |
} |