12#include <iguana/algorithms/physics/InclusiveKinematics/Algorithm.h>
18 gSystem->Load(
"libIguanaAlgorithms");
28 std::cout <<
"kinematics:"
29 <<
"\n Q2 = " << result.
Q2
30 <<
"\n x = " << result.x
31 <<
"\n W = " << result.W
Algorithm: Calculate inclusive kinematics quantities defined in iguana::physics::InclusiveKinematicsV...
void Stop() override
Finalize this algorithm after all events are processed.
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks
InclusiveKinematicsVars ComputeFromLepton(vector_element_t const lepton_px, vector_element_t const lepton_py, vector_element_t const lepton_pz, concurrent_key_t const key) const
Action Function: compute kinematics from the scattered lepton.
concurrent_key_t PrepareEvent(int const runnum, double const beam_energy=-1) const
Action Function: prepare the event
void iguana_ex_cpp_ROOT_macro()
example ROOT macro function