BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSIntegratorTeleporter.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along 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
27class G4Mag_EqRhs;
29
37{
38public:
39 BDSIntegratorTeleporter(G4Mag_EqRhs* eqOfMIn,
40 G4Transform3D teleporterDeltaIn,
41 G4double teleporterLengthIn,
42 BDSPTCOneTurnMap* oneTurnMapIn=nullptr);
43
45
46 virtual void Stepper(const G4double yIn[],
47 const G4double dydx[],
48 const G4double h,
49 G4double yOut[],
50 G4double yErr[]);
51
52private:
53
54 const G4Transform3D transform;
55 const G4ThreeVector dPos;
56 const G4double teleporterLength;
57 BDSPTCOneTurnMap* oneTurnMap;
58 G4bool threeDMethod;
59};
60
61#endif
Common functionality to BDSIM integrators.
Custom unphysical integrator to advance particle in teleporter.
G4bool threeDMethod
Whether to use full 3D transform.
Class to load and use PTC 1 turn map.