Skip to content

Commit

Permalink
feat: add pindex to InclusiveKinematicsVars (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Oct 25, 2024
1 parent 30ab73b commit 87e2fc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ namespace iguana::physics {
particle_bank.getFloat("py", lepton_pindex),
particle_bank.getFloat("pz", lepton_pindex),
key);
result_vars.pindex = lepton_pindex; // FIXME: should be done in `ComputeFromLepton`, but need a proper action function first...

result_bank.setRows(1);
result_bank.putShort(i_pindex, 0, static_cast<int16_t>(lepton_pindex));
result_bank.putShort(i_pindex, 0, static_cast<int16_t>(result_vars.pindex));
result_bank.putDouble(i_Q2, 0, result_vars.Q2);
result_bank.putDouble(i_x, 0, result_vars.x);
result_bank.putDouble(i_y, 0, result_vars.y);
Expand Down
2 changes: 2 additions & 0 deletions src/iguana/algorithms/physics/InclusiveKinematics/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace iguana::physics {

/// Set of inclusive kinematics variables
struct InclusiveKinematicsVars {
/// @brief `REC::Particle` row (`pindex`) of the scattered electron
int pindex;
/// @brief @latex{x}-component of virtual photon momentum @latex{q}
vector_element_t qx;
/// @brief @latex{y}-component of virtual photon momentum @latex{q}
Expand Down

0 comments on commit 87e2fc3

Please sign in to comment.