PlasmaMLPALLAS
Loading...
Searching...
No Matches
Functions
PlasmaMLPALLASQuadrupoleUtils.cc File Reference

Utility functions for updating quadrupole vectors in simulation statistics. More...

#include "PlasmaMLPALLASQuadrupoleUtils.hh"
Include dependency graph for PlasmaMLPALLASQuadrupoleUtils.cc:

Functions

void SetQuadrupoleValue (RunTallyQuadrupoles &stats, QuadID qid, PositionType posType, VectorType vecType, Axis axis, float value)
 Sets a specific component of a quadrupole vector.
 

Detailed Description

Utility functions for updating quadrupole vectors in simulation statistics.

This file provides helper functions to modify specific components of quadrupole position or momentum vectors, either at the beginning or the end of the quadrupole element during a simulation run.

Functions in this file are intended to simplify bookkeeping of quadrupole data in RunTallyQuadrupoles structures.

Example usage:

void SetQuadrupoleValue(RunTallyQuadrupoles &stats, QuadID qid, PositionType posType, VectorType vecType, Axis axis, float value)
Sets a specific component of a quadrupole vector.
Definition PlasmaMLPALLASQuadrupoleUtils.cc:54
Authors
Arnaud HUBER
Alexei SYTOV
Date
2025

Function Documentation

◆ SetQuadrupoleValue()

void SetQuadrupoleValue ( RunTallyQuadrupoles stats,
QuadID  qid,
PositionType  posType,
VectorType  vecType,
Axis  axis,
float  value 
)

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
statsReference 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
statsReference to the RunTallyQuadrupoles structure containing all quadrupole data.
qidIdentifier of the quadrupole (Q1, Q2, Q3, Q4).
posTypePosition type: whether to modify the vector at the beginning or end of the quadrupole.
vecTypeVector type: position or momentum.
axisComponent of the vector to modify (X, Y, Z).
valueThe new value to assign to the selected component.