BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSTeleporter.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef BDSTELEPORTER_H
20#define BDSTELEPORTER_H
21
22#include "BDSAcceleratorComponent.hh"
23
24#include "globals.hh" // geant4 types / globals
25#include "G4Transform3D.hh"
26
27class BDSBeamline;
28class BDSFieldInfo;
29
46{
47public:
48 BDSTeleporter(const G4double length,
49 const G4double horizontaWidth,
50 BDSFieldInfo* vacuumFieldInfoIn);
51 virtual ~BDSTeleporter();
52
53private:
55 BDSTeleporter() = delete;
56
61
63 virtual void Build();
64
67 virtual void BuildContainerLogicalVolume();
68
73};
74
75namespace BDS
76{
79 G4Transform3D CalculateTeleporterDelta(const BDSBeamline* beamline,
80 G4double& teleporterLength);
81}
82
83#endif
Abstract class that represents a component of an accelerator.
A vector of BDSBeamlineElement instances - a beamline.
Definition: BDSBeamline.hh:61
All info required to build complete field of any type.
Definition: BDSFieldInfo.hh:65
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)