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) 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 BDSDRIFT_H
19#define BDSDRIFT_H
20
21#include "globals.hh"
22
23#include "BDSAcceleratorComponent.hh"
24
25class BDSBeamPipeInfo;
26
38{
39public:
40 BDSDrift(G4String name,
41 G4double length,
43 virtual ~BDSDrift();
44
46 virtual G4String Material() const;
47
48protected:
50 virtual void Build();
51
52private:
54 BDSDrift() = delete;
55
57 virtual void BuildContainerLogicalVolume(){;};
58};
59
60#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:38
BDSDrift()=delete
No default constructor.
virtual void Build()
Construct geometry.
Definition BDSDrift.cc:36
virtual void BuildContainerLogicalVolume()
Void function to fulfill BDSAcceleratorComponent requirements.
Definition BDSDrift.hh:57
virtual G4String Material() const
Override base class version and return beam pipe material if it exists.
Definition BDSDrift.cc:60