BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSGasCapillary.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 BDSGASCAPILARY_H
20#define BDSGASCAPILARY_H
21
22#include "BDSAcceleratorComponent.hh"
23
24#include "globals.hh" // geant4 types / globals
25
26class G4Colour;
27class G4Material;
28class G4VSolid;
29
37{
38public:
39 BDSGasCapillary(const G4String& name,
40 G4double length,
42 G4double horizontalWidth,
43 G4Material* capillaryOuterMaterial,
44 G4Material* capillaryGasMaterial,
45 G4Material* electrodeMaterial,
46 G4double capillaryGasDiameter = 0,
47 G4double electrodeThickness = 0,
48 G4bool circularOuterIn = false);
49 virtual ~BDSGasCapillary();
50
52 virtual G4String CapillaryOuterMaterial() const;
53 virtual G4String CapillaryGasMaterial() const;
54 virtual G4String ElectrodeMaterial() const;
56
57
58protected:
61 virtual void CheckParameters();
62
63 virtual void BuildContainerLogicalVolume();
64
65 virtual void BuildUncutSolid();
66 virtual void BuildHolesSolid();
67 virtual void BuildCutSolid();
68
69 virtual void Build();
70
71 virtual void SetupLV(G4LogicalVolume* lv, G4Colour* colour);
72
73 G4double horizontalWidth;
77
81 G4VSolid* electrodeSolid;
82
85
89
93 G4Material* electrodeMaterial;
95
98 G4LogicalVolume* capillaryGasLogicalVolume;
99 G4LogicalVolume* electrodeLogicalVolume;
101
102private:
104 BDSGasCapillary() = delete;
105
110};
111
112#endif
Abstract class that represents a component of an accelerator.
const G4String name
Const protected member variable that may not be changed by derived classes.
BDSBeamPipeInfo * beamPipeInfo
Optional beam pipe recipe that is written out to the survey if it exists.
Holder class for all information required to describe a beam pipe model.
Base class for gas capillary.
G4double horizontalWidth
Horizontal width.
G4Material * capillaryOuterMaterial
Materials:
G4LogicalVolume * capillaryOuterLogicalVolume
Logical Volumes:
virtual G4String ElectrodeMaterial() const
Accessor.
G4VSolid * electrodeHoleSolid
Solids:
G4Material * electrodeMaterial
Materials:
BDSGasCapillary()=delete
Private default constructor to force the use of the supplied one.
G4Material * capillaryGasMaterial
Materials:
G4VSolid * capillaryGasSolid
Solids:
virtual void CheckParameters()
G4LogicalVolume * electrodeLogicalVolume
Logical Volumes:
G4bool circularOuter
Aperture type of the outer wall.
virtual void BuildContainerLogicalVolume()
G4VSolid * capillaryOuterSolid
Solids:
virtual G4String CapillaryOuterMaterial() const
Accessor.
G4VSolid * electrodeSolid
Solids:
virtual void Build()
BDSGasCapillary(BDSGasCapillary &)=delete
Assignment and copy constructor not implemented nor used.
G4VSolid * electrodeUncutSolid
Solids:
G4double capillaryGasDiameter
Aperture diameter of the gas.
BDSGasCapillary & operator=(const BDSGasCapillary &)=delete
Assignment and copy constructor not implemented nor used.
G4VSolid * capillaryOuterUncutSolid
Solids:
virtual G4String CapillaryGasMaterial() const
Accessor.
G4VSolid * capillaryHoleSolid
Solids:
G4double electrodeThickness
Thickness of the two electrodes.
G4LogicalVolume * capillaryGasLogicalVolume
Logical Volumes: