VMC Examples Version 6.6
Loading...
Searching...
No Matches
set_g3_vis.C
Go to the documentation of this file.
1//------------------------------------------------
2// The Virtual Monte Carlo examples
3// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4// All rights reserved.
5//
6// For the licensing terms see geant4_vmc/LICENSE.
7// Contact: root-vmc@cern.ch
8//-------------------------------------------------
9
10/// \file E03/set_g3_vis.C
11/// \brief Macro for setting visualization for Example03
12
13#include "TVirtualMC.h"
14
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}
void set_g3_vis()
Definition set_g3_vis.C:15