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

Macro for loading libraries to run Example01 with Geant3. More...

Go to the source code of this file.

Functions

void run_g3 (const TString &configMacro="g3tgeoConfig.C")
 

Detailed Description

Macro for loading libraries to run Example01 with Geant3.

Macro for running Example01 with Geant3.

Definition in file run_g3.C.

Function Documentation

◆ run_g3()

void run_g3 ( const TString & configMacro = "g3tgeoConfig.C")

Macro function for running Example01 with Geant3 from Root interactive session. Note that since Root 6 the libraries have to be loaded first via load_g3.C.

Parameters
configMacroconfiguration macro name, default E01/g3Config.C

Definition at line 14 of file run_g3.C.

15{
16/// Macro function for running Example01 with Geant3 from
17/// Root interactive session.
18/// Note that since Root 6 the libraries have to be loaded first
19/// via load_g3.C.
20/// \param configMacro configuration macro name, default \ref E01/g3Config.C
21
22 // MC application
24 = new Ex01MCApplication("Example01", "The example01 MC application");
25
26 // Initialize MC
27 appl->InitMC(configMacro);
28
29 // Run MC
30 appl->RunMC(1);
31
32 delete appl;
33}
Implementation of the TVirtualMCApplication.
void InitMC(const char *setup)
void RunMC(Int_t nofEvents)