BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSCavityInfo.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
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#include "globals.hh" // geant4 types / globals
24
25#include "CLHEP/Units/SystemOfUnits.h"
26
27class G4Material;
28
47{
48public:
51 BDSCavityInfo(BDSCavityType cavityTypeIn,
52 G4Material* materialIn,
53 G4double irisRadiusIn,
54 G4double thicknessIn,
55 G4double equatorRadiusIn,
56 G4double halfCellLengthIn,
57 G4int numberOfPointsIn = 24,
58 G4int numberOfCellsIn = 1,
59 G4double equatorHorizontalAxisIn = 42*CLHEP::mm,
60 G4double equatorVerticalAxisIn = 42*CLHEP::mm,
61 G4double irisHorizontalAxisIn = 12*CLHEP::mm,
62 G4double irisVerticalAxisIn = 19*CLHEP::mm,
63 G4double tangentLineAngleIn = 13.3*CLHEP::degree);
64
65
67 G4Material* material;
68 G4double irisRadius;
69 G4double thickness;
70 G4double equatorRadius;
71 G4double halfCellLength;
72
76
83
84private:
87};
88
89#endif
Holder for all Geometrical information required to create an RF cavity.
G4double equatorRadius
Equator radius - half width of widest part.
G4double equatorVerticalAxis
Equator ellipse vertical semi-axis.
BDSCavityInfo()
private default constructor as unused
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.
G4int numberOfPoints
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.