VMC Examples Version 6.6
Loading...
Searching...
No Matches
set_g3_vis.C File Reference

Macro for setting G3 visualization for Example TR. More...

#include "TVirtualMC.h"
Include dependency graph for set_g3_vis.C:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void set_g3_vis ()
 

Detailed Description

Macro for setting G3 visualization for Example TR.

Definition in file set_g3_vis.C.

Function Documentation

◆ set_g3_vis()

void set_g3_vis ( )

Macro for setting G3 visualization for Example TR

Definition at line 15 of file set_g3_vis.C.

16{
17/// Macro for setting G3 visualization for Example TR
18
19 if ( TString(gMC->GetName()) == "TGeant3TGeo" ) {
20 // Set drawing options
21 TGeoVolume* vol;
22 vol = gGeoManager->GetVolume("Radiator");
23 if (vol) vol->SetLineColor(kMagenta);
24 vol = gGeoManager->GetVolume("Absorber");
25 if (vol) vol->SetLineColor(kYellow);
26 gMC->SetCollectTracks(kTRUE);
27 }
28}