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
E03
E03b
geant4
src
Ex03PostDetConstruction.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2015 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 Ex03PostDetConstruction.cxx
11
/// \brief Implementation of the Ex03PostDetConstruction class
12
///
13
/// Geant4 ExampleN03 adapted to Virtual Monte Carlo \n
14
///
15
/// \author I. Hrivnacova; IPN, Orsay
16
17
#include "Ex03PostDetConstruction.h"
18
19
#include "TG4GeometryManager.h"
20
21
#include "G4Mag_UsualEqRhs.hh"
22
#include "G4NystromRK4.hh"
23
24
//_____________________________________________________________________________
25
Ex03PostDetConstruction::Ex03PostDetConstruction
()
26
:
TG4VUserPostDetConstruction
()
27
{}
28
29
//_____________________________________________________________________________
30
Ex03PostDetConstruction::~Ex03PostDetConstruction
() {}
31
32
//_____________________________________________________________________________
33
void
Ex03PostDetConstruction::Construct
()
34
{
35
// Create "user" equation of motion;
36
// G4Mag_UsualEqRhs eqution and G4NystromRK4 stepper should be replaced with
37
// users own objects
38
G4cout <<
"Create user defined equation of motion and stepper"
<< G4endl;
39
G4Mag_EqRhs* equation =
new
G4Mag_UsualEqRhs(0);
40
G4MagIntegratorStepper* stepper =
new
G4NystromRK4(equation);
41
42
TG4GeometryManager::Instance()->SetUserEquationOfMotion(equation);
43
TG4GeometryManager::Instance()->SetUserStepper(stepper);
44
}
45
46
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Ex03PostDetConstruction::~Ex03PostDetConstruction
virtual ~Ex03PostDetConstruction()
Definition
Ex03PostDetConstruction.cxx:30
Ex03PostDetConstruction::Construct
virtual void Construct()
Definition
Ex03PostDetConstruction.cxx:33
Ex03PostDetConstruction::Ex03PostDetConstruction
Ex03PostDetConstruction()
Definition
Ex03PostDetConstruction.cxx:25
TG4VUserPostDetConstruction
Generated on Fri Feb 7 2025 16:41:48 for VMC Examples by
1.13.2