Geometry detector assembly example.
Modified to save the assembly as shape-extract.
void assembly()
{
"Geometry using assemblies");
for (i=0; i<ntooth; i++) {
xt = xplate+xtooth;
yt = -yplate + (4*i+1)*ytooth;
xt = -xplate-xtooth;
yt = -yplate + (4*i+3)*ytooth;
}
for (i=0; i<6; i++) {
}
for (i=0; i<ncells; i++) {
}
for (i=0; i<nrows; i++) {
if ((i%2)==0) yrow = -yrow;
}
}
Class describing rotation + translation.
The manager class for any TGeo geometry.
void SetVisOption(Int_t option=0)
set drawing mode :
void SetVisLevel(Int_t level=3)
set default level down to which visualization is performed
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
Make in one step a volume pointing to a box shape with given medium.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
Base class describing materials.
Media are used to store properties related to tracking and which are useful only when using geometry ...
Class describing rotations.
virtual void RotateX(Double_t angle)
Rotate about X axis of the master frame with angle expressed in degrees.
virtual void RotateZ(Double_t angle)
Rotate about Z axis of the master frame with angle expressed in degrees.
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void Draw(Option_t *option="")
draw top volume according to option
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
constexpr Double_t DegToRad()
Conversion from degree to radian: