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

Macro for running Example03 with mixed Geant3 and Geant4. More...

Go to the source code of this file.

Functions

void run_multi (const TString &configMacro1="g3tgeoConfig.C", const TString &configMacro2="g4tgeoConfig4Seq.C")
 

Detailed Description

Macro for running Example03 with mixed Geant3 and Geant4.

Definition in file run_multi.C.

Function Documentation

◆ run_multi()

void run_multi ( const TString & configMacro1 = "g3tgeoConfig.C",
const TString & configMacro2 = "g4tgeoConfig4Seq.C" )

Macro function for running Example03c with Geant3 and Geant4 together from Root interactive session Note that since Root 6 the libraries have to be loaded first via load_multi.C.

Parameters
configMacroconfiguration macro names, default E03/g3tgeoConfig.C and E03/g4tgeoConfig4Seq.C

Definition at line 17 of file run_multi.C.

18{
19/// Macro function for running Example03c with Geant3 and Geant4 together from
20/// Root interactive session
21/// Note that since Root 6 the libraries have to be loaded first
22/// via load_multi.C.
23/// \param configMacro configuration macro names, default \ref E03/g3tgeoConfig.C and E03/g4tgeoConfig4Seq.C
24
25
26// MC application
27 auto appl = new Ex03MCApplication("Example03", "The example03 MC application", kTRUE, kTRUE);
28 // appl->SetVerboseLevel(4);
29 appl->GetPrimaryGenerator()->SetNofPrimaries(20);
30 appl->SetPrintModulo(1);
31
32 appl->InitMC({configMacro1.Data(), configMacro2.Data()});
33
34 // visualization setting
35 // Not available with multi engine run
36 // set_g3_vis();
37 // set_g4_vis();
38
39 appl->RunMC(5);
40
41 delete appl;
42}
Ex03bMCApplication Ex03MCApplication