BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSWireScanner.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 BDSWIRESCANNER_H
20#define BDSWIRESCANNER_H
21
22#include "BDSAcceleratorComponent.hh"
23
24#include "globals.hh"
25#include "G4Material.hh"
26#include "G4ThreeVector.hh"
27
28class BDSBeamPipeInfo;
29class G4Material;
30
38{
39public:
40 BDSWireScanner(G4String nameIn,
41 G4double lengthIn,
42 BDSBeamPipeInfo* beamPipeInfoIn,
43 G4Material* wireMaterialIn,
44 G4double wireDiameterIn,
45 G4double wireLengthIn,
46 G4double wireAngleIn = 0,
47 G4ThreeVector wireOffsetIn = G4ThreeVector());
48
49 virtual ~BDSWireScanner(){;}
50
52 virtual G4String Material() const {return wireMaterial->GetName();}
53
54protected:
55 virtual void Build();
56
57 virtual void BuildContainerLogicalVolume();
58
59 G4Material* wireMaterial;
60 G4double wireDiameter;
61 G4double wireLength;
62 G4double wireAngle;
63 G4ThreeVector wireOffset;
64
65private:
67 BDSWireScanner() = delete;
68
73};
74
75#endif
Abstract class that represents a component of an accelerator.
Holder class for all information required to describe a beam pipe model.
Single cylindrical wire inside beam pipe.
virtual void BuildContainerLogicalVolume()
virtual void Build()
BDSWireScanner()=delete
Private default constructor to force the use of the supplied one.
BDSWireScanner(BDSWireScanner &)=delete
Assignment and copy constructor not implemented nor used.
virtual G4String Material() const
Return the name of a material - in this case the wire is the most relevant.
BDSWireScanner & operator=(const BDSWireScanner &)=delete
Assignment and copy constructor not implemented nor used.