VMC Examples
Version 6.7
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
1
2
3
6
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
~
Functions
1
2
3
6
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
~
Variables
c
f
n
Enumerations
Enumerator
Files
File List
File Members
All
3
b
c
e
f
g
h
i
l
m
n
o
r
s
t
u
v
Functions
b
c
g
h
i
l
m
n
o
r
s
t
u
v
Variables
Typedefs
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
Loading...
Searching...
No Matches
examples
A01
geant4
include
A01RunConfiguration.h
Go to the documentation of this file.
1
#ifndef A01_RUN_CONFIGURATION1_H
2
#define A01_RUN_CONFIGURATION1_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
13
/// \file A01RunConfiguration.h
14
/// \brief Definition of the A01RunConfiguration class
15
///
16
/// Geant4 ExampleN03 adapted to Virtual Monte Carlo
17
///
18
/// \author I. Hrivnacova; IPN, Orsay
19
20
#include "TG4RunConfiguration.h"
21
22
/// \ingroup A01
23
/// \brief User Geant4 VMC run configuration
24
///
25
/// This class overrides setting of the default Geant4 VMC geometry
26
/// construction with Geant4 detector construction
27
///
28
/// \author I. Hrivnacova; IPN, Orsay
29
30
class
A01RunConfiguration
:
public
TG4RunConfiguration
31
{
32
public
:
33
A01RunConfiguration
(
const
TString& physicsList =
"emStandard"
,
34
const
TString& specialProcess =
"stepLimiter"
);
35
virtual
~A01RunConfiguration
();
36
37
// methods
38
virtual
G4VUserDetectorConstruction
*
CreateDetectorConstruction
();
39
40
// set methods
41
void
SetUseLocalMagField
(Bool_t localMagField);
42
43
private
:
44
/// Option to use local magnetic field
45
Bool_t
fUseLocalMagField
;
46
};
30
class
A01RunConfiguration
:
public
TG4RunConfiguration
{
…
};
47
48
// inline functions
49
50
/// Set the option to use local magnetic field (working only with Geant4 !)
51
/// \param localMagField The new value of the option
52
inline
void
A01RunConfiguration::SetUseLocalMagField
(Bool_t localMagField)
53
{
54
fUseLocalMagField
= localMagField;
55
}
52
inline
void
A01RunConfiguration::SetUseLocalMagField
(Bool_t localMagField) {
…
}
56
57
#endif
// A01_RUN_CONFIGURATION1_H
A01RunConfiguration::SetUseLocalMagField
void SetUseLocalMagField(Bool_t localMagField)
Definition
A01RunConfiguration.h:52
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 Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2