VMC Examples Version 6.8
Loading...
Searching...
No Matches
run_g4_rntuple.C File Reference

Macro for running Example03d with Geant4 with kRNTuple output mode. More...

#include "set_g4_vis.C"
Include dependency graph for run_g4_rntuple.C:

Go to the source code of this file.

Functions

void run_g4_rntuple (const TString &configMacro="g4tgeoConfig.C")

Detailed Description

Macro for running Example03d with Geant4 with kRNTuple output mode.

Definition in file run_g4_rntuple.C.

Function Documentation

◆ run_g4_rntuple()

void run_g4_rntuple ( const TString & configMacro = "g4tgeoConfig.C")

Macro function for running Example03 with Geant4 from Root interactive session Note that since Root 6 the libraries have to be loaded first via load_g4.C.

Parameters
configMacroconfiguration macro name, default E03/g4Config.C

Definition at line 17 of file run_g4_rntuple.C.

18{
19/// Macro function for running Example03 with Geant4 from
20/// Root interactive session
21/// Note that since Root 6 the libraries have to be loaded first
22/// via load_g4.C.
23/// \param configMacro configuration macro name, default \ref E03/g4Config.C
24
25 // MC application
27 = new Ex03dMCApplication("Example03", "The example03 MC application");
29 appl->SetPrintModulo(100);
30
31 appl->InitMC(configMacro, TMCRootManager::kRNTuple);
32
33 // Visualization setting
34 //set_g4_vis();
35
36 // Enter in Geant4 interactive session
37 //((TGeant4*)gMC)->StartGeantUI();
38
39 appl->RunMC(1000);
40
41 delete appl;
42}
void SetNofPrimaries(Int_t nofPrimaries)
Implementation of the TVirtualMCApplication.
void RunMC(Int_t nofEvents)
Ex03PrimaryGenerator * GetPrimaryGenerator() const
void InitMC(const char *setup, TMCRootManager::StorageMode storageMode=TMCRootManager::kRNTuple)
void SetPrintModulo(Int_t value)