BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSGap.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
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 BDSGAP_H
20#define BDSGAP_H
21
22#include "globals.hh"
23#include "BDSAcceleratorComponent.hh"
24
32{
33public:
34 BDSGap(G4String nameIn,
35 G4double lengthIn,
36 G4double angleIn);
37 virtual ~BDSGap();
38
39protected:
40 virtual void Build();
41
42 virtual void BuildContainerLogicalVolume();
43
44private:
46 BDSGap() = delete;
47
49 BDSGap& operator=(const BDSGap&) = delete;
50 BDSGap(BDSGap&) = delete;
52};
53
54#endif
Abstract class that represents a component of an accelerator.
Gap in accelerator beamline.
Definition: BDSGap.hh:32
BDSGap & operator=(const BDSGap &)=delete
Assignment and copy constructor not implemented nor used.
BDSGap(BDSGap &)=delete
Assignment and copy constructor not implemented nor used.
BDSGap()=delete
Private default constructor to force the use of the supplied one.
virtual void BuildContainerLogicalVolume()
Definition: BDSGap.cc:36
virtual void Build()
Definition: BDSGap.cc:39