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) 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 BDSWIRESCANNER_H
19#define BDSWIRESCANNER_H
20
21#include "BDSAcceleratorComponent.hh"
22
23#include "globals.hh"
24#include "G4Material.hh"
25#include "G4ThreeVector.hh"
26
27class BDSBeamPipeInfo;
28class G4Colour;
29class G4LogicalVolume;
30class G4Material;
31class G4VSolid;
32
40{
41public:
42 BDSWireScanner(const G4String& nameIn,
43 G4double lengthIn,
44 BDSBeamPipeInfo* beamPipeInfoIn,
45 G4Material* wireMaterialIn,
46 G4double wireDiameterIn,
47 G4double wireLengthIn,
48 G4double wireAngleIn = 0,
49 const G4ThreeVector& wireOffsetIn = G4ThreeVector(),
50 G4Colour* wireColourIn = nullptr);
51 BDSWireScanner() = delete;
56 virtual ~BDSWireScanner(){;}
57
59 virtual G4String Material() const {return wireMaterial->GetName();}
60
61protected:
62 virtual void Build();
63 virtual void BuildContainerLogicalVolume();
64
66 virtual G4VSolid* BuildWireSolid();
67 virtual G4LogicalVolume* BuildWireLV(G4VSolid* solid);
69
70 G4Material* wireMaterial;
71 G4double wireDiameter;
72 G4double wireLength;
73 G4double wireAngle;
74 G4ThreeVector wireOffset;
75 G4Colour* wireColour;
76};
77
78#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(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.