BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSTunnelSection.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 BDSTUNNELSECTION_H
20#define BDSTUNNELSECTION_H
21
22#include "BDSAcceleratorComponent.hh"
23#include "globals.hh" // geant4 types / globals
24
26class G4VSolid;
27
35{
36public:
42 BDSTunnelSection(G4String name,
43 G4double chordLength,
44 G4double angle,
45 BDSGeometryComponent* tunnelGeometry,
46 G4VSolid* innerIntersectionSolidIn);
47
48 virtual ~BDSTunnelSection();
49
54 virtual void Initialise();
55
56 G4VSolid* InnerIntersectionSolid() const {return innerIntersectionSolid;}
57
58protected:
60 virtual void BuildContainerLogicalVolume();
61
62 G4VSolid* innerIntersectionSolid;
63
64private:
66 BDSTunnelSection() = delete;
67
72};
73
74#endif
Abstract class that represents a component of an accelerator.
const G4String name
Const protected member variable that may not be changed by derived classes.
G4double angle
Protected member variable that can be modified by derived classes.
G4double chordLength
Protected member variable that can be modified by derived classes.
A generic geometry component for a bdsim model.
Class that represents a section of tunnel.
BDSTunnelSection()=delete
Private default constructor to force the use of the supplied one.
virtual void BuildContainerLogicalVolume()
Have to provide implementation - does nothing.
virtual void Initialise()
BDSTunnelSection & operator=(const BDSTunnelSection &)=delete
Assignment and copy constructor not implemented nor used.
BDSTunnelSection(BDSTunnelSection &)=delete
Assignment and copy constructor not implemented nor used.