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) 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 BDSCURVILINEARFACTORY_H
19#define BDSCURVILINEARFACTORY_H
20
21#include "globals.hh"
22#include "G4ThreeVector.hh"
23
25class BDSTiltOffset;
26
27class G4VSolid;
28
44{
45public:
48
50 BDSSimpleComponent* CreateCurvilinearVolume(const G4String& name,
51 G4double chordLength,
52 G4double radius);
53
57 BDSSimpleComponent* CreateCurvilinearVolume(const G4String& name,
58 G4double arcLength,
59 G4double chordLength,
60 G4double radius,
61 G4double angle,
62 const G4ThreeVector& inputFaceNormal,
63 const G4ThreeVector& outputFaceNormal,
64 const BDSTiltOffset* tiltOffset = nullptr);
65
68 BDSSimpleComponent* CreateCurvilinearVolume(const G4String& name,
69 G4double arcLength,
70 G4double chordLength,
71 G4double radius,
72 G4double angle,
73 const BDSTiltOffset* tiltOffset = nullptr);
74
75private:
78 BDSSimpleComponent* CommonConstruction(const G4String& name,
79 G4double arcLength,
80 G4double chordLength,
81 G4double radius,
82 G4VSolid* solid,
83 G4double angle);
84
86 const G4double lengthSafety;
87};
88
89#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.