Iguana
1.2.1
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
14
class
FTEnergyCorrection
:
public
Algorithm
15
{
16
17
DEFINE_IGUANA_ALGORITHM
(
FTEnergyCorrection
,
clas12::rga::FTEnergyCorrection
)
18
19
private
:
// hooks
20
void
StartHook(hipo::banklist& banks)
override
;
21
bool
RunHook(hipo::banklist& banks)
const override
;
22
23
public
:
24
28
bool
Run
(hipo::bank& ftParticleBank)
const
;
29
39
Momentum4
Transform
(
40
vector_element_t
const
px,
41
vector_element_t
const
py,
42
vector_element_t
const
pz,
43
vector_element_t
const
E)
const
;
44
49
vector_element_t
CorrectEnergy
(
vector_element_t
const
E)
const
;
50
51
private
:
52
53
hipo::banklist::size_type b_ft_particle;
54
double
electron_mass;
55
};
56
57
}
DEFINE_IGUANA_ALGORITHM
#define DEFINE_IGUANA_ALGORITHM(ALGO_NAME, ALGO_FULL_NAME)
Definition
AlgorithmBoilerplate.h:55
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:74
iguana::clas12::rga::FTEnergyCorrection
Algorithm: Forward Tagger energy correction
Definition
Algorithm.h:15
iguana::clas12::rga::FTEnergyCorrection::CorrectEnergy
vector_element_t CorrectEnergy(vector_element_t const E) const
Action Function:
iguana::clas12::rga::FTEnergyCorrection::Transform
Momentum4 Transform(vector_element_t const px, vector_element_t const py, vector_element_t const pz, vector_element_t const E) const
Action Function: Transformation function that returns 4-vector of electron with corrected energy for ...
iguana::clas12::rga::FTEnergyCorrection::Run
bool Run(hipo::bank &ftParticleBank) const
Run Function: Process an event's hipo::bank objects
iguana::clas12::rga
CLAS12 Run Group A algorithms.
Definition
Algorithm.h:5
iguana::Momentum4
4-momentum type
Definition
TypeDefs.h:25
iguana_v1.2.1
src
iguana
algorithms
clas12
rga
FTEnergyCorrection
Algorithm.h
Generated by
1.18.0