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) 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 BDSLOGICALVOLUMELASER_H
19#define BDSLOGICALVOLUMELASER_H
20#include "G4LogicalVolume.hh"
21#include "G4Types.hh"
22
23class BDSLaser;
24class G4FieldManager;
25class G4Material;
26class G4UserLimits;
27class G4VSensitiveDetector;
28class G4VSolid;
29
36class BDSLogicalVolumeLaser: public G4LogicalVolume
37{
38public:
39 BDSLogicalVolumeLaser(G4VSolid* solid,
40 G4Material* material,
41 const G4String& name,
42 const BDSLaser* laserIn,
43 G4FieldManager* fieldManager = nullptr,
44 G4VSensitiveDetector* sensitiveDetector = nullptr,
45 G4UserLimits* userLimits = nullptr,
46 G4bool optimise = true);
47
48 virtual ~BDSLogicalVolumeLaser();
49
51 const BDSLaser* Laser() const {return laser;}
52
54 virtual G4bool IsExtended() const override {return true;}
55
56private:
61
64};
65
66#endif
67
Class to provide laser intensity at any point.
Definition BDSLaser.hh:35
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.