BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSFieldQueryInfo.cc
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#include "BDSFieldQueryInfo.hh"
19
21 const G4String& outfileMagneticIn,
22 const G4String& outfileElectricIn,
23 G4bool queryMagneticIn,
24 G4bool queryElectricIn,
25 QueryDimensionInfo xInfoIn,
26 QueryDimensionInfo yInfoIn,
27 QueryDimensionInfo zInfoIn,
28 QueryDimensionInfo tInfoIn,
29 const G4AffineTransform& globalTransformIn,
30 G4bool overwriteExistingFilesIn,
31 const G4String& fieldObjectIn,
32 G4bool printTransformIn,
33 G4bool checkParametersIn,
34 G4bool drawArrowsIn,
35 G4bool drawZeroValuePointsIn,
36 G4bool drawBoxesIn,
37 G4double boxAlphaIn):
38 name(nameIn),
39 outfileMagnetic(outfileMagneticIn),
40 outfileElectric(outfileElectricIn),
41 queryMagnetic(queryMagneticIn),
42 queryElectric(queryElectricIn),
43 xInfo(xInfoIn),
44 yInfo(yInfoIn),
45 zInfo(zInfoIn),
46 tInfo(tInfoIn),
47 globalTransform(globalTransformIn),
48 overwriteExistingFiles(overwriteExistingFilesIn),
49 printTransform(printTransformIn),
50 fieldObject(fieldObjectIn),
51 checkParameters(checkParametersIn),
52 drawArrows(drawArrowsIn),
53 drawZeroValuePoints(drawZeroValuePointsIn),
54 drawBoxes(drawBoxesIn),
55 boxAlpha(boxAlphaIn)
56{;}
57
59 const G4String& outfileMagneticIn,
60 const G4String& outfileElectricIn,
61 G4bool queryMagneticIn,
62 G4bool queryElectricIn,
63 const std::vector<BDSFourVector<G4double>>& pointsToQueryIn,
64 const std::vector<G4String>& pointsColumnNamesIn,
65 G4bool overwriteExistingFilesIn,
66 const G4String& fieldObjectIn,
67 G4bool checkParametersIn,
68 G4bool drawArrowsIn,
69 G4bool drawZeroValuePointsIn,
70 G4bool drawBoxesIn,
71 G4double boxAlphaIn):
72 name(nameIn),
73 outfileMagnetic(outfileMagneticIn),
74 outfileElectric(outfileElectricIn),
75 queryMagnetic(queryMagneticIn),
76 queryElectric(queryElectricIn),
77 pointsToQuery(pointsToQueryIn),
78 pointsColumnNames(pointsColumnNamesIn),
79 overwriteExistingFiles(overwriteExistingFilesIn),
80 printTransform(false),
81 fieldObject(fieldObjectIn),
82 checkParameters(checkParametersIn),
83 drawArrows(drawArrowsIn),
84 drawZeroValuePoints(drawZeroValuePointsIn),
85 drawBoxes(drawBoxesIn),
86 boxAlpha(boxAlphaIn)
87{;}
88
89BDSFieldQueryInfo::~BDSFieldQueryInfo()
90{;}
BDSFieldQueryInfo(const G4String &nameIn, const G4String &outfileMagneticIn, const G4String &outfileElectricIn, G4bool queryMagneticIn, G4bool queryElectricIn, QueryDimensionInfo xInfoIn, QueryDimensionInfo yInfoIn, QueryDimensionInfo zInfoIn, QueryDimensionInfo tInfoIn, const G4AffineTransform &globalTransformIn=G4AffineTransform(), G4bool overwriteExistingFilesIn=false, const G4String &fieldObjectIn="", G4bool printTransformIn=false, G4bool checkParametersIn=true, G4bool drawArrowsIn=true, G4bool drawZeroValuePointsIn=true, G4bool drawBoxesIn=true, G4double boxAlphaIn=0.2)
Usual constructor with number of points to query in each dimension.
A simple templated four vector class.