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 Gflash/set_g3_vis.C
11/// \brief Macro for setting G3 visualization for example Gflash
12
13#include "TVirtualMC.h"
14
16{
17/// Macro for setting G3 visualization for example Gflash
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}
void set_g3_vis()
Definition set_g3_vis.C:15