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) Royal Holloway,
3University of London 2001 - 2023.
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 BDSSHIELD_H
20#define BDSSHIELD_H
21
22#include "BDSAcceleratorComponent.hh"
23
24#include "globals.hh" // geant4 types / globals
25
26class BDSBeamPipeInfo;
27
28class G4Colour;
29class G4Material;
30
40{
41public:
42 BDSShield(const G4String& name,
43 G4double length,
44 G4double horizontalWidthIn,
45 G4double xSize,
46 G4double ySize,
47 G4Material* materialIn,
48 G4Colour* colourIn,
49 BDSBeamPipeInfo* beamPipeInfoIn = nullptr);
50 virtual ~BDSShield();
51
52protected:
54 virtual void BuildContainerLogicalVolume();
55
58 virtual void Build();
59
60private:
62 BDSShield() = delete;
63 BDSShield& operator=(const BDSShield&) = delete;
64 BDSShield(BDSShield&) = delete;
66
68 void BuildShield();
69
71 void BuildBeamPipe();
72
73 G4double horizontalWidth;
74 G4double xSize;
75 G4double ySize;
76 G4Material* material;
77 G4Colour* colour;
78};
79
80#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:40
void BuildBeamPipe()
Build a beam pipe in the hole if required.
Definition: BDSShield.cc:131
virtual void Build()
Definition: BDSShield.cc:56
void BuildShield()
Build the outer shield geoemtry.
Definition: BDSShield.cc:74
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:73
BDSShield(BDSShield &)=delete
Default constructor, assignment and copy constructor not used.
G4Material * material
Shield material.
Definition: BDSShield.hh:76
G4double ySize
Inner vertical half width of shield.
Definition: BDSShield.hh:75
G4Colour * colour
Colour of shielding block.
Definition: BDSShield.hh:77
G4double xSize
Inner horizontal half width of shield.
Definition: BDSShield.hh:74
virtual void BuildContainerLogicalVolume()
Build a container volume for everything.
Definition: BDSShield.cc:63