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) 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 BDSLASERWIRENEW_H
19#define BDSLASERWIRENEW_H
20#include "BDSAcceleratorComponent.hh"
21
22#include "globals.hh"
23#include "G4ThreeVector.hh"
24
25class BDSBeamPipeInfo;
26class BDSLaser;
27
28class G4Colour;
29class G4LogicalVolume;
30class G4Material;
31class G4VSolid;
32
40{
41public:
42 BDSLaserWireNew(G4String nameIn,
43 G4double lengthIn,
44 BDSBeamPipeInfo* beamPipeInfoIn,
45 BDSLaser* laserIn,
46 G4double wireDiameterIn,
47 G4double wireLengthIn,
48 G4double wireAngleIn = 0,
49 G4double wireLongitudinalAngleIn = 0,
50 G4ThreeVector wireOffsetIn = G4ThreeVector(),
51 G4Colour* wireColourIn = nullptr);
52 virtual ~BDSLaserWireNew();
53
54protected:
55 virtual G4LogicalVolume* BuildWireLV(G4VSolid* solid);
56 virtual void Build();
57 virtual void BuildContainerLogicalVolume();
58 virtual G4VSolid* BuildHyperbolicWireSolid();
59
60private:
62 BDSLaserWireNew() = delete;
63
68
69 const BDSLaser* laser;
70 G4Material* wireMaterial;
71 G4double wireDiameter;
72 G4double wireLength;
73 G4double wireAngle;
74 G4double wireLongitudinalAngle;
75 G4ThreeVector wireOffset;
76 G4Colour* wireColour;
77};
78
79#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:35