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