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) 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 BDSGASCAPILARY_H
19#define BDSGASCAPILARY_H
20
21#include "BDSAcceleratorComponent.hh"
22
23#include "globals.hh" // geant4 types / globals
24
25class G4Colour;
26class G4Material;
27class G4VSolid;
28
36{
37public:
38 BDSGasCapillary(const G4String& name,
39 G4double length,
41 G4double horizontalWidth,
42 G4Material* capillaryOuterMaterial,
43 G4Material* capillaryGasMaterial,
44 G4Material* electrodeMaterial,
45 G4double capillaryGasDiameter = 0,
46 G4double electrodeThickness = 0,
47 G4bool circularOuterIn = false);
48 virtual ~BDSGasCapillary();
49
51 virtual G4String CapillaryOuterMaterial() const;
52 virtual G4String CapillaryGasMaterial() const;
53 virtual G4String ElectrodeMaterial() const;
55
56
57protected:
60 virtual void CheckParameters();
61
62 virtual void BuildContainerLogicalVolume();
63
64 virtual void BuildUncutSolid();
65 virtual void BuildHolesSolid();
66 virtual void BuildCutSolid();
67
68 virtual void Build();
69
70 virtual void SetupLV(G4LogicalVolume* lv, G4Colour* colour);
71
72 G4double horizontalWidth;
76
80 G4VSolid* electrodeSolid;
81
84
88
92 G4Material* electrodeMaterial;
94
97 G4LogicalVolume* capillaryGasLogicalVolume;
98 G4LogicalVolume* electrodeLogicalVolume;
100
101private:
103 BDSGasCapillary() = delete;
104
109};
110
111#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: