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) 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 BDSCOLLIMATORELLIPTICAL_H
19#define BDSCOLLIMATORELLIPTICAL_H
20
21#include "BDSCollimator.hh"
22
23#include "globals.hh" // geant4 globals / types
24
25class G4Colour;
26class G4Material;
27
33{
34public:
35 BDSCollimatorElliptical(const G4String& name,
36 G4double length,
37 G4double horizontalWidth,
38 G4Material* collimatorMaterial,
39 G4Material* vacuumMaterial,
40 G4double xAperture = 0,
41 G4double yAperture = 0,
42 G4double xOutAperture = 0,
43 G4double yOutAperture = 0,
44 G4Colour* colour = nullptr,
45 G4bool circularOuter = false);
46 virtual ~BDSCollimatorElliptical(){;};
47
48 virtual void BuildInnerCollimator();
49
50protected:
53 virtual void CheckParameters();
54
55private:
58
63};
64
65#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.