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

Example E03 Test macro 4. More...

Go to the source code of this file.

Functions

void test_E03_4 (const TString &configMacro, Bool_t oldGeometry)
 

Detailed Description

Example E03 Test macro 4.

Running Example03

Definition in file test_E03_4.C.

Function Documentation

◆ test_E03_4()

void test_E03_4 ( const TString & configMacro,
Bool_t oldGeometry )

Macro function for testing example E03

Parameters
configMacroconfiguration macro loaded in initialization
oldGeometryif true - geometry is defined via VMC, otherwise via TGeo

Run primary particles with user defined decay with verbosity level switched on

Definition at line 18 of file test_E03_4.C.

19{
20/// Macro function for testing example E03
21/// \param configMacro configuration macro loaded in initialization
22/// \param oldGeometry if true - geometry is defined via VMC, otherwise
23/// via TGeo
24///
25/// Run primary particles with user defined decay with verbosity
26/// level switched on
27
28 // Create application if it does not yet exist
29 Bool_t needDelete = kFALSE;
30 if ( ! TVirtualMCApplication::Instance() ) {
31 new Ex03MCApplication("Example03", "The example03 MC application");
32 needDelete = kTRUE;
33 }
34
35 // MC application
37 = (Ex03MCApplication*)TVirtualMCApplication::Instance();
40 appl->SetPrintModulo(1);
41
42 // Set geometry defined via VMC
43 appl->SetOldGeometry(oldGeometry);
44
45 appl->InitMC(configMacro);
46
47 // visualization setting
48 // set_vis();
49
50 appl->RunMC(1);
51
52 if ( needDelete ) delete appl;
53}
Ex03bMCApplication Ex03MCApplication
Implementation of the TVirtualMCApplication.
void InitMC(const char *setup)
void RunMC(Int_t nofEvents)
void SetOldGeometry(Bool_t oldGeometry=kTRUE)
void SetPrintModulo(Int_t value)
Ex03PrimaryGenerator * GetPrimaryGenerator() const
void SetNofPrimaries(Int_t nofPrimaries)
@ kUserDecay
particle with user defined decay (K0Short)
void SetPrimaryType(Type primaryType)