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) 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 BDSTARGET_H
19#define BDSTARGET_H
20
21#include "BDSCollimator.hh"
22
23class G4Colour;
24class G4Material;
25
35{
36public:
37 BDSTarget(const G4String& name,
38 G4double length,
39 G4double horizontalWidth,
40 G4Material* collimatorMaterial,
41 G4Colour* colour = nullptr,
42 G4bool circularOuter = false);
43 virtual ~BDSTarget(){;};
44
45 virtual void BuildInnerCollimator() {;}
46
47private:
50
52 BDSTarget& operator=(const BDSTarget&) = delete;
53 BDSTarget(BDSTarget&) = delete;
55};
56
57#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:35
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:45
BDSTarget()
Private default constructor to force the use of the supplied one.