Iguana 1.0.0
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
Algorithm.h
1#pragma once
2
3#include "iguana/algorithms/Algorithm.h"
4
5namespace iguana::physics {
6
14 {
15
17
18 public:
19
20 void Start(hipo::banklist& banks) override;
21 bool Run(hipo::banklist& banks) const override;
22 void Stop() override;
23
28 bool Run(
29 hipo::bank const& inc_kin_bank,
30 hipo::bank& result_bank) const;
31
38 DepolarizationVars Compute(double const Q2, double const x, double const y, double const targetM) const;
39
40 private:
41
42 // banklist indices
43 hipo::banklist::size_type b_inc_kin;
44 hipo::banklist::size_type b_result;
45
46 // `b_result` bank item indices
47 int i_epsilon;
48 int i_A;
49 int i_B;
50 int i_C;
51 int i_V;
52 int i_W;
53 };
54
55}
#define DEFINE_IGUANA_ALGORITHM(ALGO_NAME, ALGO_FULL_NAME)
Algorithm(std::string_view name)
Definition Algorithm.h:46
Algorithm: Calculate depolarization factors
Definition Algorithm.h:14
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks.
bool Run(hipo::banklist &banks) const override
Run Function: Process an event's hipo::banklist
DepolarizationVars Compute(double const Q2, double const x, double const y, double const targetM) const
Action Function: compute depolarization factors
void Stop() override
Finalize this algorithm after all events are processed.
bool Run(hipo::bank const &inc_kin_bank, hipo::bank &result_bank) const
Run Function: Process an event's hipo::bank objects
Physics algorithms.
Definition Algorithm.h:5
Set of variables created by creator algorithm iguana::physics::Depolarization.
Definition BankDefs.h:130