VMC Examples
Version 6.6
Loading...
Searching...
No Matches
examples
Gflash
test_Gflash.C
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4
// All rights reserved.
5
//
6
// For the licensing terms see geant4_vmc/LICENSE.
7
// Contact: root-vmc@cern.ch
8
//-------------------------------------------------
9
10
/// \ingroup Tests
11
/// \file test_Gflash.C
12
/// \brief Example Gflash Test macro 1
13
///
14
/// Running Example Gflash
15
16
//#include "set_vis.C"
17
18
void
test_Gflash
(
const
TString& configMacro)
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
33
VMC::Gflash::MCApplication
* appl
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
}
VMC::Gflash::MCApplication
Implementation of the TVirtualMCApplication.
Definition
MCApplication.h:48
VMC::Gflash::MCApplication::InitMC
void InitMC(const char *setup)
Definition
MCApplication.cxx:235
VMC::Gflash::MCApplication::RunMC
void RunMC(Int_t nofEvents)
Definition
MCApplication.cxx:273
test_Gflash
void test_Gflash(const TString &configMacro)
Definition
test_Gflash.C:18
Generated on Thu Nov 28 2024 11:31:18 for VMC Examples by
1.12.0