BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
__w
bdsim
bdsim
src
BDSMagnetOuterFactoryPolesFacetCrop.cc
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4
This file is part of BDSIM.
5
6
BDSIM is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published
8
by the Free Software Foundation version 3 of the License.
9
10
BDSIM is distributed in the hope that it will be useful, but
11
WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#include "BDSMagnetOuterFactoryPolesFacetCrop.hh"
19
20
BDSMagnetOuterFactoryPolesFacetCrop::BDSMagnetOuterFactoryPolesFacetCrop():
21
BDSMagnetOuterFactoryPolesFacetCommon
(2)
22
{;}
23
24
void
BDSMagnetOuterFactoryPolesFacetCrop::CalculateStartAngles
()
25
{
26
polyStartAngle
=
segmentAngle
*0.25;
27
poleIntersectionStartAngle
= -
segmentAngle
*0.25 - CLHEP::halfpi;
28
}
BDSMagnetOuterFactoryPolesBase::segmentAngle
G4double segmentAngle
2PI / # of poles - angle per segment allocated for each pole.
Definition
BDSMagnetOuterFactoryPolesBase.hh:168
BDSMagnetOuterFactoryPolesFacetCommon
Factory class for outer volume of magnets.
Definition
BDSMagnetOuterFactoryPolesFacetCommon.hh:42
BDSMagnetOuterFactoryPolesFacetCommon::polyStartAngle
G4double polyStartAngle
Start angle for polyhedra.
Definition
BDSMagnetOuterFactoryPolesFacetCommon.hh:53
BDSMagnetOuterFactoryPolesFacetCommon::poleIntersectionStartAngle
G4double poleIntersectionStartAngle
Start angle for pole intersection.
Definition
BDSMagnetOuterFactoryPolesFacetCommon.hh:56
BDSMagnetOuterFactoryPolesFacetCrop::CalculateStartAngles
virtual void CalculateStartAngles()
Calculate start angle of polyhedra based on order and segment angle.
Definition
BDSMagnetOuterFactoryPolesFacetCrop.cc:24
Generated on Thu Nov 12 2026 21:37:00 for BDSIM by
1.9.8