Iguana
1.1.0
Implementation Guardian of Analysis Algorithms
Toggle main menu visibility
Loading...
Searching...
No Matches
Algorithm.h
1
#pragma once
2
3
#include "iguana/algorithms/Algorithm.h"
4
#include "
iguana/algorithms/TypeDefs.h
"
5
6
namespace
iguana::clas12::rga
{
7
11
class
MomentumCorrection
:
public
Algorithm
12
{
13
14
DEFINE_IGUANA_ALGORITHM
(
MomentumCorrection
,
clas12::rga::MomentumCorrection
)
15
16
public
:
17
18
void
Start
(hipo::banklist& banks)
override
;
19
bool
Run
(hipo::banklist& banks)
const override
;
20
void
Stop
()
override
;
21
27
bool
Run
(
28
hipo::bank& particleBank,
29
hipo::bank
const
& sectorBank,
30
hipo::bank
const
& configBank)
const
;
31
40
Momentum3
Transform
(
vector_element_t
const
px,
vector_element_t
const
py,
vector_element_t
const
pz,
int
const
sec,
int
const
pid,
float
const
torus)
const
;
41
49
double
CorrectionInbending
(
vector_element_t
const
px,
vector_element_t
const
py,
vector_element_t
const
pz,
int
const
sec,
int
const
pid)
const
;
50
58
double
CorrectionOutbending
(
vector_element_t
const
px,
vector_element_t
const
py,
vector_element_t
const
pz,
int
const
sec,
int
const
pid)
const
;
59
66
double
EnergyLossInbending
(
vector_element_t
const
px,
vector_element_t
const
py,
vector_element_t
const
pz,
int
const
pid)
const
;
67
74
double
EnergyLossOutbending
(
vector_element_t
const
px,
vector_element_t
const
py,
vector_element_t
const
pz,
int
const
pid)
const
;
75
76
private
:
77
79
hipo::banklist::size_type b_particle;
80
hipo::banklist::size_type b_sector;
81
hipo::banklist::size_type b_config;
82
};
83
84
}
DEFINE_IGUANA_ALGORITHM
#define DEFINE_IGUANA_ALGORITHM(ALGO_NAME, ALGO_FULL_NAME)
Definition
AlgorithmBoilerplate.h:58
TypeDefs.h
common objects used in algorithms
iguana::vector_element_t
double vector_element_t
Vector element type.
Definition
TypeDefs.h:12
iguana::Algorithm::Algorithm
Algorithm(std::string_view name)
Definition
Algorithm.h:72
iguana::clas12::rga::MomentumCorrection
Algorithm: Momentum Corrections
Definition
Algorithm.h:12
iguana::clas12::rga::MomentumCorrection::Run
bool Run(hipo::bank &particleBank, hipo::bank const §orBank, hipo::bank const &configBank) const
Run Function: Process an event's hipo::bank objects
iguana::clas12::rga::MomentumCorrection::Start
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks.
iguana::clas12::rga::MomentumCorrection::CorrectionOutbending
double CorrectionOutbending(vector_element_t const px, vector_element_t const py, vector_element_t const pz, int const sec, int const pid) const
Action Function: Calculate the correction factor for outbending data
iguana::clas12::rga::MomentumCorrection::Transform
Momentum3 Transform(vector_element_t const px, vector_element_t const py, vector_element_t const pz, int const sec, int const pid, float const torus) const
Action Function: Apply the momentum correction
iguana::clas12::rga::MomentumCorrection::CorrectionInbending
double CorrectionInbending(vector_element_t const px, vector_element_t const py, vector_element_t const pz, int const sec, int const pid) const
Action Function: Calculate the correction factor for inbending data
iguana::clas12::rga::MomentumCorrection::EnergyLossInbending
double EnergyLossInbending(vector_element_t const px, vector_element_t const py, vector_element_t const pz, int const pid) const
Action Function: Energy loss correction for inbending data
iguana::clas12::rga::MomentumCorrection::EnergyLossOutbending
double EnergyLossOutbending(vector_element_t const px, vector_element_t const py, vector_element_t const pz, int const pid) const
Action Function: Energy loss correction for outbending data
iguana::clas12::rga::MomentumCorrection::Stop
void Stop() override
Finalize this algorithm after all events are processed.
iguana::clas12::rga::MomentumCorrection::Run
bool Run(hipo::banklist &banks) const override
Run Function: Process an event's hipo::banklist
iguana::clas12::rga
CLAS12 Run Group A algorithms.
Definition
Algorithm.h:5
iguana::Momentum3
3-momentum type
Definition
TypeDefs.h:15
iguana_v1.1.0
src
iguana
algorithms
clas12
rga
MomentumCorrection
Algorithm.h
Generated by
1.18.0