BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSArray2DCoordsRDipole.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 BDSARRAY2DCOORDSRDIPOLE_H
19#define BDSARRAY2DCOORDSRDIPOLE_H
20
21#include "BDSArray2DCoords.hh"
22#include "BDSFieldValue.hh"
23
24#include "G4Types.hh"
25
26#include <ostream>
27
68{
69public:
70 BDSArray2DCoordsRDipole() = delete;
73 virtual ~BDSArray2DCoordsRDipole(){;}
74
76 virtual G4bool OutsideCoords(G4double x,
77 G4double y,
78 G4double z,
79 G4double t) const;
80
81 virtual G4double ArrayCoordsFromX(G4double x) const;
82 virtual G4double ArrayCoordsFromY(G4double y) const;
83
84 virtual G4int NearestX(G4double x) const;
85 virtual G4int NearestY(G4double y) const;
87
89 virtual const BDSFieldValue& GetConst(G4int x,
90 G4int y,
91 G4int z = 0,
92 G4int t = 0) const;
93
94 virtual G4bool Outside(G4int x,
95 G4int y,
96 G4int z,
97 G4int t) const;
99
102 virtual std::ostream& Print(std::ostream& out) const;
103
105 friend std::ostream& operator<< (std::ostream& out, BDSArray2DCoordsRDipole const &a);
106
107private:
111};
112
113#endif
A wrapper to achieve 2D reflection of a minimal dipole field solve.
virtual G4double ArrayCoordsFromY(G4double y) const
Overridden from BDSArray4DCoords.
virtual G4bool OutsideCoords(G4double x, G4double y, G4double z, G4double t) const
Overridden from BDSArray4DCoords.
virtual G4double ArrayCoordsFromX(G4double x) const
Overridden from BDSArray4DCoords.
virtual G4int NearestX(G4double x) const
Overridden from BDSArray4DCoords.
friend std::ostream & operator<<(std::ostream &out, BDSArray2DCoordsRDipole const &a)
Delegate function to call polymorphic Print().
virtual G4bool Outside(G4int x, G4int y, G4int z, G4int t) const
Overridden from BDSArray4D.
virtual const BDSFieldValue & GetConst(G4int x, G4int y, G4int z=0, G4int t=0) const
Overridden from BDSArray4D.
virtual G4int NearestY(G4double y) const
Overridden from BDSArray4DCoords.
virtual std::ostream & Print(std::ostream &out) const
2D array with spatial mapping derived from BDSArray4DCoords.