BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSGasJet.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 BDSGASJET_H
19#define BDSGASJET_H
20
21#include "globals.hh"
22
23#include "BDSAcceleratorComponent.hh"
24
25class G4Colour;
26class G4Material;
27class G4VSolid;
28
36{
37public:
38 BDSGasJet(const G4String& name,
39 G4double length,
40 BDSBeamPipeInfo* beamPipeInfoIn,
41 G4Material* gasMaterial,
42 G4double xSize = 0,
43 G4double ySize = 0,
44 G4double zSize = 0,
45 G4double xAngle = 0,
46 G4double yAngle = 0,
47 G4double zAngle = 0,
48 G4double xOffset = 0,
49 G4double yOffset = 0);
50 virtual ~BDSGasJet(){;};
51
53 virtual G4String Material() const;
55
56protected:
59 virtual void CheckParameters();
60 virtual void BuildContainerLogicalVolume();
61 virtual void Build();
62
64 G4VSolid* gasSolid;
66
67 G4Material* gasMaterial;
68 G4double xSize;
69 G4double ySize;
70 G4double zSize;
71 G4double xAngle;
72 G4double yAngle;
73 G4double zAngle;
74 G4double xOffset;
75 G4double yOffset;
76
77
78
79
80
81private:
83 BDSGasJet() = delete;
84
86 BDSGasJet& operator=(const BDSGasJet&) = delete;
87 BDSGasJet(BDSGasJet&) = delete;
89};
90
91#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.
Holder class for all information required to describe a beam pipe model.
A class for a gas jet.
Definition BDSGasJet.hh:36
G4Material * gasMaterial
Gas material.
Definition BDSGasJet.hh:67
BDSGasJet()=delete
Private default constructor to force the use of the supplied one.
G4double ySize
Aperture of main slit in y dimension.
Definition BDSGasJet.hh:69
G4double xOffset
Offset of the side slit wrt the main slit in x.
Definition BDSGasJet.hh:74
virtual G4String Material() const
Accessor.
Definition BDSGasJet.cc:87
G4double xSize
Aperture of main slit in x dimension.
Definition BDSGasJet.hh:68
G4double zAngle
Offset of the mask in the pipe in y.
Definition BDSGasJet.hh:73
virtual void CheckParameters()
Definition BDSGasJet.cc:63
G4VSolid * gasSolid
Geometrical objects:
Definition BDSGasJet.hh:64
virtual void Build()
Definition BDSGasJet.cc:118
G4double zSize
Aperture of side slit in x dimension.
Definition BDSGasJet.hh:70
G4double yOffset
Offset of the side slit wrt the main slit in y.
Definition BDSGasJet.hh:75
G4double xAngle
Aperture of side slit in y dimension.
Definition BDSGasJet.hh:71
BDSGasJet(BDSGasJet &)=delete
Assignment and copy constructor not implemented nor used.
G4double yAngle
Offset of the mask in the pipe in x.
Definition BDSGasJet.hh:72
virtual void BuildContainerLogicalVolume()
Definition BDSGasJet.cc:95
BDSGasJet & operator=(const BDSGasJet &)=delete
Assignment and copy constructor not implemented nor used.