36 |
// |
// |
37 |
#include <iostream> |
#include <iostream> |
38 |
#include <fstream> |
#include <fstream> |
39 |
|
#include <cstdlib> |
40 |
// |
// |
41 |
#include <TObject.h> |
#include <TObject.h> |
42 |
#include <TString.h> |
#include <TString.h> |
43 |
#include <TFile.h> |
#include <TFile.h> |
44 |
|
#include <TROOT.h> |
45 |
#include <TCanvas.h> |
#include <TCanvas.h> |
46 |
#include <TH1.h> |
#include <TH1.h> |
47 |
#include <TH1F.h> |
#include <TH1F.h> |
202 |
Int_t tshit, trshit, compdata,rawdata, errorfull, calevn1, calevn2, calevn3, calevn4, pshit[4][11]; |
Int_t tshit, trshit, compdata,rawdata, errorfull, calevn1, calevn2, calevn3, calevn4, pshit[4][11]; |
203 |
tshit = 0; |
tshit = 0; |
204 |
trshit = 0; |
trshit = 0; |
205 |
char *sezione; |
const char *sezione = ""; |
206 |
Bool_t check = false; |
Bool_t check = false; |
207 |
sezione = ""; |
// sezione = ""; |
208 |
stringstream errore; |
stringstream errore; |
209 |
errore.str(""); |
errore.str(""); |
210 |
// |
// |
522 |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
523 |
}; |
}; |
524 |
lver[se][2]++ ; |
lver[se][2]++ ; |
525 |
sighandler(headc,obt,i,se,nevents,evdone); |
if ( lver[se][2] == 1000 ){ |
526 |
printf(" latch up (data) in DSP mode alldexy %i planebases %i \n",alldexy,planebases); |
sighandler(headc,obt,i,se,nevents,evdone); |
527 |
|
printf(" latch up (data) in DSP mode alldexy %i planebases %i \n",alldexy,planebases); |
528 |
|
printf(" WARNING TOO MANY LATCHUP ERRORS ON DATA FOR THIS SECTION \n"); |
529 |
|
printf(" THEY WILL NOT BE DISPLAYED HERE ANYMORE FOR THIS FILE! \n"); |
530 |
|
}; |
531 |
|
if ( lver[se][2] < 1000 ){ |
532 |
|
sighandler(headc,obt,i,se,nevents,evdone); |
533 |
|
printf(" latch up (data) in DSP mode alldexy %i planebases %i \n",alldexy,planebases); |
534 |
|
}; |
535 |
}; |
}; |
536 |
} |
} |
537 |
// |
// |
538 |
if ( !bdone ){ |
if ( !bdone ){ |
539 |
Baseline->Fill(ce->base[l][ii][bl]); |
Baseline->Fill(ce->base[l][ii][bl]); |
540 |
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. ){ |
541 |
inbase++; |
inbase++; |
542 |
} else { |
} else { |
543 |
outbase++; |
outbase++; |
605 |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
if ( obt > maxobt[se] ) maxobt[se] = obt; |
606 |
}; |
}; |
607 |
lver[se][2]++ ; |
lver[se][2]++ ; |
608 |
sighandler(headc,obt,i,se,nevents,evdone); |
if ( lver[se][2] == 1000 ){ |
609 |
printf(" latch up (data) in RAW mode alldexy2 %i \n",alldexy2); |
sighandler(headc,obt,i,se,nevents,evdone); |
610 |
|
printf(" latch up (data) in RAW mode alldexy2 %i \n",alldexy2); |
611 |
|
printf(" WARNING TOO MANY LATCHUP ERRORS ON DATA FOR THIS SECTION \n"); |
612 |
|
printf(" THEY WILL NOT BE DISPLAYED HERE ANYMORE FOR THIS FILE! \n"); |
613 |
|
}; |
614 |
|
if ( lver[se][2] < 1000 ){ |
615 |
|
sighandler(headc,obt,i,se,nevents,evdone); |
616 |
|
printf(" latch up (data) in RAW mode alldexy2 %i \n",alldexy2); |
617 |
|
}; |
618 |
}; |
}; |
619 |
}; |
}; |
620 |
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 ) { |
662 |
if ( cestw & (1 << 3) ) ver[k][3]++ ; // raw mode |
if ( cestw & (1 << 3) ) ver[k][3]++ ; // raw mode |
663 |
if ( cestw & (1 << 4) ){ |
if ( cestw & (1 << 4) ){ |
664 |
ver[k][2]++ ; |
ver[k][2]++ ; |
665 |
sighandler(headc,obt,i,k,nevents,evdone); |
if ( ver[k][2] == 1000 ){ |
666 |
printf(" latch up alarm (st. word)\n"); |
sighandler(headc,obt,i,k,nevents,evdone); |
667 |
|
printf(" latch up alarm (st. word)\n"); |
668 |
|
printf(" WARNING TOO MANY LATCHUP ERRORS ON DATA FOR THIS SECTION \n"); |
669 |
|
printf(" THEY WILL NOT BE DISPLAYED HERE ANYMORE FOR THIS FILE! \n"); |
670 |
|
}; |
671 |
|
if ( ver[k][2] < 1000 ){ |
672 |
|
sighandler(headc,obt,i,k,nevents,evdone); |
673 |
|
printf(" latch up alarm (st. word)\n"); |
674 |
|
}; |
675 |
lupstw[k]->Fill(obt); |
lupstw[k]->Fill(obt); |
676 |
if ( swfirstobt[k] ) swminobt[k] = obt; |
if ( swfirstobt[k] ) swminobt[k] = obt; |
677 |
if ( obt > swmaxobt[k] ) swmaxobt[k] = obt; |
if ( obt > swmaxobt[k] ) swmaxobt[k] = obt; |
1106 |
Baseline->SetYTitle("Number of events"); |
Baseline->SetYTitle("Number of events"); |
1107 |
Baseline->Draw(); |
Baseline->Draw(); |
1108 |
h1max = Baseline->GetMaximum()*1.05; |
h1max = Baseline->GetMaximum()*1.05; |
1109 |
Double_t xc[4] = {2000.,4500.,4500.,2000.}; |
Double_t xc[4] = {2000.,5500.,5500.,2000.}; |
1110 |
Double_t yc[4] = {0.,0.,h1max,h1max}; |
Double_t yc[4] = {0.,0.,h1max,h1max}; |
1111 |
banda1 = new TPolyLine(4,xc,yc); |
banda1 = new TPolyLine(4,xc,yc); |
1112 |
banda1->SetLineColor(5); |
banda1->SetLineColor(5); |