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 MX2;
22 double xF;
24 double yB;
27 double phiH;
29 double xi;
30 };
31
52 {
53
55
56 public:
57
58 void Start(hipo::banklist& banks) override;
59 void Run(hipo::banklist& banks) const override;
60 void Stop() override;
61
62 private:
63
64 // banklist indices
65 hipo::banklist::size_type b_particle;
66 hipo::banklist::size_type b_inc_kin;
67 hipo::banklist::size_type b_result;
68
69 // `b_result` bank item indices
70 int i_pindex;
71 int i_pdg;
72 int i_z;
73 int i_PhPerp;
74 int i_MX2;
75 int i_xF;
76 int i_yB;
77 int i_phiH;
78 int i_xi;
79
80 // config options
81 std::set<int> o_hadron_pdgs;
82
83 };
84
85}
#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:52
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 yB
: Breit frame rapidity of the hadron
Definition Algorithm.h:24
double xF
: Feynman-x of the hadron
Definition Algorithm.h:22
double MX2
: Missing mass squared of the hadron
Definition Algorithm.h:20
double phiH
: -azimuthal angle between the lepton-scattering plane and the plane; if the value is tools::UNDEF,...
Definition Algorithm.h:27
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:29