11 TCanvas *canvas =
new TCanvas(
"xtru",
"Example XTRU object",200,10,640,640);
17 TXTRU* atxtru =
new TXTRU(
"atxtru",
"atxtru",
"void",5,2);
22 { -177.292, -308.432, -308.432, -305.435, -292.456, -280.01
23 , -241.91, -241.91, -177.292, -177.292, 177.292, 177.292
24 , 241.91, 241.91, 280.06, 297.942, 305.435, 308.432
25 , 308.432, 177.292, 177.292, -177.292 };
27 { 154.711, 23.5712, 1.1938, 1.1938, 8.6868, 8.6868
28 , -3.7592, -90.0938, -154.711, -190.602, -190.602, -154.711
29 , -90.0938, -3.7592, 8.6868, 8.6868, 1.1938, 1.1938
30 , 23.5712, 154.711, 190.602, 190.602 };
43 for (i=0; i<nxy; i++) {
48 for (i=0; i<nz; i++) {
55 TNode* anode =
new TNode(
"anode",
"anode",atxtru);
70 for (i=0;i<3; i++) center[i] = 0.5*(max[i]+min[i]);
73 for (i=0;i<3; i++) maxSide =
TMath::Max(maxSide,max[i]-center[i]);
76 max[i] = center[i] + maxSide;
77 min[i] = center[i] - maxSide;
virtual void SetRange(const Double_t *min, const Double_t *max)=0
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TView * GetView() const =0
virtual void DefineSection(Int_t secNum, Float_t z, Float_t scale=1., Float_t x0=0., Float_t y0=0.)
Set z section iz information expand size of array if necessary.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void Draw(Option_t *option="")
Draw this Geometry.
virtual void Modified(Bool_t flag=1)=0
virtual void DefineVertex(Int_t pointNum, Float_t x, Float_t y)
Set vertex point ipt to (x,y) expand size of array if necessary.
you should not use this method at all Int_t Int_t z
virtual void cd(const char *path=0)
Change Current Geometry to this.
Short_t Max(Short_t a, Short_t b)
virtual void GetRange(Float_t *min, Float_t *max)=0