86 |
} else { |
} else { |
87 |
Int_t posiz2 = 0; |
Int_t posiz2 = 0; |
88 |
stringcopy(file2,gSystem->BaseName(filename.Data()),posiz2,posiz); |
stringcopy(file2,gSystem->BaseName(filename.Data()),posiz2,posiz); |
89 |
TString pdat(".dat"); |
TString pdat(".pam"); |
90 |
stringappend(file2,pdat); |
stringappend(file2,pdat); |
91 |
}; |
}; |
92 |
return file2; |
return file2; |
520 |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
521 |
}; |
}; |
522 |
lver[se][2]++ ; |
lver[se][2]++ ; |
523 |
sighandler(headc,obt,i,se,nevents,evdone); |
if ( lver[se][2] == 1000 ){ |
524 |
printf(" latch up (data) in DSP mode alldexy %i planebases %i \n",alldexy,planebases); |
sighandler(headc,obt,i,se,nevents,evdone); |
525 |
|
printf(" latch up (data) in DSP mode alldexy %i planebases %i \n",alldexy,planebases); |
526 |
|
printf(" WARNING TOO MANY LATCHUP ERRORS ON DATA FOR THIS SECTION \n"); |
527 |
|
printf(" THEY WILL NOT BE DISPLAYED HERE ANYMORE FOR THIS FILE! \n"); |
528 |
|
}; |
529 |
|
if ( lver[se][2] < 1000 ){ |
530 |
|
sighandler(headc,obt,i,se,nevents,evdone); |
531 |
|
printf(" latch up (data) in DSP mode alldexy %i planebases %i \n",alldexy,planebases); |
532 |
|
}; |
533 |
}; |
}; |
534 |
} |
} |
535 |
// |
// |
536 |
if ( !bdone ){ |
if ( !bdone ){ |
537 |
Baseline->Fill(ce->base[l][ii][bl]); |
Baseline->Fill(ce->base[l][ii][bl]); |
538 |
if ( ce->base[l][ii][bl] > 2000. && ce->base[l][ii][bl] < 4500. ){ |
if ( ce->base[l][ii][bl] > 2000. && ce->base[l][ii][bl] < 5500. ){ |
539 |
inbase++; |
inbase++; |
540 |
} else { |
} else { |
541 |
outbase++; |
outbase++; |
603 |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
604 |
}; |
}; |
605 |
lver[se][2]++ ; |
lver[se][2]++ ; |
606 |
sighandler(headc,obt,i,se,nevents,evdone); |
if ( lver[se][2] == 1000 ){ |
607 |
printf(" latch up (data) in RAW mode alldexy2 %i \n",alldexy2); |
sighandler(headc,obt,i,se,nevents,evdone); |
608 |
|
printf(" latch up (data) in RAW mode alldexy2 %i \n",alldexy2); |
609 |
|
printf(" WARNING TOO MANY LATCHUP ERRORS ON DATA FOR THIS SECTION \n"); |
610 |
|
printf(" THEY WILL NOT BE DISPLAYED HERE ANYMORE FOR THIS FILE! \n"); |
611 |
|
}; |
612 |
|
if ( lver[se][2] < 1000 ){ |
613 |
|
sighandler(headc,obt,i,se,nevents,evdone); |
614 |
|
printf(" latch up (data) in RAW mode alldexy2 %i \n",alldexy2); |
615 |
|
}; |
616 |
}; |
}; |
617 |
}; |
}; |
618 |
if ( ce->dexy[l][ii][kk] > 0 && ce->dexy[l][ii][kk] < 32000 ) { |
if ( ce->dexy[l][ii][kk] > 0 && ce->dexy[l][ii][kk] < 32000 ) { |
660 |
if ( cestw & (1 << 3) ) ver[k][3]++ ; // raw mode |
if ( cestw & (1 << 3) ) ver[k][3]++ ; // raw mode |
661 |
if ( cestw & (1 << 4) ){ |
if ( cestw & (1 << 4) ){ |
662 |
ver[k][2]++ ; |
ver[k][2]++ ; |
663 |
sighandler(headc,obt,i,k,nevents,evdone); |
if ( ver[k][2] == 1000 ){ |
664 |
printf(" latch up alarm (st. word)\n"); |
sighandler(headc,obt,i,k,nevents,evdone); |
665 |
|
printf(" latch up alarm (st. word)\n"); |
666 |
|
printf(" WARNING TOO MANY LATCHUP ERRORS ON DATA FOR THIS SECTION \n"); |
667 |
|
printf(" THEY WILL NOT BE DISPLAYED HERE ANYMORE FOR THIS FILE! \n"); |
668 |
|
}; |
669 |
|
if ( ver[k][2] < 1000 ){ |
670 |
|
sighandler(headc,obt,i,k,nevents,evdone); |
671 |
|
printf(" latch up alarm (st. word)\n"); |
672 |
|
}; |
673 |
lupstw[k]->Fill(obt); |
lupstw[k]->Fill(obt); |
674 |
if ( swfirstobt[k] ) swminobt[k] = obt; |
if ( swfirstobt[k] ) swminobt[k] = obt; |
675 |
if ( obt > swmaxobt[k] ) swmaxobt[k] = obt; |
if ( obt > swmaxobt[k] ) swmaxobt[k] = obt; |
1104 |
Baseline->SetYTitle("Number of events"); |
Baseline->SetYTitle("Number of events"); |
1105 |
Baseline->Draw(); |
Baseline->Draw(); |
1106 |
h1max = Baseline->GetMaximum()*1.05; |
h1max = Baseline->GetMaximum()*1.05; |
1107 |
Double_t xc[4] = {2000.,4500.,4500.,2000.}; |
Double_t xc[4] = {2000.,5500.,5500.,2000.}; |
1108 |
Double_t yc[4] = {0.,0.,h1max,h1max}; |
Double_t yc[4] = {0.,0.,h1max,h1max}; |
1109 |
banda1 = new TPolyLine(4,xc,yc); |
banda1 = new TPolyLine(4,xc,yc); |
1110 |
banda1->SetLineColor(5); |
banda1->SetLineColor(5); |