398 |
Int_t dlen = 10; |
Int_t dlen = 10; |
399 |
// |
// |
400 |
char o[200000]; |
char o[200000]; |
401 |
|
char zz[200000]; |
402 |
char col[13]; |
char col[13]; |
403 |
char col2[13]; |
char col2[13]; |
404 |
// |
// |
405 |
setcolor(col,RESET, GREEN, WHITE); |
setcolor(col,RESET, GREEN, WHITE); |
406 |
sprintf(o,"%s======> EVENT:%i\n",col, thisentry); |
sprintf(o,"%s======> EVENT:%i\n",col, thisentry); |
407 |
|
sprintf(zz,"======> EVENT:%i\n", thisentry); |
408 |
// |
// |
409 |
setcolor(col,RESET, RED, WHITE); |
setcolor(col,RESET, RED, WHITE); |
410 |
sprintf(o,"%s%sBranch %s\n",o,col,b1->GetName()); |
sprintf(o,"%s%sBranch %s\n",o,col,b1->GetName()); |
411 |
|
sprintf(zz,"%sBranch %s\n",zz,b1->GetName()); |
412 |
setcolor(col,RESET, BLACK, WHITE); |
setcolor(col,RESET, BLACK, WHITE); |
413 |
sprintf(o,"%s%s",o,col); |
sprintf(o,"%s%s",o,col); |
414 |
// |
// |
436 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
437 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
438 |
sprintf(o,"%s%s %-15s%s =",o,col,((TBranch*)branch_array->At(l))->GetName(),col2); |
sprintf(o,"%s%s %-15s%s =",o,col,((TBranch*)branch_array->At(l))->GetName(),col2); |
439 |
|
sprintf(zz,"%s %-15s =",zz,((TBranch*)branch_array->At(l))->GetName()); |
440 |
// |
// |
441 |
j = 0; |
j = 0; |
442 |
// |
// |
449 |
while ( j < length ){ |
while ( j < length ){ |
450 |
if ( j < length -1 ){ |
if ( j < length -1 ){ |
451 |
sprintf(o,"%s %i ,",o,(Int_t)tb->GetValue(j,0)); |
sprintf(o,"%s %i ,",o,(Int_t)tb->GetValue(j,0)); |
452 |
|
sprintf(zz,"%s %i ,",zz,(Int_t)tb->GetValue(j,0)); |
453 |
} else { |
} else { |
454 |
sprintf(o,"%s %i",o,(Int_t)tb->GetValue(j,0)); |
sprintf(o,"%s %i",o,(Int_t)tb->GetValue(j,0)); |
455 |
|
sprintf(zz,"%s %i",zz,(Int_t)tb->GetValue(j,0)); |
456 |
}; |
}; |
457 |
j++; |
j++; |
458 |
}; |
}; |
464 |
while ( j < length ){ |
while ( j < length ){ |
465 |
if ( j < length -1 ){ |
if ( j < length -1 ){ |
466 |
sprintf(o,"%s %u ,",o,(UInt_t)tb->GetValue(j,0)); |
sprintf(o,"%s %u ,",o,(UInt_t)tb->GetValue(j,0)); |
467 |
|
sprintf(zz,"%s %u ,",zz,(UInt_t)tb->GetValue(j,0)); |
468 |
} else { |
} else { |
469 |
sprintf(o,"%s %u",o,(UInt_t)tb->GetValue(j,0)); |
sprintf(o,"%s %u",o,(UInt_t)tb->GetValue(j,0)); |
470 |
|
sprintf(zz,"%s %u",zz,(UInt_t)tb->GetValue(j,0)); |
471 |
}; |
}; |
472 |
j++; |
j++; |
473 |
}; |
}; |
479 |
while ( j < length ){ |
while ( j < length ){ |
480 |
if ( j < length -1 ){ |
if ( j < length -1 ){ |
481 |
sprintf(o,"%s %f ,",o,tb->GetValue(j,0)); |
sprintf(o,"%s %f ,",o,tb->GetValue(j,0)); |
482 |
|
sprintf(zz,"%s %f ,",zz,tb->GetValue(j,0)); |
483 |
} else { |
} else { |
484 |
sprintf(o,"%s %f",o,tb->GetValue(j,0)); |
sprintf(o,"%s %f",o,tb->GetValue(j,0)); |
485 |
|
sprintf(zz,"%s %f",zz,tb->GetValue(j,0)); |
486 |
}; |
}; |
487 |
j++; |
j++; |
488 |
}; |
}; |
517 |
// printf("ciao %s \n",pr->Data()); |
// printf("ciao %s \n",pr->Data()); |
518 |
// }; |
// }; |
519 |
sprintf(o,"%s TString - not implemented yet -",o); |
sprintf(o,"%s TString - not implemented yet -",o); |
520 |
|
sprintf(zz,"%s TString - not implemented yet -",zz); |
521 |
}; |
}; |
522 |
// |
// |
523 |
// TArray |
// TArray |
618 |
// sprintf(o,"%s\n",o); |
// sprintf(o,"%s\n",o); |
619 |
// |
// |
620 |
sprintf(o,"%s TArray - not implemented yet -",o); |
sprintf(o,"%s TArray - not implemented yet -",o); |
621 |
|
sprintf(zz,"%s TArray - not implemented yet -",zz); |
622 |
// |
// |
623 |
}; |
}; |
624 |
// |
// |
625 |
sprintf(o,"%s\n",o); |
sprintf(o,"%s\n",o); |
626 |
|
sprintf(zz,"%s\n",zz); |
627 |
break; |
break; |
628 |
case 3: |
case 3: |
629 |
// |
// |
632 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
633 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
634 |
sprintf(o,"%s%s %-15s%s = %d\n",o,col,tb->GetName(), col2, tb->GetNdata()); |
sprintf(o,"%s%s %-15s%s = %d\n",o,col,tb->GetName(), col2, tb->GetNdata()); |
635 |
|
sprintf(zz,"%s %-15s = %d\n",zz,tb->GetName(), tb->GetNdata()); |
636 |
|
|
637 |
// |
// |
638 |
if ( tb->GetNdata() ){ |
if ( tb->GetNdata() ){ |
683 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
684 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
685 |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
686 |
|
sprintf(zz,"%s %-15s = ",zz,foglia->GetName()); |
687 |
while ( j < cl->GetEntriesFast() ){ |
while ( j < cl->GetEntriesFast() ){ |
688 |
if ( j < cl->GetEntriesFast() -1 ){ |
if ( j < cl->GetEntriesFast() -1 ){ |
689 |
sprintf(o,"%s %i ,",o,(Int_t)stb->GetValue(j,slength)); |
sprintf(o,"%s %i ,",o,(Int_t)stb->GetValue(j,slength)); |
690 |
|
sprintf(zz,"%s %i ,",zz,(Int_t)stb->GetValue(j,slength)); |
691 |
} else { |
} else { |
692 |
sprintf(o,"%s %i",o,(Int_t)stb->GetValue(j,slength)); |
sprintf(o,"%s %i",o,(Int_t)stb->GetValue(j,slength)); |
693 |
|
sprintf(zz,"%s %i",zz,(Int_t)stb->GetValue(j,slength)); |
694 |
}; |
}; |
695 |
j++; |
j++; |
696 |
}; |
}; |
703 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
704 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
705 |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
706 |
|
sprintf(zz,"%s %-15s = ",zz,foglia->GetName()); |
707 |
while ( j < cl->GetEntriesFast() ){ |
while ( j < cl->GetEntriesFast() ){ |
708 |
if ( j < cl->GetEntriesFast() -1 ){ |
if ( j < cl->GetEntriesFast() -1 ){ |
709 |
sprintf(o,"%s %f ,",o,stb->GetValue(j,slength)); |
sprintf(o,"%s %f ,",o,stb->GetValue(j,slength)); |
710 |
|
sprintf(zz,"%s %f ,",zz,stb->GetValue(j,slength)); |
711 |
} else { |
} else { |
712 |
sprintf(o,"%s %f",o,stb->GetValue(j,slength)); |
sprintf(o,"%s %f",o,stb->GetValue(j,slength)); |
713 |
|
sprintf(zz,"%s %f",zz,stb->GetValue(j,slength)); |
714 |
}; |
}; |
715 |
j++; |
j++; |
716 |
}; |
}; |
723 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
724 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
725 |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
726 |
|
sprintf(zz,"%s %-15s = ",zz,foglia->GetName()); |
727 |
Bool_t bold = true; |
Bool_t bold = true; |
728 |
while ( j < tb->GetNdata() ){ |
while ( j < tb->GetNdata() ){ |
729 |
if ( bold ){ |
if ( bold ){ |
737 |
while ( jj < slength ){ |
while ( jj < slength ){ |
738 |
if ( jj < slength-1 ){ |
if ( jj < slength-1 ){ |
739 |
sprintf(o,"%s %f ,",o,stb->GetValue(j,jj,true)); |
sprintf(o,"%s %f ,",o,stb->GetValue(j,jj,true)); |
740 |
|
sprintf(zz,"%s %f ,",zz,stb->GetValue(j,jj,true)); |
741 |
} else { |
} else { |
742 |
sprintf(o,"%s %f",o,stb->GetValue(j,jj,true)); |
sprintf(o,"%s %f",o,stb->GetValue(j,jj,true)); |
743 |
|
sprintf(zz,"%s %f",zz,stb->GetValue(j,jj,true)); |
744 |
}; |
}; |
745 |
jj++; |
jj++; |
746 |
}; |
}; |
747 |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
748 |
|
if ( j < tb->GetNdata() -1 ) sprintf(zz,"%s ,",zz); |
749 |
if ( !bold ){ |
if ( !bold ){ |
750 |
bold = true; |
bold = true; |
751 |
} else { |
} else { |
766 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
767 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
768 |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
sprintf(o,"%s%s %-15s%s = ",o,col,foglia->GetName(),col2); |
769 |
|
sprintf(zz,"%s %-15s = ",zz,foglia->GetName()); |
770 |
while ( j < tb->GetNdata() ){ |
while ( j < tb->GetNdata() ){ |
771 |
Int_t jj = 0; |
Int_t jj = 0; |
772 |
while ( jj < slength ){ |
while ( jj < slength ){ |
773 |
if ( jj < slength-1 ){ |
if ( jj < slength-1 ){ |
774 |
sprintf(o,"%s %i ,",o,(Int_t)stb->GetValue(j,jj,true)); |
sprintf(o,"%s %i ,",o,(Int_t)stb->GetValue(j,jj,true)); |
775 |
|
sprintf(zz,"%s %i ,",zz,(Int_t)stb->GetValue(j,jj,true)); |
776 |
} else { |
} else { |
777 |
sprintf(o,"%s %i",o,(Int_t)stb->GetValue(j,jj,true)); |
sprintf(o,"%s %i",o,(Int_t)stb->GetValue(j,jj,true)); |
778 |
|
sprintf(zz,"%s %i",zz,(Int_t)stb->GetValue(j,jj,true)); |
779 |
}; |
}; |
780 |
jj++; |
jj++; |
781 |
}; |
}; |
782 |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
783 |
|
if ( j < tb->GetNdata() -1 ) sprintf(zz,"%s ,",zz); |
784 |
j++; |
j++; |
785 |
}; |
}; |
786 |
}; |
}; |
813 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
814 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
815 |
sprintf(o,"%s%s %s[%i]%s = ",o,col,foglia->GetName(),arr->GetSize(),col2); |
sprintf(o,"%s%s %s[%i]%s = ",o,col,foglia->GetName(),arr->GetSize(),col2); |
816 |
|
sprintf(zz,"%s %s[%i] = ",zz,foglia->GetName(),arr->GetSize()); |
817 |
// |
// |
818 |
while ( j < tb->GetNdata() ){ |
while ( j < tb->GetNdata() ){ |
819 |
// |
// |
824 |
while ( jj < arlen ){ |
while ( jj < arlen ){ |
825 |
if ( jj < arlen-1 ){ |
if ( jj < arlen-1 ){ |
826 |
sprintf(o,"%s %i ,",o,arr->At(jj)); |
sprintf(o,"%s %i ,",o,arr->At(jj)); |
827 |
|
sprintf(zz,"%s %i ,",zz,arr->At(jj)); |
828 |
} else { |
} else { |
829 |
sprintf(o,"%s %i",o,arr->At(jj)); |
sprintf(o,"%s %i",o,arr->At(jj)); |
830 |
|
sprintf(zz,"%s %i",zz,arr->At(jj)); |
831 |
}; |
}; |
832 |
jj++; |
jj++; |
833 |
}; |
}; |
834 |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
835 |
|
if ( j < tb->GetNdata() -1 ) sprintf(zz,"%s ,",zz); |
836 |
j++; |
j++; |
837 |
}; |
}; |
838 |
}; |
}; |
850 |
setcolor(col,RESET, BLUE, WHITE); |
setcolor(col,RESET, BLUE, WHITE); |
851 |
setcolor(col2,RESET, BLACK, WHITE); |
setcolor(col2,RESET, BLACK, WHITE); |
852 |
sprintf(o,"%s%s %s[%i]%s = ",o,col,foglia->GetName(),arr->GetSize(),col2); |
sprintf(o,"%s%s %s[%i]%s = ",o,col,foglia->GetName(),arr->GetSize(),col2); |
853 |
|
sprintf(zz,"%s %s[%i] = ",zz,foglia->GetName(),arr->GetSize()); |
854 |
// |
// |
855 |
while ( j < tb->GetNdata() ){ |
while ( j < tb->GetNdata() ){ |
856 |
// |
// |
861 |
while ( jj < arlen ){ |
while ( jj < arlen ){ |
862 |
if ( jj < arlen-1 ){ |
if ( jj < arlen-1 ){ |
863 |
sprintf(o,"%s %f ,",o,arr->At(jj)); |
sprintf(o,"%s %f ,",o,arr->At(jj)); |
864 |
|
sprintf(zz,"%s %f ,",zz,arr->At(jj)); |
865 |
} else { |
} else { |
866 |
sprintf(o,"%s %f",o,arr->At(jj)); |
sprintf(o,"%s %f",o,arr->At(jj)); |
867 |
|
sprintf(zz,"%s %f",zz,arr->At(jj)); |
868 |
}; |
}; |
869 |
jj++; |
jj++; |
870 |
}; |
}; |
871 |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
if ( j < tb->GetNdata() -1 ) sprintf(o,"%s ,",o); |
872 |
|
if ( j < tb->GetNdata() -1 ) sprintf(zz,"%s ,",zz); |
873 |
j++; |
j++; |
874 |
}; |
}; |
875 |
}; |
}; |
876 |
}; |
}; |
877 |
sprintf(o,"%s\n",o); |
sprintf(o,"%s\n",o); |
878 |
|
sprintf(zz,"%s\n",zz); |
879 |
break; |
break; |
880 |
}; |
}; |
881 |
}; |
}; |
884 |
break; |
break; |
885 |
}; |
}; |
886 |
}; |
}; |
|
// pamgui->DIALOG(0,o); |
|
887 |
printf("%s\n",o); |
printf("%s\n",o); |
888 |
|
pamgui->DIALOG(4,zz); |
889 |
}; |
}; |
890 |
|
|
891 |
|
|
1099 |
// |
// |
1100 |
if ( level.file == 2 ){ |
if ( level.file == 2 ){ |
1101 |
// |
// |
1102 |
printf(" %s \n",ddec.Data()); |
// printf(" %s \n",ddec.Data()); |
1103 |
if ( !L2 ){ |
if ( !L2 ){ |
1104 |
L2 = new PamLevel2("",file.Data(),ddec.Data()); |
L2 = new PamLevel2("",file.Data(),ddec.Data()); |
1105 |
otr = L2->GetPamTree(); |
otr = L2->GetPamTree(); |
1106 |
printf(" l2 constructor\n"); |
// printf(" l2 constructor\n"); |
1107 |
// printf(" abst %u obt %u qtot %f \n",L2->GetOrbitalInfo()->absTime,L2->GetOrbitalInfo()->OBT,L2->GetCaloLevel2()->qtot); |
// printf(" abst %u obt %u qtot %f \n",L2->GetOrbitalInfo()->absTime,L2->GetOrbitalInfo()->OBT,L2->GetCaloLevel2()->qtot); |
1108 |
} else { |
} else { |
1109 |
// |
// |
1110 |
printf(" l2 already exist \n"); |
// printf(" l2 already exist \n"); |
1111 |
otr = L2->GetPamTree(gSystem->DirName(file.Data()),file.Data(),ddec.Data()); |
otr = L2->GetPamTree(gSystem->DirName(file.Data()),file.Data(),ddec.Data()); |
1112 |
L2->GetRunTree(gSystem->DirName(file.Data()),file.Data()); |
L2->GetRunTree(gSystem->DirName(file.Data()),file.Data()); |
1113 |
// |
// |
5240 |
trkpad[planepad]->Range(-8.1,0.,8.1,8.); |
trkpad[planepad]->Range(-8.1,0.,8.1,8.); |
5241 |
// |
// |
5242 |
x = track->xm[plane]; |
x = track->xm[plane]; |
5243 |
Float_t xsig = track->dedx_x[plane]; |
Float_t xsig = fabs(track->dedx_x[plane]); |
5244 |
if ( track->XGood(plane) ){ |
if ( track->XGood(plane) ){ |
5245 |
//if ( x > -100 ){ |
//if ( x > -100 ){ |
5246 |
if ( xsig > 8. ) xsig = 8.; |
if ( xsig > 8. ) xsig = 8.; |
5249 |
} else { |
} else { |
5250 |
sigcol2 = 1; |
sigcol2 = 1; |
5251 |
}; |
}; |
5252 |
ColorTRKMIP(track->dedx_x[plane],sigcol2,0); |
ColorTRKMIP(fabs(track->dedx_x[plane]),sigcol2,0); |
5253 |
linea = new TLine(x,0.01,x,xsig); |
linea = new TLine(x,0.01,x,xsig); |
5254 |
linea->SetLineWidth(2); |
linea->SetLineWidth(2); |
5255 |
linea->SetLineColor(sigcol2); |
linea->SetLineColor(sigcol2); |
5270 |
trkpad[planepad]->cd(); |
trkpad[planepad]->cd(); |
5271 |
trkpad[planepad]->Range(-7.05,0.,7.05,8.); |
trkpad[planepad]->Range(-7.05,0.,7.05,8.); |
5272 |
x = -track->ym[plane]; |
x = -track->ym[plane]; |
5273 |
xsig = track->dedx_y[plane]; |
xsig = fabs(track->dedx_y[plane]); |
5274 |
if ( track->YGood(plane) ){ |
if ( track->YGood(plane) ){ |
5275 |
// if ( x > -100 ){ |
// if ( x > -100 ){ |
5276 |
if ( xsig > 8. ) xsig = 8.; |
if ( xsig > 8. ) xsig = 8.; |
5279 |
} else { |
} else { |
5280 |
sigcol2 = 1; |
sigcol2 = 1; |
5281 |
}; |
}; |
5282 |
ColorTRKMIP(track->dedx_y[plane],sigcol2,0); |
ColorTRKMIP(fabs(track->dedx_y[plane]),sigcol2,0); |
5283 |
linea = new TLine(x,0.01,x,xsig); |
linea = new TLine(x,0.01,x,xsig); |
5284 |
linea->SetLineWidth(2); |
linea->SetLineWidth(2); |
5285 |
linea->SetLineColor(sigcol2); |
linea->SetLineColor(sigcol2); |
5332 |
// |
// |
5333 |
x = track->xm[plane]; |
x = track->xm[plane]; |
5334 |
Float_t y = -track->ym[plane]; |
Float_t y = -track->ym[plane]; |
5335 |
Float_t xsig = track->dedx_x[plane]; |
Float_t xsig = fabs(track->dedx_x[plane]); |
5336 |
Float_t ysig = track->dedx_y[plane]; |
Float_t ysig = fabs(track->dedx_y[plane]); |
5337 |
// if ( x > -100 && y > -100. ){ |
// if ( x > -100 && y > -100. ){ |
5338 |
if ( track->XGood(plane) && track->YGood(plane) ){ |
if ( track->XGood(plane) && track->YGood(plane) ){ |
5339 |
if ( var.bw ){ |
if ( var.bw ){ |