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) Royal Holloway,
3University of London 2001 - 2023.
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 BDSLASERWIRE_H
20#define BDSLASERWIRE_H
21
22#include "globals.hh" // geant4 types / globals
23#include "BDSAcceleratorComponent.hh"
24
35{
36public:
37 BDSLaserWire(G4String aName,
38 G4double aLength,
39 G4double aWavelength,
40 G4ThreeVector aDirection);
41 virtual ~BDSLaserWire();
42
43 inline void SetLaserDirection(G4ThreeVector aDirection) {itsLaserDirection=aDirection;}
44 inline G4ThreeVector GetLaserDirection() const {return itsLaserDirection;}
45
46 inline void SetLaserWavelength(G4double aWavelength) {itsLaserWavelength=aWavelength;}
47 inline G4double GetLaserWavelength() const {return itsLaserWavelength;}
48
49private:
51 BDSLaserWire() = delete;
52
57
59 virtual void BuildContainerLogicalVolume();
60
61 G4ThreeVector itsLaserDirection;
62 G4double itsLaserWavelength;
63};
64
65#endif
Abstract class that represents a component of an accelerator.
A laser wire scanner.
Definition: BDSLaserWire.hh:35
virtual void BuildContainerLogicalVolume()
Construct geometry and assign with special "LaserVac" material.
Definition: BDSLaserWire.cc:40
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.