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