Class for trajectory diagnostic data column.
More...
#include <trajectorydiagnostics.hpp>
|
| | TrajectoryDiagnosticColumn (trajectory_diagnostic_e diag) |
| | Create new diagnostic data column with type diag.
|
| |
| void | mirror (coordinate_axis_e axis, double level) |
| | Add mirrored trajectory diagnostic data to the column.
|
| |
| void | add_data (double x) |
| | Add diagnostic data point to column.
|
| |
| std::vector< double > & | data (void) |
| | Get a reference to diagnostic data vector.
|
| |
| const std::vector< double > & | data (void) const |
| | Get a const reference to diagnostic data vector.
|
| |
| size_t | size (void) const |
| | Get size of diagnostic data vector.
|
| |
| trajectory_diagnostic_e | diagnostic (void) const |
| | Get diagnostic type.
|
| |
| const double & | operator() (size_t i) const |
| | Get const reference to data element i.
|
| |
| double & | operator() (size_t i) |
| | Get reference to data element i.
|
| |
| const double & | operator[] (size_t i) const |
| | Get const reference to data element i.
|
| |
| double & | operator[] (size_t i) |
| | Get reference to data element i.
|
| |
Class for trajectory diagnostic data column.
Contains one specified (trajectory_diagnostic_e) type of diagnostic data for N trajectories as a vector. TrajectoryDiagnosticColumns are used in class TrajectoryDiagnosticData to store different types of diagnostic data and type information.
Create new diagnostic data column with type diag.
| void TrajectoryDiagnosticColumn::add_data |
( |
double |
x | ) |
|
|
inline |
Add diagnostic data point to column.
| std::vector<double>& TrajectoryDiagnosticColumn::data |
( |
void |
| ) |
|
|
inline |
Get a reference to diagnostic data vector.
| const std::vector<double>& TrajectoryDiagnosticColumn::data |
( |
void |
| ) |
const |
|
inline |
Get a const reference to diagnostic data vector.
Add mirrored trajectory diagnostic data to the column.
Mirror data along plane axis = level. The mirrored data is added to the data column. This function is used to get a complete data set of a particle beam, of which only half (or quarter) has been simulated.
| const double& TrajectoryDiagnosticColumn::operator() |
( |
size_t |
i | ) |
const |
|
inline |
Get const reference to data element i.
| double& TrajectoryDiagnosticColumn::operator() |
( |
size_t |
i | ) |
|
|
inline |
Get reference to data element i.
| const double& TrajectoryDiagnosticColumn::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
Get const reference to data element i.
| double& TrajectoryDiagnosticColumn::operator[] |
( |
size_t |
i | ) |
|
|
inline |
Get reference to data element i.
| size_t TrajectoryDiagnosticColumn::size |
( |
void |
| ) |
const |
|
inline |
Get size of diagnostic data vector.
The documentation for this class was generated from the following file: