Script drawing a detector geometry (here D0).
by default the geometry is drawn using the GL viewer Using the TBrowser, you can select other components if the file containing the geometry is not found in the local directory, it is automatically read from the ROOT web site.
- run with .x geomD0.C top level detectors are transparent
- or .x geomD0.C(1) top level detectors are visible
void geomD0(
Int_t allVisible = 0)
{
if (!allVisible) {
RecursiveTransparency(
gGeoManager->GetVolume(
"MUON"), 90);
}
}
{
for (
Int_t i = 0; i < nd; i++) {
}
}
{
for (
Int_t i = 0; i < nd; i++) {
}
}
int Int_t
Signed integer 4 bytes (int).
externTGeoManager * gGeoManager
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file
TGeoVolume * GetVolume() const
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Int_t GetNdaughters() const
void SetTransparency(Char_t transparency=0)
TGeoNode * GetNode(const char *name) const
get the pointer to a daughter node
void InvisibleAll(Bool_t flag=kTRUE)
Make volume and each of it daughters (in)visible.
- Authors
- Bertrand Bellenot, Rene Brun
Definition in file geomD0.C.