Iguana 0.0.0
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
Algorithm.h
1#pragma once
2
3#include "iguana/algorithms/Algorithm.h"
4#include <Math/Vector3D.h>
5#include <Math/Vector4D.h>
6
7namespace iguana::physics {
8
12 int pindex;
14 int pdg;
16 double z;
18 double PhPerp;
20 double MX;
22 double xF;
25 double phiH;
27 double xi;
28 };
29
50 {
51
53
54 public:
55
56 void Start(hipo::banklist& banks) override;
57 void Run(hipo::banklist& banks) const override;
58 void Stop() override;
59
60 private:
61
62 // banklist indices
63 hipo::banklist::size_type b_particle;
64 hipo::banklist::size_type b_inc_kin;
65 hipo::banklist::size_type b_result;
66
67 // `b_result` bank item indices
68 int i_pindex;
69 int i_pdg;
70 int i_z;
71 int i_PhPerp;
72 int i_MX;
73 int i_xF;
74 int i_phiH;
75 int i_xi;
76
77 // config options
78 std::set<int> o_hadron_pdgs;
79
80 };
81
82}
#define DEFINE_IGUANA_ALGORITHM(ALGO_NAME, ALGO_FULL_NAME)
Base class for all algorithms to inherit from.
Definition Algorithm.h:40
Algorithm: Calculate semi-inclusive hadron kinematic quantities defined in iguana::physics::SingleHad...
Definition Algorithm.h:50
void Run(hipo::banklist &banks) const override
Run this algorithm for an event.
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks
void Stop() override
Finalize this algorithm after all events are processed.
Physics algorithms.
Definition Algorithm.h:8
Set of hadron kinematics variables.
Definition Algorithm.h:10
int pindex
REC::Particle row (pindex) of the hadron
Definition Algorithm.h:12
double xF
: Feynman-x of the hadron
Definition Algorithm.h:22
double phiH
: -azimuthal angle between the lepton-scattering plane and the plane; if the value is tools::UNDEF,...
Definition Algorithm.h:25
double PhPerp
: transverse momentum of the hadron in the -frame (transverse to )
Definition Algorithm.h:18
double z
: Momentum fraction of the fragmenting parton carried by the hadron
Definition Algorithm.h:16
double xi
: Longitudinal momentum fraction of the nucleon carried by the hadron
Definition Algorithm.h:27
double MX
: Missing mass of the hadron
Definition Algorithm.h:20