VMC Examples
Version 6.6
Loading...
Searching...
No Matches
examples
ExGarfield
set_g3_vis.C
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2016 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 ExGarfield/set_g3_vis.C
11
/// \brief Macro for setting G3 visualization for ExGarfield example
12
13
#include "TVirtualMC.h"
14
15
void
set_g3_vis
()
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
}
set_g3_vis
void set_g3_vis()
Definition
set_g3_vis.C:15
Generated on Thu Nov 28 2024 11:31:18 for VMC Examples by
1.12.0