BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSArray3DCoordsTransformed.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 BDSARRAY3DCOORDSTRANSFORMED_H
19#define BDSARRAY3DCOORDSTRANSFORMED_H
20
21#include "BDSArray3DCoords.hh"
22#include "BDSDimensionType.hh"
23#include "BDSFieldValue.hh"
24
25#include "G4Types.hh"
26
27#include <ostream>
28
31class BDSExtent;
32
42{
43public:
48 BDSArrayOperatorIndex* indexOperatorIn,
49 BDSArrayOperatorValue* valueOperatorIn);
51
54 virtual void ExtractSection2x2x2(G4double x,
55 G4double y,
56 G4double z,
57 BDSFieldValue (&localData)[2][2][2],
58 G4double& xFrac,
59 G4double& yFrac,
60 G4double& zFrac) const;
61
64 virtual void ExtractSection4x4x4(G4double x,
65 G4double y,
66 G4double z,
67 BDSFieldValue (&localData)[4][4][4],
68 G4double& xFrac,
69 G4double& yFrac,
70 G4double& zFrac) const;
71
74 virtual BDSFieldValue ExtractNearest(G4double x,
75 G4double y = 0,
76 G4double z = 0,
77 G4double t = 0) const;
78
79 virtual std::ostream& Print(std::ostream& out) const;
80
82 friend std::ostream& operator<< (std::ostream& out, BDSArray3DCoordsTransformed const &a);
83
84private:
85 BDSArrayOperatorIndex* indexOperator;
86 BDSArrayOperatorValue* valueOperator;
87
91};
92
93#endif
Wrapped BDSArray3DCoords with possible transformation to extend field.
virtual void ExtractSection2x2x2(G4double x, G4double y, G4double z, BDSFieldValue(&localData)[2][2][2], G4double &xFrac, G4double &yFrac, G4double &zFrac) const
virtual BDSFieldValue ExtractNearest(G4double x, G4double y=0, G4double z=0, G4double t=0) const
BDSArray3DCoordsTransformed()=delete
No default constructor.
virtual std::ostream & Print(std::ostream &out) const
virtual void ExtractSection4x4x4(G4double x, G4double y, G4double z, BDSFieldValue(&localData)[4][4][4], G4double &xFrac, G4double &yFrac, G4double &zFrac) const
friend std::ostream & operator<<(std::ostream &out, BDSArray3DCoordsTransformed const &a)
Delegate function to call polymorphic Print().
3D array with spatial mapping derived from BDSArray4DCoords.
Interface for modifying by reference array indices.
Interface for modifying field values.
Holder for +- extents in 3 dimensions.
Definition BDSExtent.hh:38