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 - 2024.
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 G4Colour;
30class G4LogicalVolume;
31class G4Material;
32class G4VSolid;
33
41{
42public:
43 BDSWireScanner(G4String nameIn,
44 G4double lengthIn,
45 BDSBeamPipeInfo* beamPipeInfoIn,
46 G4Material* wireMaterialIn,
47 G4double wireDiameterIn,
48 G4double wireLengthIn,
49 G4double wireAngleIn = 0,
50 G4ThreeVector wireOffsetIn = G4ThreeVector(),
51 G4Colour* wireColourIn = nullptr
52
53 );
54
55 virtual ~BDSWireScanner(){;}
56
58 virtual G4String Material() const {return wireMaterial->GetName();}
59
60protected:
61 virtual void Build();
62 virtual void BuildContainerLogicalVolume();
63
65 virtual G4VSolid* BuildWireSolid();
66 virtual G4LogicalVolume* BuildWireLV(G4VSolid* solid);
68
69 G4Material* wireMaterial;
70 G4double wireDiameter;
71 G4double wireLength;
72 G4double wireAngle;
73 G4ThreeVector wireOffset;
74 G4Colour* wireColour;
75
76private:
78 BDSWireScanner() = delete;
79
84};
85
86#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()
virtual G4VSolid * BuildWireSolid()
Allow overriding of certain bits of construction.
virtual G4LogicalVolume * BuildWireLV(G4VSolid *solid)
Allow overriding of certain bits of construction.
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.