BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSShield.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 BDSSHIELD_H
19#define BDSSHIELD_H
20
21#include "BDSAcceleratorComponent.hh"
22
23#include "globals.hh" // geant4 types / globals
24
25class BDSBeamPipeInfo;
26
27class G4Colour;
28class G4Material;
29
39{
40public:
41 BDSShield(const G4String& name,
42 G4double length,
43 G4double horizontalWidthIn,
44 G4double xSize,
45 G4double ySize,
46 G4Material* materialIn,
47 G4Colour* colourIn,
48 BDSBeamPipeInfo* beamPipeInfoIn = nullptr);
49 virtual ~BDSShield();
50
51protected:
53 virtual void BuildContainerLogicalVolume();
54
57 virtual void Build();
58
59private:
61 BDSShield() = delete;
62 BDSShield& operator=(const BDSShield&) = delete;
63 BDSShield(BDSShield&) = delete;
65
67 void BuildShield();
68
70 void BuildBeamPipe();
71
72 G4double horizontalWidth;
73 G4double xSize;
74 G4double ySize;
75 G4Material* material;
76 G4Colour* colour;
77};
78
79#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 square mask of solid material with a square aperture.
Definition BDSShield.hh:39
void BuildBeamPipe()
Build a beam pipe in the hole if required.
Definition BDSShield.cc:130
virtual void Build()
Definition BDSShield.cc:55
void BuildShield()
Build the outer shield geoemtry.
Definition BDSShield.cc:73
BDSShield()=delete
Default constructor, assignment and copy constructor not used.
BDSShield & operator=(const BDSShield &)=delete
Default constructor, assignment and copy constructor not used.
G4double horizontalWidth
Outer size of shield.
Definition BDSShield.hh:72
BDSShield(BDSShield &)=delete
Default constructor, assignment and copy constructor not used.
G4Material * material
Shield material.
Definition BDSShield.hh:75
G4double ySize
Inner vertical half width of shield.
Definition BDSShield.hh:74
G4Colour * colour
Colour of shielding block.
Definition BDSShield.hh:76
G4double xSize
Inner horizontal half width of shield.
Definition BDSShield.hh:73
virtual void BuildContainerLogicalVolume()
Build a container volume for everything.
Definition BDSShield.cc:62