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

Example Gflash Test macro 1. More...

Go to the source code of this file.

Functions

void test_Gflash (const TString &configMacro)
 

Detailed Description

Example Gflash Test macro 1.

Running Example Gflash

Definition in file test_Gflash.C.

Function Documentation

◆ test_Gflash()

void test_Gflash ( const TString & configMacro)

Macro function for testing example Gflash

Parameters
configMacroconfiguration macro loaded in initialization

Run 10 events and print the calorimeter hits.

Definition at line 18 of file test_Gflash.C.

19{
20/// Macro function for testing example Gflash
21/// \param configMacro configuration macro loaded in initialization
22///
23/// Run 10 events and print the calorimeter hits.
24
25 // Create application if it does not yet exist
26 Bool_t needDelete = kFALSE;
27 if ( ! TVirtualMCApplication::Instance() ) {
28 new VMC::Gflash::MCApplication("ExampleGflash", "The exampleGflash MC application");
29 needDelete = kTRUE;
30 }
31
32 // MC application
34 = (VMC::Gflash::MCApplication*)TVirtualMCApplication::Instance();
35 appl->InitMC(configMacro);
36
37 // visualization setting
38 // set_vis();
39
40 appl->RunMC(10);
41
42 if ( needDelete ) delete appl;
43}
Implementation of the TVirtualMCApplication.
void InitMC(const char *setup)
void RunMC(Int_t nofEvents)