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

Macro for setting visualization for Example03. 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 visualization for Example03.

Definition in file set_g3_vis.C.

Function Documentation

◆ set_g3_vis()

void set_g3_vis ( )

Macro for setting G3 visualization for Example03

Definition at line 15 of file set_g3_vis.C.

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