BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSCavity.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 BDSCAVITY_H
20#define BDSCAVITY_H
21
22#include "BDSGeometryComponent.hh"
23
24#include "G4RotationMatrix.hh"
25#include "G4ThreeVector.hh"
26
27class BDSExtent;
28
29class G4LogicalVolume;
30class G4VSolid;
31
39{
40public:
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
53protected:
54 G4LogicalVolume* vacuumLogicalVolume;
55};
56
57#endif
A holder class for an RF cavity piece of geometry.
Definition: BDSCavity.hh:39
G4LogicalVolume * GetVacuumLogicalVolume() const
Access the vacuum volume to set fields and limits.
Definition: BDSCavity.hh:51
G4LogicalVolume * vacuumLogicalVolume
Cache of which volume is the vacuum one.
Definition: BDSCavity.hh:51
Holder for +- extents in 3 dimensions.
Definition: BDSExtent.hh:39
A generic geometry component for a bdsim model.