|
| Photon (Eigen::Vector3d &position, Eigen::Vector3d &direction, double energy) |
| Constructor for the Photon class.
|
|
double | interact (Material &material) |
| Performs the current interaction behavior of the photon.
|
|
void | setInteractionBehavior (std::shared_ptr< ParticleInteractionBehavior > interaction_behavior) |
| Sets the interaction behavior of the photon.
|
|
void | addCoherentScatter () |
| Adds a coherent scatter to the scattering history.
|
|
void | addIncoherentScatter () |
| Adds an incoherent scatter to the scattering history.
|
|
int | getTotalScatterCount () const |
| Returns to total number of scatters in the scattering history.
|
|
int | getCoherentScatterCount () const |
| Returns the number of coherent scatters in the scattering history.
|
|
int | getIncoherentScatterCount () const |
| Returns the number of incoherent scatters in the scattering history.
|
|
Public Member Functions inherited from Particle |
| Particle (Eigen::Vector3d &position, Eigen::Vector3d &direction, double energy) |
| Constructor for the Particle class.
|
|
Eigen::Vector3d | getPosition () const |
| Returns the position of the particle.
|
|
Eigen::Vector3d | getDirection () const |
| Returns the direction of the particle.
|
|
double | getEnergy () const |
| Returns the energy of the particle.
|
|
void | move (const double &distance) |
| Moves the particle by the given distance in the direction of the particle.
|
|
void | setDirection (const Eigen::Vector3d &newDirection) |
| Sets the direction of the particle.
|
|
void | rotate (const double &theta, const double &phi) |
| Rotates the particle by the given angles with respect to the initial direction of the particle, represented by the z axis.
|
|
void | setEnergy (const double &newEnergy) |
| Sets the energy of the particle.
|
|
bool | isTerminated () const |
| Returns whether or not the particle has terminated.
|
|
void | terminate () |
| Terminates the particle.
|
|
bool | isPrimary () const |
| Returns whether or not the particle is primary.
|
|
void | setPrimary (bool primary_status) |
| Sets whether or not the particle is primary.
|
|
Class which represents a photon. Inherits from Particle.
Adds specific photon interacts and scattering history to the Particle class.
Definition at line 25 of file photon.h.