BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSLaserWireNew.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 BDSLASERWIRENEW_H
20#define BDSLASERWIRENEW_H
21#include "BDSAcceleratorComponent.hh"
22
23#include "globals.hh"
24#include "G4ThreeVector.hh"
25
26class BDSBeamPipeInfo;
27class BDSLaser;
28
29class G4Colour;
30class G4LogicalVolume;
31class G4Material;
32class G4VSolid;
33
41{
42public:
43 BDSLaserWireNew(G4String nameIn,
44 G4double lengthIn,
45 BDSBeamPipeInfo* beamPipeInfoIn,
46 BDSLaser* laserIn,
47 G4double wireDiameterIn,
48 G4double wireLengthIn,
49 G4double wireAngleIn = 0,
50 G4double wireLongitudinalAngleIn = 0,
51 G4ThreeVector wireOffsetIn = G4ThreeVector(),
52 G4Colour* wireColourIn = nullptr);
53 virtual ~BDSLaserWireNew();
54
55protected:
56 virtual G4LogicalVolume* BuildWireLV(G4VSolid* solid);
57 virtual void Build();
58 virtual void BuildContainerLogicalVolume();
59 virtual G4VSolid* BuildHyperbolicWireSolid();
60
61private:
63 BDSLaserWireNew() = delete;
64
69
70 const BDSLaser* laser;
71 G4Material* wireMaterial;
72 G4double wireDiameter;
73 G4double wireLength;
74 G4double wireAngle;
75 G4double wireLongitudinalAngle;
76 G4ThreeVector wireOffset;
77 G4Colour* wireColour;
78};
79
80#endif
Abstract class that represents a component of an accelerator.
Holder class for all information required to describe a beam pipe model.
Laserwire in beam pipe.
virtual void BuildContainerLogicalVolume()
BDSLaserWireNew(BDSLaserWireNew &)=delete
Assignment and copy constructor not implemented nor used.
BDSLaserWireNew & operator=(const BDSLaserWireNew &)=delete
Assignment and copy constructor not implemented nor used.
BDSLaserWireNew()=delete
Private default constructor to force the use of the supplied one.
virtual void Build()
Class to provide laser intensity at any point.
Definition BDSLaser.hh:36