VMC Examples
Version 6.6
Loading...
Searching...
No Matches
examples
E03
E03a
geant4
src
Ex03RunConfiguration1.cxx
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
/// \file Ex03RunConfiguration1.cxx
11
/// \brief Implementation of the Ex03RunConfiguration1 class
12
///
13
/// Geant4 ExampleN03 adapted to Virtual Monte Carlo \n
14
///
15
/// \author I. Hrivnacova; IPN, Orsay
16
17
#include "Ex03RunConfiguration1.h"
18
#include "B4DetectorConstruction.hh"
19
20
//_____________________________________________________________________________
21
Ex03RunConfiguration1::Ex03RunConfiguration1
(
22
const
TString& physicsList,
const
TString& specialProcess)
23
:
TG4RunConfiguration
(
"geomGeant4"
, physicsList, specialProcess)
24
{
25
/// Standard constructor
26
/// \param physicsList Selection of physics
27
/// \param specialProcess Selection of the special processes
28
///
29
/// The option for geometry selection has to be set here to "geomGeant4",
30
/// as geometry will be defined directly via Geant4.
31
/// \see More on the available option in class TG4RunConfiguration:
32
/// http://ivana.home.cern.ch/ivana/g4vmc_html/classTG4RunConfiguration.html
33
}
34
35
//_____________________________________________________________________________
36
Ex03RunConfiguration1::~Ex03RunConfiguration1
()
37
{
38
/// Destructor
39
}
40
41
//
42
// protected methods
43
//
44
45
//_____________________________________________________________________________
46
G4VUserDetectorConstruction
*
Ex03RunConfiguration1::CreateDetectorConstruction
()
47
{
48
/// The Geant4 VMC detector construction is overridden with the detector
49
/// construction class from the Geant4 novice example N03 library.
50
51
return
new
B4DetectorConstruction
();
52
}
B4DetectorConstruction
Definition
B4DetectorConstruction.hh:55
Ex03RunConfiguration1::~Ex03RunConfiguration1
virtual ~Ex03RunConfiguration1()
Definition
Ex03RunConfiguration1.cxx:36
Ex03RunConfiguration1::Ex03RunConfiguration1
Ex03RunConfiguration1(const TString &physicsList="FTFP_BERT", const TString &specialProcess="stepLimiter")
Definition
Ex03RunConfiguration1.cxx:21
Ex03RunConfiguration1::CreateDetectorConstruction
virtual G4VUserDetectorConstruction * CreateDetectorConstruction()
Definition
Ex03RunConfiguration1.cxx:46
G4VUserDetectorConstruction
TG4RunConfiguration
Generated on Thu Oct 17 2024 08:29:51 for VMC Examples by
1.12.0