Draw a "representative" TXTRU shape.
{
TCanvas *canvas =
new TCanvas(
"xtru",
"Example XTRU object", 200, 10, 640, 640);
geometry->cd();
Float_t x[] = {-177.292, -308.432, -308.432, -305.435, -292.456, -280.01, -241.91, -241.91,
-177.292, -177.292, 177.292, 177.292, 241.91, 241.91, 280.06, 297.942,
305.435, 308.432, 308.432, 177.292, 177.292, -177.292};
Float_t y[] = {154.711, 23.5712, 1.1938, 1.1938, 8.6868, 8.6868, -3.7592, -90.0938, -154.711, -190.602, -190.602,
-154.711, -90.0938, -3.7592, 8.6868, 8.6868, 1.1938, 1.1938, 23.5712, 154.711, 190.602, 190.602};
for (i = 0; i <
nxy; i++) {
}
for (i = 0; i <
nz; i++) {
}
geometry->Draw();
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++)
file:
for (i = 0; i < 3; i++) {
}
}
}
int Int_t
Signed integer 4 bytes (int)
float Float_t
Float 4 bytes (float)
double Double_t
Double 8 bytes.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
virtual void GetRange(Float_t *min, Float_t *max)=0
virtual void SetRange(const Double_t *min, const Double_t *max)=0
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.