BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSDump.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 BDSDUMP_H
20#define BDSDUMP_H
21
22#include "globals.hh"
23
24#include "BDSAcceleratorComponent.hh"
25
33{
34public:
35 BDSDump(G4String nameIn,
36 G4double lengthIn,
37 G4double horizontalWidthIn,
38 G4bool circular = false);
39
40 virtual ~BDSDump();
41
43 virtual G4String Material() const override {return "infiniteabsorber";}
44
45protected:
47 virtual void Build() override;
48
50 virtual void BuildContainerLogicalVolume() override;
51
53 virtual void BuildUserLimits() override;
54
55private:
57 BDSDump() = delete;
58
59 G4double horizontalWidth;
60 G4bool circular;
61
63 BDSDump& operator=(const BDSDump&) = delete;
64 BDSDump(BDSDump&) = delete;
66};
67
68#endif
Abstract class that represents a component of an accelerator.
An infinite absorber.
Definition: BDSDump.hh:33
BDSDump()=delete
No default constructor.
virtual void BuildContainerLogicalVolume() override
Build a simple box or cylinder.
Definition: BDSDump.cc:58
virtual G4String Material() const override
Override base class version and return beam pipe material if it exists.
Definition: BDSDump.hh:43
BDSDump & operator=(const BDSDump &)=delete
Assignment and copy constructor not implemented nor used.
BDSDump(BDSDump &)=delete
Assignment and copy constructor not implemented nor used.
virtual void Build() override
Call default build then override visualisation attributes.
Definition: BDSDump.cc:46
virtual void BuildUserLimits() override
Customised user limits.
Definition: BDSDump.cc:85