83 |
thefigure = &figure; |
thefigure = &figure; |
84 |
checkctrlword(); |
checkctrlword(); |
85 |
var.selex = false; |
var.selex = false; |
86 |
|
var.showall = false; |
87 |
|
|
88 |
|
var.showsi = false; |
89 |
|
var.shownd = false; |
90 |
|
var.shows4 = false; |
91 |
|
var.showorb = false; |
92 |
|
var.showtof = false; |
93 |
|
var.showtrg = false; |
94 |
|
var.showtrk = false; |
95 |
|
var.showcal = false; |
96 |
|
var.showrun = false; |
97 |
|
var.showac = false; |
98 |
} |
} |
99 |
|
|
100 |
void FEVdetector::checkctrlword(){ |
void FEVdetector::checkctrlword(){ |
209 |
L2->Clear(); |
L2->Clear(); |
210 |
// printf("qui\n"); |
// printf("qui\n"); |
211 |
L2->GetEntry(i); |
L2->GetEntry(i); |
212 |
ShowInfo("RunInfo"); |
if ( var.showall ){ |
213 |
ShowInfo("SoftInfo"); |
ShowInfo("RunInfo"); |
214 |
ShowInfo("OrbitalInfo"); |
ShowInfo("SoftInfo"); |
215 |
ShowInfo("TrigLevel2"); |
ShowInfo("OrbitalInfo"); |
216 |
ShowInfo("ToFLevel2"); |
ShowInfo("TrigLevel2"); |
217 |
ShowInfo("TrkLevel2"); |
ShowInfo("ToFLevel2"); |
218 |
ShowInfo("AcLevel2"); |
ShowInfo("TrkLevel2"); |
219 |
ShowInfo("CaloLevel2"); |
ShowInfo("AcLevel2"); |
220 |
ShowInfo("CaloLevel1"); |
ShowInfo("CaloLevel2"); |
221 |
ShowInfo("S4Level2"); |
ShowInfo("CaloLevel1"); |
222 |
ShowInfo("NDLevel2"); |
ShowInfo("S4Level2"); |
223 |
|
ShowInfo("NDLevel2"); |
224 |
|
} else { |
225 |
|
if ( var.showrun ) ShowInfo("RunInfo"); |
226 |
|
if ( var.showsi ) ShowInfo("SoftInfo"); |
227 |
|
if ( var.showorb ) ShowInfo("OrbitalInfo"); |
228 |
|
if ( var.showtrg ) ShowInfo("TrigLevel2"); |
229 |
|
if ( var.showtof ) ShowInfo("ToFLevel2"); |
230 |
|
if ( var.showtrk ) ShowInfo("TrkLevel2"); |
231 |
|
if ( var.showac ) ShowInfo("AcLevel2"); |
232 |
|
if ( var.showcal ) ShowInfo("CaloLevel2"); |
233 |
|
if ( var.showcal ) ShowInfo("CaloLevel1"); |
234 |
|
if ( var.shows4 ) ShowInfo("S4Level2"); |
235 |
|
if ( var.shownd ) ShowInfo("NDLevel2"); |
236 |
|
}; |
237 |
} else { |
} else { |
238 |
otr->GetEntry(i); |
otr->GetEntry(i); |
239 |
ShowInfo("Pscu"); |
if ( var.showall ){ |
240 |
ShowInfo("Trigger"); |
ShowInfo("Pscu"); |
241 |
ShowInfo("Tof"); |
ShowInfo("Trigger"); |
242 |
ShowInfo("Tracker"); |
ShowInfo("Tof"); |
243 |
ShowInfo("Anticounter"); |
ShowInfo("Tracker"); |
244 |
ShowInfo("Calorimeter"); |
ShowInfo("Anticounter"); |
245 |
ShowInfo("Neutron"); |
ShowInfo("Calorimeter"); |
246 |
ShowInfo("S4"); |
ShowInfo("S4"); |
247 |
|
ShowInfo("Neutron"); |
248 |
|
} else { |
249 |
|
if ( var.showorb ) ShowInfo("Pscu"); |
250 |
|
if ( var.showtrg ) ShowInfo("Trigger"); |
251 |
|
if ( var.showtof ) ShowInfo("Tof"); |
252 |
|
if ( var.showtrk ) ShowInfo("Tracker"); |
253 |
|
if ( var.showac ) ShowInfo("Anticounter"); |
254 |
|
if ( var.showcal ) ShowInfo("Calorimeter"); |
255 |
|
if ( var.shows4 ) ShowInfo("S4"); |
256 |
|
if ( var.shownd ) ShowInfo("Neutron"); |
257 |
|
}; |
258 |
}; |
}; |
259 |
} |
} |
260 |
|
|
1579 |
// |
// |
1580 |
// print infos on terminal |
// print infos on terminal |
1581 |
// |
// |
1582 |
|
// if ( !var.selex ){ |
1583 |
printf(" File: %s \n",var.thefilename.Data()); |
printf(" File: %s \n",var.thefilename.Data()); |
1584 |
if ( !s4pulser && !calotrig ){ |
if ( !s4pulser && !calotrig ){ |
1585 |
printf(" Pkt_num: %i - Progressive number: %i \n",(int)headc,thisentry+1); |
printf(" Pkt_num: %i - Progressive number: %i \n",(int)headc,thisentry+1); |
1590 |
if ( calotrig ){ |
if ( calotrig ){ |
1591 |
printf(" Pkt_num: %i - Progressive number: %i - CALO trigger -\n",(int)headc,thisentry+1); |
printf(" Pkt_num: %i - Progressive number: %i - CALO trigger -\n",(int)headc,thisentry+1); |
1592 |
}; |
}; |
1593 |
printf(" On Board Time: %i (delta %i) [ms]\n",OBT,DOBT); |
printf(" On Board Time: %u (delta %i) [ms]\n",OBT,DOBT); |
1594 |
const char *trc2 = trcs; |
const char *trc2 = trcs; |
1595 |
printf(" TRIGGER: %s \n",trc2); |
printf(" TRIGGER: %s \n",trc2); |
1596 |
printf(" AC: CARD hit = %i CAT hit = %i CAS hit = %i \n",var.hcard,var.hcat,var.hcas); |
printf(" AC: CARD hit = %i CAT hit = %i CAS hit = %i \n",var.hcard,var.hcat,var.hcas); |
1602 |
printf(" CALO: NSTRIP = %i QTOT = %i [MIP]\n",var.nstrip,var.qtot); |
printf(" CALO: NSTRIP = %i QTOT = %i [MIP]\n",var.nstrip,var.qtot); |
1603 |
printf(" S4: %.2f [MIP] TOF: beta = %.2f \n",var.s4sig,var.beta[4]); |
printf(" S4: %.2f [MIP] TOF: beta = %.2f \n",var.s4sig,var.beta[4]); |
1604 |
printf(" ND: Trigger: neutrons = %i - Background: upper = %i lower = %i \n",var.trup,var.bkup,var.bkbo); |
printf(" ND: Trigger: neutrons = %i - Background: upper = %i lower = %i \n",var.trup,var.bkup,var.bkbo); |
1605 |
|
// }; |
1606 |
// |
// |
1607 |
} |
} |
1608 |
|
|
5161 |
// |
// |
5162 |
x = track->xm[plane]; |
x = track->xm[plane]; |
5163 |
Float_t xsig = track->dedx_x[plane]; |
Float_t xsig = track->dedx_x[plane]; |
5164 |
if ( track->xgood[plane] ){ |
if ( track->XGood(plane) ){ |
5165 |
//if ( x > -100 ){ |
//if ( x > -100 ){ |
5166 |
if ( xsig > 8. ) xsig = 8.; |
if ( xsig > 8. ) xsig = 8.; |
5167 |
if ( var.bw ){ |
if ( var.bw ){ |
5191 |
trkpad[planepad]->Range(-7.05,0.,7.05,8.); |
trkpad[planepad]->Range(-7.05,0.,7.05,8.); |
5192 |
x = track->ym[plane]; |
x = track->ym[plane]; |
5193 |
xsig = track->dedx_y[plane]; |
xsig = track->dedx_y[plane]; |
5194 |
if ( track->ygood[plane] ){ |
if ( track->YGood(plane) ){ |
5195 |
// if ( x > -100 ){ |
// if ( x > -100 ){ |
5196 |
if ( xsig > 8. ) xsig = 8.; |
if ( xsig > 8. ) xsig = 8.; |
5197 |
if ( var.bw ){ |
if ( var.bw ){ |
5255 |
Float_t xsig = track->dedx_x[plane]; |
Float_t xsig = track->dedx_x[plane]; |
5256 |
Float_t ysig = track->dedx_y[plane]; |
Float_t ysig = track->dedx_y[plane]; |
5257 |
// if ( x > -100 && y > -100. ){ |
// if ( x > -100 && y > -100. ){ |
5258 |
if ( track->xgood[plane] && track->ygood[plane] ){ |
if ( track->XGood(plane) && track->YGood(plane) ){ |
5259 |
if ( var.bw ){ |
if ( var.bw ){ |
5260 |
sigcol1 = -1; |
sigcol1 = -1; |
5261 |
sigcol2 = -1; |
sigcol2 = -1; |