BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSLaserWire.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 BDSLASERWIRE_H
19#define BDSLASERWIRE_H
20
21#include "globals.hh" // geant4 types / globals
22#include "BDSAcceleratorComponent.hh"
23
34{
35public:
36 BDSLaserWire(G4String aName,
37 G4double aLength,
38 G4double aWavelength,
39 G4ThreeVector aDirection);
40 virtual ~BDSLaserWire();
41
42 inline void SetLaserDirection(G4ThreeVector aDirection) {itsLaserDirection=aDirection;}
43 inline G4ThreeVector GetLaserDirection() const {return itsLaserDirection;}
44
45 inline void SetLaserWavelength(G4double aWavelength) {itsLaserWavelength=aWavelength;}
46 inline G4double GetLaserWavelength() const {return itsLaserWavelength;}
47
48private:
50 BDSLaserWire() = delete;
51
56
58 virtual void BuildContainerLogicalVolume();
59
60 G4ThreeVector itsLaserDirection;
61 G4double itsLaserWavelength;
62};
63
64#endif
Abstract class that represents a component of an accelerator.
A laser wire scanner.
virtual void BuildContainerLogicalVolume()
Construct geometry and assign with special "LaserVac" material.
BDSLaserWire(BDSLaserWire &)
Assignment and copy constructor not implemented nor used.
BDSLaserWire()=delete
Private default constructor to force the use of the supplied one.
BDSLaserWire & operator=(const BDSLaserWire &)=delete
Assignment and copy constructor not implemented nor used.