Loading [MathJax]/extensions/tex2jax.js
Iguana 0.9.0
Implementation Guardian of Analysis Algorithms
Algorithm.h
1#pragma once
2
3#include "iguana/algorithms/Algorithm.h"
4
5namespace iguana::clas12 {
6
20 class TrajLinker : public Algorithm
21 {
22
24
25 public:
26
27 void Start(hipo::banklist& banks) override;
28 void Run(hipo::banklist& banks) const override;
29 void Stop() override;
30
35 int GetSector(float const& x, float const& y, float const& z) const;
36
37 private:
38
40 hipo::banklist::size_type b_particle;
41 hipo::banklist::size_type b_traj;
42 hipo::banklist::size_type b_result;
43
44 // `b_result` bank item indices
45 int i_pindex;
46 int i_sector;
47 int i_r1_found;
48 int i_r1_x;
49 int i_r1_y;
50 int i_r1_z;
51 int i_r2_found;
52 int i_r2_x;
53 int i_r2_y;
54 int i_r2_z;
55 int i_r3_found;
56 int i_r3_x;
57 int i_r3_y;
58 int i_r3_z;
59 };
60
61}
#define DEFINE_IGUANA_ALGORITHM(ALGO_NAME, ALGO_FULL_NAME)
Algorithm(std::string_view name)
Definition Algorithm.h:46
Algorithm: Link particle bank to bank REC::Traj
Definition Algorithm.h:21
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks
void Run(hipo::banklist &banks) const override
Run this algorithm for an event.
void Stop() override
Finalize this algorithm after all events are processed.
int GetSector(float const &x, float const &y, float const &z) const
CLAS12 algorithms.
Definition Algorithm.h:5