BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
__w
bdsim
bdsim
include
BDSIntegratorTeleporter.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3
University of London 2001 - 2024.
4
5
This file is part of BDSIM.
6
7
BDSIM is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published
9
by the Free Software Foundation version 3 of the License.
10
11
BDSIM is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef BDSINTEGRATORTELEPORTER_H
20
#define BDSINTEGRATORTELEPORTER_H
21
22
#include "BDSIntegratorMag.hh"
23
24
#include "globals.hh"
// geant4 types / globals
25
#include "G4ThreeVector.hh"
26
#include "G4Transform3D.hh"
27
28
class
G4Mag_EqRhs;
29
class
BDSPTCOneTurnMap
;
30
37
class
BDSIntegratorTeleporter
:
public
BDSIntegratorMag
38
{
39
public
:
40
BDSIntegratorTeleporter
(G4Mag_EqRhs* eqOfMIn,
41
G4Transform3D teleporterDeltaIn,
42
G4double teleporterLengthIn,
43
BDSPTCOneTurnMap
* oneTurnMapIn=
nullptr
);
44
45
virtual
~BDSIntegratorTeleporter
();
46
47
virtual
void
Stepper(
const
G4double yIn[],
48
const
G4double dydx[],
49
const
G4double h,
50
G4double yOut[],
51
G4double yErr[]);
52
53
private
:
54
55
const
G4Transform3D transform;
56
const
G4ThreeVector dPos;
57
const
G4double teleporterLength;
58
BDSPTCOneTurnMap
* oneTurnMap;
59
G4bool
threeDMethod
;
60
};
61
62
#endif
BDSIntegratorMag
Common functionality to BDSIM integrators.
Definition
BDSIntegratorMag.hh:44
BDSIntegratorTeleporter
Custom unphysical integrator to advance particle in teleporter.
Definition
BDSIntegratorTeleporter.hh:38
BDSIntegratorTeleporter::threeDMethod
G4bool threeDMethod
Whether to use full 3D transform.
Definition
BDSIntegratorTeleporter.hh:59
BDSPTCOneTurnMap
Class to load and use PTC 1 turn map.
Definition
BDSPTCOneTurnMap.hh:41
Generated on Sat Oct 18 2025 18:31:04 for BDSIM by
1.9.8