BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSCollimatorElliptical.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 BDSCOLLIMATORELLIPTICAL_H
20#define BDSCOLLIMATORELLIPTICAL_H
21
22#include "BDSCollimator.hh"
23
24#include "globals.hh" // geant4 globals / types
25
26class G4Colour;
27class G4Material;
28
34{
35public:
36 BDSCollimatorElliptical(const G4String& name,
37 G4double length,
38 G4double horizontalWidth,
39 G4Material* collimatorMaterial,
40 G4Material* vacuumMaterial,
41 G4double xAperture = 0,
42 G4double yAperture = 0,
43 G4double xOutAperture = 0,
44 G4double yOutAperture = 0,
45 G4Colour* colour = nullptr,
46 G4bool circularOuter = false);
47 virtual ~BDSCollimatorElliptical(){;};
48
49 virtual void BuildInnerCollimator();
50
51protected:
54 virtual void CheckParameters();
55
56private:
59
64};
65
66#endif
const G4String name
Const protected member variable that may not be changed by derived classes.
A class for an elliptical collimator.
BDSCollimatorElliptical()
Private default constructor to force the use of the supplied one.
BDSCollimatorElliptical & operator=(const BDSCollimatorElliptical &)=delete
Assignment and copy constructor not implemented nor used.
BDSCollimatorElliptical(BDSCollimatorElliptical &)=delete
Assignment and copy constructor not implemented nor used.
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.