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) 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 BDSDUMP_H
19#define BDSDUMP_H
20
21#include "globals.hh"
22
23#include "BDSAcceleratorComponent.hh"
24
32{
33public:
34 BDSDump(G4String nameIn,
35 G4double lengthIn,
36 G4double horizontalWidthIn,
37 G4bool circular = false);
38
39 virtual ~BDSDump();
40
42 virtual G4String Material() const override {return "infiniteabsorber";}
43
44protected:
46 virtual void Build() override;
47
49 virtual void BuildContainerLogicalVolume() override;
50
52 virtual void BuildUserLimits() override;
53
54private:
56 BDSDump() = delete;
57
58 G4double horizontalWidth;
59 G4bool circular;
60
62 BDSDump& operator=(const BDSDump&) = delete;
63 BDSDump(BDSDump&) = delete;
65};
66
67#endif
Abstract class that represents a component of an accelerator.
An infinite absorber.
Definition BDSDump.hh:32
BDSDump()=delete
No default constructor.
virtual void BuildContainerLogicalVolume() override
Build a simple box or cylinder.
Definition BDSDump.cc:57
virtual G4String Material() const override
Override base class version and return beam pipe material if it exists.
Definition BDSDump.hh:42
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:45
virtual void BuildUserLimits() override
Customised user limits.
Definition BDSDump.cc:84