21 "Geometry using assemblies");
42 Double_t dshift = 2.*xplate + xtooth;
50 for (i=0; i<ntooth; i++) {
52 yt = -yplate + (4*i+1)*ytooth;
55 yt = -yplate + (4*i+3)*ytooth;
80 for (i=0; i<ncells; i++) {
81 Double_t ycell = (2*i+1)*(dshift+10);
89 for (i=0; i<nrows; i++) {
92 if ((i%2)==0) yrow = -yrow;
112 en->
Save(
"assembly.root",
"Assembly");
The manager class for any TGeo geometry.
TGeoNode * GetNode() const
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void RotateX(Double_t angle)
Rotate about X axis of the master frame with angle expressed in degrees.
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
Class describing translations.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
Base class describing materials.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
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 Save(const char *file, const char *name="Extract", Bool_t leafs_only=kFALSE)
Save TEveGeoShapeExtract tree starting at this node.
constexpr Double_t DegToRad()
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement...
R__EXTERN TSystem * gSystem
Class describing rotation + translation.
R__EXTERN TEveManager * gEve
TGeoNode * GetTopNode() const
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
virtual void RotateZ(Double_t angle)
Rotate about Z axis of the master frame with angle expressed in degrees.
Class describing rotations.
void SetVisLevel(Int_t vl)
R__EXTERN TGeoManager * gGeoManager
virtual void SetVisibility(Bool_t vis=kTRUE)
set visibility of this volume
Media are used to store properties related to tracking and which are useful only when using geometry ...
virtual void SetLineColor(Color_t lcolor)
Set the line color.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
virtual void ExpandIntoListTreesRecursively()
Expand children into all list-trees recursively.
TGeoVolume * GetVolume() const