BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSLogicalVolumeLaser.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 BDSLOGICALVOLUMELASER_H
20#define BDSLOGICALVOLUMELASER_H
21#include "G4LogicalVolume.hh"
22#include "G4Types.hh"
23
24class BDSLaser;
25class G4FieldManager;
26class G4Material;
27class G4UserLimits;
28class G4VSensitiveDetector;
29class G4VSolid;
30
37class BDSLogicalVolumeLaser: public G4LogicalVolume
38{
39public:
40 BDSLogicalVolumeLaser(G4VSolid* solid,
41 G4Material* material,
42 const G4String& name,
43 const BDSLaser* laserIn,
44 G4FieldManager* fieldManager = nullptr,
45 G4VSensitiveDetector* sensitiveDetector = nullptr,
46 G4UserLimits* userLimits = nullptr,
47 G4bool optimise = true);
48
49 virtual ~BDSLogicalVolumeLaser();
50
52 const BDSLaser* Laser() const {return laser;}
53
55 virtual G4bool IsExtended() const override {return true;}
56
57private:
62
65};
66
67#endif
68
Class to provide laser intensity at any point.
Definition BDSLaser.hh:36
Extended logical volume with laser definition.
virtual G4bool IsExtended() const override
Override flag function as to whether G4LogicalVolume is extended.
const BDSLaser * Laser() const
Access the laser.
BDSLogicalVolumeLaser & operator=(const BDSLogicalVolumeLaser &other)=delete
Private copy and assignment constructors.
BDSLogicalVolumeLaser(const BDSLogicalVolumeLaser &other)=delete
Private copy and assignment constructors.
BDSLaser * laser
Laser instance - owned by this class.