BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSTeleporter.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 BDSTELEPORTER_H
19#define BDSTELEPORTER_H
20
21#include "BDSAcceleratorComponent.hh"
22
23#include "globals.hh" // geant4 types / globals
24#include "G4Transform3D.hh"
25
26class BDSBeamline;
27class BDSFieldInfo;
28
45{
46public:
47 BDSTeleporter(const G4double length,
48 const G4double horizontaWidth,
49 BDSFieldInfo* vacuumFieldInfoIn);
50 virtual ~BDSTeleporter();
51
52private:
54 BDSTeleporter() = delete;
55
60
62 virtual void Build();
63
66 virtual void BuildContainerLogicalVolume();
67
72};
73
74namespace BDS
75{
78 G4Transform3D CalculateTeleporterDelta(const BDSBeamline* beamline,
79 G4double& teleporterLength);
80}
81
82#endif
Abstract class that represents a component of an accelerator.
A vector of BDSBeamlineElement instances - a beamline.
All info required to build complete field of any type.
An element that unnaturally shifts the beam across its length - a fudge volume.
BDSTeleporter()=delete
Private default constructor to force the use of the supplied one.
BDSTeleporter & operator=(const BDSTeleporter &)=delete
Assignment and copy constructor not implemented nor used.
BDSTeleporter(BDSTeleporter &)=delete
Assignment and copy constructor not implemented nor used.
BDSFieldInfo * vacuumFieldInfo
Recipe for teleporter 'field'.
G4double horizontalWidth
The full horizontal width of the teleporter.
virtual void Build()
Overridden method from BDSAcceleratorComponent that dictates the construction.
virtual void BuildContainerLogicalVolume()
Return either G4Tubs or G4CutTubs depending on flat face.
G4Transform3D CalculateTeleporterDelta(const BDSBeamline *beamline, G4double &teleporterLength)