VMC Examples Version 6.6
Loading...
Searching...
No Matches
run_g3.C
Go to the documentation of this file.
1//------------------------------------------------
2// The Virtual Monte Carlo examples
3// Copyright (C) 2007 - 2015 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/// \ingroup TR
11/// \file TR/run_g3.C
12/// \brief Macro for running Example TR with Geant3
13
14#include "set_g3_vis.C"
15
16void run_g3(const TString& configMacro = "g3tgeoConfig.C")
17{
18/// Macro function for running Example TR with Geant3 from
19/// Root interactive session
20/// Note that since Root 6 the libraries have to be loaded first
21/// via load_g3.C.
22/// \param configMacro configuration macro name, default \ref TR/g3Config.C
23
24 // MC application
26 = new VMC::TR::MCApplication("ExampleTR", "The exampleTR MC application");
28 appl->SetPrintModulo(10000);
29
30 appl->InitMC(configMacro);
31
32 // visualization setting
33 // set_g3_vis();
34
35 appl->RunMC(5000);
36
37 delete appl;
38}
void run_g3(const TString &configMacro="g3tgeoConfig.C")
Definition run_g3.C:16
Macro for setting G3 visualization for Example TR.
Implementation of the TVirtualMCApplication.
PrimaryGenerator * GetPrimaryGenerator() const
void SetPrintModulo(Int_t value)
void RunMC(Int_t nofEvents)
void InitMC(const char *setup)
void SetNofPrimaries(Int_t nofPrimaries)