BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSCurvilinearFactory.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2023.
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 BDSCURVILINEARFACTORY_H
20#define BDSCURVILINEARFACTORY_H
21
22#include "globals.hh"
23#include "G4ThreeVector.hh"
24
26class BDSTiltOffset;
27
28class G4VSolid;
29
45{
46public:
49
51 BDSSimpleComponent* CreateCurvilinearVolume(const G4String& name,
52 G4double chordLength,
53 G4double radius);
54
58 BDSSimpleComponent* CreateCurvilinearVolume(const G4String& name,
59 G4double arcLength,
60 G4double chordLength,
61 G4double radius,
62 G4double angle,
63 const G4ThreeVector& inputFaceNormal,
64 const G4ThreeVector& outputFaceNormal,
65 const BDSTiltOffset* tiltOffset = nullptr);
66
69 BDSSimpleComponent* CreateCurvilinearVolume(const G4String& name,
70 G4double arcLength,
71 G4double chordLength,
72 G4double radius,
73 G4double angle,
74 const BDSTiltOffset* tiltOffset = nullptr);
75
76private:
79 BDSSimpleComponent* CommonConstruction(const G4String& name,
80 G4double arcLength,
81 G4double chordLength,
82 G4double radius,
83 G4VSolid* solid,
84 G4double angle);
85
87 const G4double lengthSafety;
88};
89
90#endif
Factory to create curvilinear geometry for parallel world.
BDSSimpleComponent * CommonConstruction(const G4String &name, G4double arcLength, G4double chordLength, G4double radius, G4VSolid *solid, G4double angle)
BDSSimpleComponent * CreateCurvilinearVolume(const G4String &name, G4double chordLength, G4double radius)
Build a straight curvilinear volume.
const G4double lengthSafety
Cache of length safety from BDSGlobalConstants.
A BDSAcceleratorComponent wrapper for BDSGeometryComponent.
A holder for any placement offsets and rotations for a BDSAcceleratorComponent.