| 10,7 → 10,7 |
| #include "H2D.h" |
| #include "H1D.h" |
| |
| #define H3DMAX 500 |
| |
| H3D *h3[H3DMAX]; |
| //int Printf(char *format, ...); |
| |
| 169,6 → 169,8 |
| } |
| |
| int hid=499; |
| int i=0; |
| int j=0; |
| switch (direction){ |
| case 0:// xy |
| H2D_Init(hid,"projectionXY","projectionXY", |
| 175,8 → 177,8 |
| H3D_GetNbinsX(histogram), H3D_GetMinX(histogram),H3D_GetMaxX(histogram), |
| H3D_GetNbinsY(histogram), H3D_GetMinY(histogram),H3D_GetMaxY(histogram) |
| ); |
| for (int i=0; i < H3D_GetNbinsX(histogram); i++ ) |
| for (int j=0; j < H3D_GetNbinsY(histogram); j++ ) |
| for (i=0; i < H3D_GetNbinsX(histogram); i++ ) |
| for (j=0; j < H3D_GetNbinsY(histogram); j++ ) |
| H2D_SetBinContent(hid,i,j,H3D_GetBinContent(histogram,i,j,slice)); |
| break; |
| case 1:// xz |
| 184,8 → 186,8 |
| H3D_GetNbinsX(histogram), H3D_GetMinX(histogram),H3D_GetMaxX(histogram), |
| H3D_GetNbinsZ(histogram), H3D_GetMinZ(histogram),H3D_GetMaxZ(histogram) |
| ); |
| for (int i=0; i < H3D_GetNbinsX(histogram); i++ ) |
| for (int j=0; j < H3D_GetNbinsZ(histogram); j++ ) |
| for (i=0; i < H3D_GetNbinsX(histogram); i++ ) |
| for (j=0; j < H3D_GetNbinsZ(histogram); j++ ) |
| H2D_SetBinContent(hid,i,j,H3D_GetBinContent(histogram,i,slice,j)); |
| break; |
| case 2:// yz |
| 194,8 → 196,8 |
| H3D_GetNbinsY(histogram), H3D_GetMinY(histogram),H3D_GetMaxY(histogram), |
| H3D_GetNbinsZ(histogram), H3D_GetMinZ(histogram),H3D_GetMaxZ(histogram) |
| ); |
| for (int i=0; i < H3D_GetNbinsY(histogram); i++ ) |
| for (int j=0; j < H3D_GetNbinsZ(histogram); j++ ) |
| for (i=0; i < H3D_GetNbinsY(histogram); i++ ) |
| for (j=0; j < H3D_GetNbinsZ(histogram); j++ ) |
| H2D_SetBinContent(hid,i,j,H3D_GetBinContent(histogram,slice,i,j)); |
| |
| break; |