2 |
* FTrkQLook_EXPERT.cxx |
* FTrkQLook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r04 |
* version v1r05 |
6 |
* Parameters: |
* Parameters: |
7 |
* file - the data file to analyze |
* file - the data file to analyze |
8 |
* fromevent - first event to analyze |
* fromevent - first event to analyze |
39 |
{ |
{ |
40 |
// |
// |
41 |
// obtain information about the data file and select the output dir |
// obtain information about the data file and select the output dir |
|
const string filepath=file.Data(); |
|
42 |
Int_t dwpos = file.Last('/'); |
Int_t dwpos = file.Last('/'); |
43 |
Int_t dwpos1 = file.Last('.'); |
Int_t dwpos1 = file.Last('.'); |
44 |
TString base,ffile ; |
TString base,ffile ; |
507 |
tr->GetEntry(ev); |
tr->GetEntry(ev); |
508 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
509 |
cod = eh->GetCounter(); |
cod = eh->GetCounter(); |
510 |
|
|
511 |
|
|
512 |
if(ev==maxevent-1) maxev=maxevent-1; |
if(ev==maxevent-1) maxev=maxevent-1; |
513 |
|
|
514 |
if((ph->GetOrbitalTime()<x[ev-minev-1] && ev-minev!=0) || ev-minev==MAXSTORAGE){ |
if((ph->GetOrbitalTime()<x[ev-minev-1] && ev-minev!=0) || ev-minev==MAXSTORAGE){ |
521 |
|
|
522 |
Int_t dsp=0; |
Int_t dsp=0; |
523 |
for(Int_t i=0; i<12; i++){ |
for(Int_t i=0; i<12; i++){ |
524 |
|
if(te->DSPnumber[i]<1 || te->DSPnumber[i]>12) { |
525 |
|
ALARM=1; |
526 |
|
break; |
527 |
|
} |
528 |
|
|
529 |
dsp=te->DSPnumber[i]-1; |
dsp=te->DSPnumber[i]-1; |
530 |
yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i]; |
yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i]; |
531 |
|
|
532 |
// |
// |
533 |
// Fill Cluster Signal and Lighting of the view histos |
// Fill Cluster Signal and Lighting of the view histos |
534 |
for(Int_t j=0;j<3;j++){ |
for(Int_t j=0;j<3;j++){ |
571 |
eventint[(ev-minev)]=te->eventn[0]; |
eventint[(ev-minev)]=te->eventn[0]; |
572 |
if((ev-minev)>=1 && eventint[(ev-minev)]!=eventint[(ev-minev)-1]+1 && eventint[(ev-minev)]!=1) |
if((ev-minev)>=1 && eventint[(ev-minev)]!=eventint[(ev-minev)-1]+1 && eventint[(ev-minev)]!=1) |
573 |
ALARM=1; |
ALARM=1; |
574 |
|
|
575 |
//******************************************************************************************** |
//******************************************************************************************** |
576 |
// file DSP warning |
// file DSP warning |
577 |
//******************************************************************************************** |
//******************************************************************************************** |
670 |
eventnumb[ii]->Draw("ap"); |
eventnumb[ii]->Draw("ap"); |
671 |
EventNumCanv[ii]->Update(); |
EventNumCanv[ii]->Update(); |
672 |
|
|
|
|
|
673 |
minev=maxev; |
minev=maxev; |
674 |
if(maxev==maxevent-1) { |
if(maxev==maxevent-1) { |
675 |
cntpgdat=ii+1; |
cntpgdat=ii+1; |
676 |
break; |
break; |
677 |
} |
} |
678 |
|
|
679 |
} |
} |
680 |
|
|
681 |
|
|
682 |
alarm.close(); |
alarm.close(); |
683 |
|
|
684 |
//**************************************************************************************** |
//**************************************************************************************** |