2658 |
// |
// |
2659 |
// |
// |
2660 |
Bool_t repeat = true; |
Bool_t repeat = true; |
2661 |
Int_t numtr = 1; |
// Int_t numtr = 1; |
2662 |
|
Int_t numtr = 0; |
2663 |
Int_t repuntil = 0; |
Int_t repuntil = 0; |
2664 |
// |
// |
2665 |
// |
// |
2666 |
var.tofraw = 0; |
var.tofraw = 0; |
2667 |
// |
// |
2668 |
if ( level.file == 2 ) repuntil = L2->GetToFLevel2()->ntrk(); |
// if ( level.file == 2 ) repuntil = L2->GetToFLevel2()->ntrk(); |
2669 |
// printf("repuntil = %i \n",repuntil); |
// printf("repuntil = %i \n",repuntil); |
2670 |
|
if ( level.file == 2 ) repuntil = L2->GetTrkLevel2()->GetNTracks(); |
2671 |
//repuntil = L2->GetNTracks(); |
//repuntil = L2->GetNTracks(); |
2672 |
// |
// |
2673 |
while ( repeat ){ |
while ( repeat ){ |
2677 |
// |
// |
2678 |
// |
// |
2679 |
ToFTrkVar *ptt = 0; |
ToFTrkVar *ptt = 0; |
2680 |
|
PamTrack *ptrack = 0; |
2681 |
|
Float_t adc[4][12]; |
2682 |
|
Float_t tdc[4][12]; |
2683 |
|
memset(adc,0,4*12*sizeof(Float_t)); |
2684 |
|
memset(tdc,0,4*12*sizeof(Float_t)); |
2685 |
// |
// |
2686 |
// |
// |
2687 |
if ( repuntil == 1 || var.tofraw ){ |
if ( repuntil == 0 || var.tofraw ){ |
2688 |
numtr = 0; |
numtr = 0; |
2689 |
ptt = L2->GetToFLevel2()->GetToFTrkVar(0); |
ptt = L2->GetToFLevel2()->GetToFTrkVar(0); |
2690 |
repeat = false; |
repeat = false; |
2693 |
// |
// |
2694 |
if ( numtr >= repuntil-1 ) repeat = false; |
if ( numtr >= repuntil-1 ) repeat = false; |
2695 |
// |
// |
2696 |
ptt = L2->GetToFLevel2()->GetToFTrkVar(numtr); |
// ptt = L2->GetToFLevel2()->GetToFTrkVar(numtr); |
2697 |
|
ptrack = L2->GetTrack(numtr); |
2698 |
|
ptt = ptrack->GetToFTrack(); |
2699 |
}; |
}; |
2700 |
// |
// |
2701 |
xp11[0] = 0.; |
xp11[0] = 0.; |
2709 |
// |
// |
2710 |
ii = 2; |
ii = 2; |
2711 |
// |
// |
2712 |
Float_t adc[4][12]; |
Int_t myseq = ptt->trkseqno + 1; |
2713 |
Float_t tdc[4][12]; |
L2->GetToFLevel2()->GetMatrix(myseq,adc,tdc); |
2714 |
L2->GetToFLevel2()->GetMatrix(numtr,adc,tdc); |
// |
2715 |
|
// printf(" qua \n"); |
2716 |
// |
// |
2717 |
for ( Int_t i = 0; i<8; i++ ) { |
for ( Int_t i = 0; i<8; i++ ) { |
2718 |
if ( adc[ch11a[i]][hb11a[i]] < 1000. ){ |
if ( adc[ch11a[i]][hb11a[i]] < 1000. ){ |