void xtruSamples()
{
TBRIK* world =
new TBRIK(
"world",
"world",
"void",bigdim,bigdim,bigdim);
TNode* worldnode =
new TNode(
"worldnode",
"world node",world);
Float_t x[] = { -0.50, -1.20, 1.20, 0.50, 0.50, 1.20, -1.20, -0.50 };
Float_t y[] = { -0.75, -2.00, -2.00, -0.75, 0.75, 2.00, 2.00, 0.75 };
Float_t z[] = { -0.50, -1.50, -1.50, 1.50, 1.50, 0.50 };
Float_t s[] = { 0.50, 1.00, 1.50, 1.50, 1.00, 0.50 };
Float_t convexscale[] = { 7.0, -1.0, 1.5 };
Int_t icolor[] = { 1, 2, 3, 2, 2, 2, 4, 2, 6 };
for (
Int_t zcase = 0; zcase<3; zcase++) {
if (zcase == 1 && !domalformed) continue;
for (
Int_t xycase = 0; xycase<3; xycase++) {
if (xycase == 1 && !domalformed) continue;
char name[9];
sprintf(name,"txtru%1d%1d%1d",xycase,zcase,zseg);
Float_t zsign = (reversez) ? -1 : 1;
for (i=0; i<nxy; i++) {
if (i==0||i==3||i==4||i==7) xtmp *= convexscale[xycase];
if (xycase==2) xtmp *=2;
}
for (i=0, j=0; i<zseg; i++) {
if (i==0||i==5) ztmp *= convexscale[zcase];
if (zcase==2) ztmp *= 2.5;
if (zseg>2 && zcase!=2 && (i==1||i==4)) continue;
j++;
}
Float_t pos_scale = (domalformed) ? 10 : 6;
Float_t xpos = (xycase-1)*pos_scale*unit;
Float_t ypos = (zcase-1)*pos_scale*unit;
}
}
TCONE* zcone =
new TCONE(
"zcone",
"zcone",
"void",zhalf,0.,rmax,0.,0.);
TNode* zconenode =
new TNode(
"zconenode",
"zconenode",zcone);
TBRIK* zbrik =
new TBRIK(
"zbrik",
"zbrik",
"void",rmax,rmax,dzstub);
TNode* zbriknode =
new TNode(
"zbriknode",
"zbriknode",zbrik);
if (thisPad) {
if (!view) return;
int i;
for (i=0;i<3; i++) center[i] = 0.5*(max[i]+min[i]);
for (i=0;i<3; i++) maxSide =
TMath::Max(maxSide,max[i]-center[i]);
file:
for (i=0;i<3; i++) {
max[i] = center[i] + maxSide;
min[i] = center[i] - maxSide;
}
}
}