BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSTarget.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 BDSTARGET_H
20#define BDSTARGET_H
21
22#include "BDSCollimator.hh"
23
24class G4Colour;
25class G4Material;
26
36{
37public:
38 BDSTarget(const G4String& name,
39 G4double length,
40 G4double horizontalWidth,
41 G4Material* collimatorMaterial,
42 G4Colour* colour = nullptr,
43 G4bool circularOuter = false);
44 virtual ~BDSTarget(){;};
45
46 virtual void BuildInnerCollimator() {;}
47
48private:
51
53 BDSTarget& operator=(const BDSTarget&) = delete;
54 BDSTarget(BDSTarget&) = delete;
56};
57
58#endif
const G4String name
Const protected member variable that may not be changed by derived classes.
Base class for collimators with common construction.
G4bool circularOuter
Aperture type of the collimator.
G4double horizontalWidth
Horizontal width.
G4Material * collimatorMaterial
Material.
G4Colour * colour
Colour of collimator.
A class for a box or cylinder piece of 1 material.
Definition: BDSTarget.hh:36
BDSTarget(BDSTarget &)=delete
Assignment and copy constructor not implemented nor used.
BDSTarget & operator=(const BDSTarget &)=delete
Assignment and copy constructor not implemented nor used.
virtual void BuildInnerCollimator()
Definition: BDSTarget.hh:46
BDSTarget()
Private default constructor to force the use of the supplied one.