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) 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 BDSCAVITYINFO_H
19#define BDSCAVITYINFO_H
20
21#include "BDSCavityType.hh"
22
23#include "G4Types.hh"
24
25#include "CLHEP/Units/SystemOfUnits.h"
26
27class G4Material;
28
51{
52public:
54 BDSCavityInfo() = delete;
57 BDSCavityInfo(BDSCavityType cavityTypeIn,
58 G4Material* materialIn,
59 G4double irisRadiusIn,
60 G4double thicknessIn,
61 G4double equatorRadiusIn,
62 G4double halfCellLengthIn,
63 G4int numberOfPointsIn = 24,
64 G4int numberOfCellsIn = 1,
65 G4double equatorHorizontalAxisIn = 42*CLHEP::mm,
66 G4double equatorVerticalAxisIn = 42*CLHEP::mm,
67 G4double irisHorizontalAxisIn = 12*CLHEP::mm,
68 G4double irisVerticalAxisIn = 19*CLHEP::mm,
69 G4double tangentLineAngleIn = 13.3*CLHEP::degree);
70 ~BDSCavityInfo() = default;
71
73 G4Material* material;
74 G4double irisRadius;
75 G4double thickness;
76 G4double equatorRadius;
77 G4double halfCellLength;
78
82
89
92 G4double inputWindowThickness;
93 G4Material* outputWindowMaterial;
94 G4double outputWindowThickness;
95};
96
97#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.