BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSCavityInfo.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2024.
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 BDSCAVITYINFO_H
20#define BDSCAVITYINFO_H
21
22#include "BDSCavityType.hh"
23
24#include "G4Types.hh"
25
26#include "CLHEP/Units/SystemOfUnits.h"
27
28class G4Material;
29
52{
53public:
55 BDSCavityInfo() = delete;
58 BDSCavityInfo(BDSCavityType cavityTypeIn,
59 G4Material* materialIn,
60 G4double irisRadiusIn,
61 G4double thicknessIn,
62 G4double equatorRadiusIn,
63 G4double halfCellLengthIn,
64 G4int numberOfPointsIn = 24,
65 G4int numberOfCellsIn = 1,
66 G4double equatorHorizontalAxisIn = 42*CLHEP::mm,
67 G4double equatorVerticalAxisIn = 42*CLHEP::mm,
68 G4double irisHorizontalAxisIn = 12*CLHEP::mm,
69 G4double irisVerticalAxisIn = 19*CLHEP::mm,
70 G4double tangentLineAngleIn = 13.3*CLHEP::degree);
71 ~BDSCavityInfo() = default;
72
74 G4Material* material;
75 G4double irisRadius;
76 G4double thickness;
77 G4double equatorRadius;
78 G4double halfCellLength;
79
83
90
93 G4double inputWindowThickness;
94 G4Material* outputWindowMaterial;
95 G4double outputWindowThickness;
96};
97
98#endif
Holder for all Geometrical information required to create an RF cavity.
G4double equatorRadius
Equator radius - half width of widest part.
G4Material * inputWindowMaterial
If the material is not nullptr then the input window is built.
G4double equatorVerticalAxis
Equator ellipse vertical semi-axis.
G4double tangentLineAngle
Tangent angle.
G4double irisRadius
Iris radius - half width of narrowest part.
BDSCavityType cavityType
Cavity type.
G4double irisVerticalAxis
Iris ellipse vertical semi-axis.
G4Material * material
Material.
G4int numberOfCells
Number of cells per cavity.
G4double irisHorizontalAxis
Iris ellipse horizontal semi-axis.
G4double equatorHorizontalAxis
Equator ellipse horizontal semi-axis.
G4double halfCellLength
Half cell length.
G4double thickness
Thickness of wall material.
BDSCavityInfo()=delete
No default constructor.