Class for trajectory diagnostic data column.
More...
#include <trajectorydiagnostics.hpp>
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: