BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
__w
bdsim
bdsim
include
BDSCavity.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3
University of London 2001 - 2024.
4
5
This file is part of BDSIM.
6
7
BDSIM is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published
9
by the Free Software Foundation version 3 of the License.
10
11
BDSIM is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef BDSCAVITY_H
20
#define BDSCAVITY_H
21
22
#include "BDSGeometryComponent.hh"
23
24
#include "G4RotationMatrix.hh"
25
#include "G4ThreeVector.hh"
26
27
class
BDSExtent
;
28
29
class
G4LogicalVolume;
30
class
G4VSolid;
31
38
class
BDSCavity
:
public
BDSGeometryComponent
39
{
40
public
:
41
BDSCavity
(G4VSolid* containerSolidIn,
42
G4LogicalVolume* containerLVIn,
43
BDSExtent
extentIn,
44
G4LogicalVolume* vacuumLVIn,
45
G4ThreeVector placementOffsetIn = G4ThreeVector(0,0,0),
46
G4RotationMatrix* placementRotationIn =
nullptr
);
47
48
virtual
~BDSCavity
() {;}
49
51
inline
G4LogicalVolume*
GetVacuumLogicalVolume
()
const
{
return
vacuumLogicalVolume
;};
52
53
protected
:
54
G4LogicalVolume*
vacuumLogicalVolume
;
55
};
56
57
#endif
BDSCavity
A holder class for an RF cavity piece of geometry.
Definition
BDSCavity.hh:39
BDSCavity::GetVacuumLogicalVolume
G4LogicalVolume * GetVacuumLogicalVolume() const
Access the vacuum volume to set fields and limits.
Definition
BDSCavity.hh:51
BDSCavity::vacuumLogicalVolume
G4LogicalVolume * vacuumLogicalVolume
Cache of which volume is the vacuum one.
Definition
BDSCavity.hh:54
BDSExtent
Holder for +- extents in 3 dimensions.
Definition
BDSExtent.hh:39
BDSGeometryComponent
A generic geometry component for a bdsim model.
Definition
BDSGeometryComponent.hh:70
Generated on Sat Oct 18 2025 18:31:03 for BDSIM by
1.9.8