Go to the source code of this file.
|
void | test_E06_2 (const TString &configMacro, Bool_t oldGeometry) |
|
◆ test_E06_2()
void test_E06_2 |
( |
const TString & | configMacro, |
|
|
Bool_t | oldGeometry ) |
Macro function for testing example E06
- Parameters
-
configMacro | configuration macro loaded in initialization |
oldGeometry | if true - geometry is defined via VMC, otherwise via TGeo |
Stack popper test.
Definition at line 14 of file test_E06_2.C.
15{
16
17
18
19
20
21
22
23
24
25 Bool_t needDelete = kFALSE;
26 if ( ! TVirtualMCApplication::Instance() ) {
28 needDelete = kTRUE;
29 }
30
31
36
37
39
40
41
43
44 if ( TString(gMC->GetName()) == "TGeant4" ) {
45
46 gROOT->LoadMacro("g4Config2.C");
47 gInterpreter->ProcessLine("g4Config2()");
48 }
49
50
52
53 if ( needDelete ) delete appl;
54}
Implementation of the TVirtualMCApplication.
void RunMC(Int_t nofEvents)
void InitMC(const char *setup)
void SetOldGeometry(Bool_t oldGeometry=kTRUE)
void SetTestStackPopper(Bool_t option=kFALSE)
Ex06PrimaryGenerator * GetPrimaryGenerator() const
void SetNofPrimaries(Int_t nofPrimaries)