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