33 Double_t ytooth = 0.5 * yplate / ntooth;
34 Double_t dshift = 2. * xplate + xtooth;
42 for (i = 0; i < ntooth; i++) {
44 yt = -yplate + (4 * i + 1) * ytooth;
46 xt = -xplate - xtooth;
47 yt = -yplate + (4 * i + 3) * ytooth;
57 for (i = 0; i < 6; i++) {
72 for (i = 0; i < ncells; i++) {
73 Double_t ycell = (2 * i + 1) * (dshift + 10);
81 for (i = 0; i < nrows; i++) {
82 Double_t xrow = 0.5 * (2 * i + 1) * dxrow;
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
Class describing rotation + translation.
void SetVisOption(Int_t option=0)
void SetVisLevel(Int_t level=3)
void CloseGeometry(Option_t *option="d")
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
void SetTopVolume(TGeoVolume *vol)
Base class describing materials.
Media are used to store properties related to tracking and which are useful only when using geometry ...
Class describing rotations.
void RotateX(Double_t angle) override
Rotate about X axis of the master frame with angle expressed in degrees.
void RotateZ(Double_t angle) override
Rotate about Z axis of the master frame with angle expressed in degrees.
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=nullptr, Option_t *option="")
Add a TGeoNode to the list of nodes.
void Draw(Option_t *option="") override
draw top volume according to option
void SetLineColor(Color_t lcolor) override
Set the line color.
constexpr Double_t DegToRad()
Conversion from degree to radian: .
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
Double_t Tan(Double_t)
Returns the tangent of an angle of x radians.