Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ExactHelixStepper.hh
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// $Id$
27
//
28
//
29
// class G4ExactHelixStepper
30
// -------------------
31
// Class description:
32
//
33
// Concrete class for particle motion in constant magnetic field.
34
35
// History:
36
// - 28.Jan.05 J.Apostolakis Creation of new concrete class
37
// --------------------------------------------------------------------
38
39
#ifndef G4ExactHelixStepper_hh
40
#define G4ExactHelixStepper_hh
41
42
#include "
G4Types.hh
"
43
#include "
G4ThreeVector.hh
"
44
45
#include "
G4MagIntegratorStepper.hh
"
46
#include "
G4MagHelicalStepper.hh
"
47
#include "
G4Mag_EqRhs.hh
"
48
49
class
G4ExactHelixStepper
:
public
G4MagHelicalStepper
50
{
51
public
:
// with description
52
53
G4ExactHelixStepper
(
G4Mag_EqRhs
*EqRhs);
54
~G4ExactHelixStepper
();
55
56
void
Stepper
(
const
G4double
y[],
57
const
G4double
dydx[],
58
G4double
h,
59
G4double
yout[],
60
G4double
yerr[] );
61
// Step 'integration' for step size 'h'
62
// Provides helix starting at y[0 to 6]
63
// Outputs yout[] and ZERO estimated error yerr[]=0.
64
65
void
DumbStepper
(
const
G4double
y[],
66
G4ThreeVector
Bfld,
67
G4double
h,
68
G4double
yout[] );
69
// Performs a 'dump' Step without error calculation.
70
71
G4double
DistChord
()
const
;
72
// Estimate maximum distance of curved solution and chord ...
73
74
virtual
G4int
IntegratorOrder
()
const
;
75
76
private
:
77
78
G4ExactHelixStepper
(
const
G4ExactHelixStepper
&);
79
G4ExactHelixStepper
& operator=(
const
G4ExactHelixStepper
&);
80
// Private copy constructor and assignment operator.
81
82
private
:
83
84
G4ThreeVector
fBfieldValue;
85
// Initial value of field at last step
86
G4Mag_EqRhs
* fPtrMagEqOfMot;
87
};
88
89
90
91
#endif
/* G4ExactHelixStepper_hh */
G4MagHelicalStepper.hh
G4MagIntegratorStepper.hh
G4Mag_EqRhs.hh
G4ThreeVector.hh
G4Types.hh
G4double
double G4double
Definition:
G4Types.hh:64
G4int
int G4int
Definition:
G4Types.hh:66
CLHEP::Hep3Vector
Definition:
ThreeVector.h:41
G4ExactHelixStepper
Definition:
G4ExactHelixStepper.hh:50
G4ExactHelixStepper::IntegratorOrder
virtual G4int IntegratorOrder() const
Definition:
G4ExactHelixStepper.cc:125
G4ExactHelixStepper::DumbStepper
void DumbStepper(const G4double y[], G4ThreeVector Bfld, G4double h, G4double yout[])
Definition:
G4ExactHelixStepper.cc:81
G4ExactHelixStepper::Stepper
void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])
Definition:
G4ExactHelixStepper.cc:56
G4ExactHelixStepper::~G4ExactHelixStepper
~G4ExactHelixStepper()
Definition:
G4ExactHelixStepper.cc:53
G4ExactHelixStepper::DistChord
G4double DistChord() const
Definition:
G4ExactHelixStepper.cc:99
G4MagHelicalStepper
Definition:
G4MagHelicalStepper.hh:54
G4Mag_EqRhs
Definition:
G4Mag_EqRhs.hh:49
geant4-v9.6.0
source
geometry
magneticfield
include
G4ExactHelixStepper.hh
Generated by
1.9.6