|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Placement class for laser. More...
#include <laser.h>


Public Member Functions | |
| Laser () | |
| constructor | |
| void | clear () |
| reset | |
| void | print () const |
| print some properties | |
| template<typename T > | |
| void | set_value (std::string property, T value) |
| set methods by property name and value | |
Public Member Functions inherited from GMAD::Published< Laser > | |
| bool | NameExists (const std::string &name) const |
| Published< Laser >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
| std::string | name |
| Name of this laser. | |
| double | wavelength {} |
| double | m2 {} |
| double | pulseEnergy {} |
| double | pulseDuration {} |
| double | w0 {} |
| double | sigma0 {} |
| double | laserArrivalTime {} |
| double | laserPolarization1 {} |
| double | laserPolarization2 {} |
| double | laserPolarization3 {} |
| bool | ignoreRayleighRange {} |
Private Member Functions | |
| void | PublishMembers () |
| publish members | |
Additional Inherited Members | |
Protected Types inherited from GMAD::Published< Laser > | |
| using | AttributeMap = typename std::unordered_map< std::string, T C::* > |
| Define AttributeMap of string and class member pointer. | |
Protected Member Functions inherited from GMAD::Published< Laser > | |
| void | publish (const std::string &name, T C::*mp) |
| Make pointer to member from class C and type T with accessible with a name. | |
| void | set (Laser *instance, const Laser *instance2, const std::string &name) |
| Set member with name of class instance to value of second instance. | |
| AttributeMap< T > & | attribute_map () const |
| Access method to static map for type T and class C. | |
| T | get (const Laser *instance, const std::string &name) const |
| Get method for class C. | |
| void | set (Laser *instance, const std::string &name, double value) |
| void | set (Laser *instance, const std::string &name, GMAD::Array *const &value) |
| void | set (Laser *instance, const std::string &name, const T &value) |
| Laser::Laser | ( | ) |
constructor
Definition at line 23 of file laser.cc.
References clear(), and PublishMembers().

| void Laser::clear | ( | ) |
| void Laser::print | ( | ) | const |
|
private |
publish members
Definition at line 45 of file laser.cc.
References name, and GMAD::Published< Laser >::publish().
Referenced by Laser().


| void GMAD::Laser::set_value | ( | std::string | property, |
| T | value | ||
| ) |
set methods by property name and value
Definition at line 68 of file laser.h.
References GMAD::Published< Laser >::set().

| std::string GMAD::Laser::name |
Name of this laser.
Definition at line 38 of file laser.h.
Referenced by clear(), print(), and PublishMembers().