Go to the source code of this file.
◆ Axis
◆ PositionType
◆ QuadID
◆ VectorType
Enumerator |
---|
Position | |
Momentum | |
◆ SetQuadrupoleValue()
Sets a specific component of a quadrupole vector.
Allows modification of a single axis (X, Y, Z) of either the position or momentum vector for a given quadrupole, at either the beginning or the end of the quadrupole element.
- Parameters
-
stats | Reference to the `RunTally* |
#include "PlasmaMLPALLASQuadrupoleUtils.hh"
SetQuadrupoleValue
/**
Sets a specific component of a quadrupole vector in the simulation statistics.
This function allows fine-grained modification of a single vector component (X, Y, or Z) for either the position or momentum vector of a quadrupole, at the beginning or end of the element.
- Parameters
-
stats | Reference to the RunTallyQuadrupoles structure containing all quadrupole data. |
qid | Identifier of the quadrupole (Q1 , Q2 , Q3 , Q4 ). |
posType | Position type: whether to modify the vector at the beginning or end of the quadrupole. |
vecType | Vector type: position or momentum. |
axis | Component of the vector to modify (X , Y , Z ). |
value | The new value to assign to the selected component. |