BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSDrift.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 BDSDRIFT_H
20#define BDSDRIFT_H
21
22#include "globals.hh"
23
24#include "BDSAcceleratorComponent.hh"
25
26class BDSBeamPipeInfo;
27
39{
40public:
41 BDSDrift(G4String name,
42 G4double length,
44 virtual ~BDSDrift();
45
47 virtual G4String Material() const;
48
49protected:
51 virtual void Build();
52
53private:
55 BDSDrift() = delete;
56
58 virtual void BuildContainerLogicalVolume(){;};
59};
60
61#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.
BDSBeamPipeInfo * beamPipeInfo
Optional beam pipe recipe that is written out to the survey if it exists.
Holder class for all information required to describe a beam pipe model.
A piece of vacuum beam pipe.
Definition: BDSDrift.hh:39
BDSDrift()=delete
No default constructor.
virtual void Build()
Construct geometry.
Definition: BDSDrift.cc:37
virtual void BuildContainerLogicalVolume()
Void function to fulfill BDSAcceleratorComponent requirements.
Definition: BDSDrift.hh:58
virtual G4String Material() const
Override base class version and return beam pipe material if it exists.
Definition: BDSDrift.cc:61