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

Macro for setting G3 visualization for ExGarfield example. 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 ExGarfield example.

Definition in file set_g3_vis.C.

Function Documentation

◆ set_g3_vis()

void set_g3_vis ( )

Macro for setting G3 visualization for ExGarfield example

Definition at line 15 of file set_g3_vis.C.

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