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) 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 BDSTUNNELSECTION_H
19#define BDSTUNNELSECTION_H
20
21#include "BDSAcceleratorComponent.hh"
22#include "globals.hh" // geant4 types / globals
23
25class G4VSolid;
26
34{
35public:
41 BDSTunnelSection(G4String name,
42 G4double chordLength,
43 G4double angle,
44 BDSGeometryComponent* tunnelGeometry,
45 G4VSolid* innerIntersectionSolidIn);
46
47 virtual ~BDSTunnelSection();
48
53 virtual void Initialise();
54
55 G4VSolid* InnerIntersectionSolid() const {return innerIntersectionSolid;}
56
57protected:
59 virtual void BuildContainerLogicalVolume();
60
61 G4VSolid* innerIntersectionSolid;
62
63private:
65 BDSTunnelSection() = delete;
66
71};
72
73#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.