| 1 |
//------------------------------------------------------------------------------------------------------------------------------------------------------- |
//------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2 |
// |
// |
| 3 |
// EventViewer.c version 8.00 (2005-11-24) |
// EventViewer.c version 8.01 (2006-01-10) |
| 4 |
// |
// |
| 5 |
// Shows PAMELA events - Emiliano Mocchiutti |
// Shows PAMELA events - Emiliano Mocchiutti |
| 6 |
// |
// |
| 25 |
// |
// |
| 26 |
// Changelog: |
// Changelog: |
| 27 |
// |
// |
| 28 |
|
// 8.00 - 8.01 (2006-01-10): Added tracker measured positions used to determine the track. |
| 29 |
|
// |
| 30 |
// 7.03 - 8.00 (2005-11-24): many changes to compile the macro. The code is still very redundant and heavy but some bugs were fixed and now it should be more stable. |
// 7.03 - 8.00 (2005-11-24): many changes to compile the macro. The code is still very redundant and heavy but some bugs were fixed and now it should be more stable. |
| 31 |
// Do not require anymore the AcFunctions.h header, a clone has been written (aclev1class.h). |
// Do not require anymore the AcFunctions.h header, a clone has been written (aclev1class.h). |
| 32 |
// |
// |
| 3154 |
linea = new TLine(-7.05,10.,7.05,10.); |
linea = new TLine(-7.05,10.,7.05,10.); |
| 3155 |
linea1y = new TLine(0.,10.,0.,30.); |
linea1y = new TLine(0.,10.,0.,30.); |
| 3156 |
}; |
}; |
| 3157 |
linea->SetLineWidth(4); |
linea->SetLineWidth(2); |
| 3158 |
linea->SetLineColor(linecol); |
linea->SetLineColor(linecol); |
| 3159 |
linea->Draw(); |
linea->Draw(); |
| 3160 |
if ( l%2 ) { |
if ( l%2 ) { |
| 4808 |
trackp1->SetLineColor(trcol); |
trackp1->SetLineColor(trcol); |
| 4809 |
trackp1->SetLineWidth(1); |
trackp1->SetLineWidth(1); |
| 4810 |
trackp1->Draw(); |
trackp1->Draw(); |
|
//printf("sto stapando trk ntrk %i image %i trcol %i \n",trk.ntrk,trk.image[l],trcol); |
|
| 4811 |
TPolyLine *trackp2 = new TPolyLine(50,ptx2,pty2); |
TPolyLine *trackp2 = new TPolyLine(50,ptx2,pty2); |
| 4812 |
trackp2->SetLineColor(trcol); |
trackp2->SetLineColor(trcol); |
| 4813 |
trackp2->SetLineWidth(1); |
trackp2->SetLineWidth(1); |
| 4814 |
trackp2->SetLineStyle(3); |
trackp2->SetLineStyle(3); |
| 4815 |
trackp2->Draw(); |
trackp2->Draw(); |
| 4816 |
|
// |
| 4817 |
|
// Dots on measured points |
| 4818 |
|
// |
| 4819 |
|
TEllipse *elli; |
| 4820 |
|
Float_t x; |
| 4821 |
|
Float_t y; |
| 4822 |
|
Float_t z1; |
| 4823 |
|
Float_t z2; |
| 4824 |
|
for (Int_t g = 0; g<6; g++){ |
| 4825 |
|
x = trk.xm[l][g]*var.sfx/100. + var.xxvc; |
| 4826 |
|
y = trk.ym[l][g]*var.sfx/100. + var.xyvc; |
| 4827 |
|
z1 = (trk.zm[l][g]+11.2)*var.sfy/100. + var.yxvc; |
| 4828 |
|
z2 = (trk.zm[l][g]+11.2)*var.sfy/100. + var.yyvc; |
| 4829 |
|
elli = new TEllipse(x,z1,0.004,0.004,0.,-180.); |
| 4830 |
|
elli->SetFillStyle(1001); |
| 4831 |
|
elli->SetFillColor(2); |
| 4832 |
|
elli->Draw(); |
| 4833 |
|
elli = new TEllipse(y,z2,0.004,0.004,0.,-180.); |
| 4834 |
|
elli->SetFillStyle(1001); |
| 4835 |
|
elli->SetFillColor(2); |
| 4836 |
|
elli->Draw(); |
| 4837 |
|
}; |
| 4838 |
|
// |
| 4839 |
|
// |
| 4840 |
} else { |
} else { |
| 4841 |
printf(" WARNING: failed in determining the track! \n"); |
printf(" WARNING: failed in determining the track! \n"); |
| 4842 |
}; |
}; |