BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSCollimatorRectangular.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 BDSCOLLIMATORRECTANGULAR_H
20#define BDSCOLLIMATORRECTANGULAR_H
21
22#include "BDSCollimator.hh"
23
24class G4Colour;
25class G4Material;
26
32{
33public:
34 BDSCollimatorRectangular(const G4String& name,
35 G4double length,
36 G4double horizontalWidth,
37 G4Material* collimatorMaterial,
38 G4Material* vacuumMaterial,
39 G4double xAperture = 0,
40 G4double yAperture = 0,
41 G4double xOutAperture = 0,
42 G4double yOutAperture = 0,
43 G4Colour* colour = nullptr,
44 G4bool circularOuter = false);
45 virtual ~BDSCollimatorRectangular(){;};
46
47 virtual void BuildInnerCollimator();
48
49private:
52
57};
58
59#endif
const G4String name
Const protected member variable that may not be changed by derived classes.
A class for a rectangular collimator.
BDSCollimatorRectangular(BDSCollimatorRectangular &)=delete
Assignment and copy constructor not implemented nor used.
BDSCollimatorRectangular & operator=(const BDSCollimatorRectangular &)=delete
Assignment and copy constructor not implemented nor used.
BDSCollimatorRectangular()
Private default constructor to force the use of the supplied one.
Base class for collimators with common construction.
G4bool circularOuter
Aperture type of the collimator.
G4double xAperture
Aperture at entrance in x dimension.
G4Material * vacuumMaterial
Vacuum material.
G4double horizontalWidth
Horizontal width.
G4double yAperture
Aperture at entrance in y dimension.
G4Material * collimatorMaterial
Material.
G4Colour * colour
Colour of collimator.