Iguana LATEST
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
Algorithm.h
1#pragma once
2
3#include "iguana/algorithms/Algorithm.h"
4
5namespace iguana::clas12 {
6
14 class TrajLinker : public Algorithm
15 {
16
18
19 private: // hooks
20 void StartHook(hipo::banklist& banks) override;
21 bool RunHook(hipo::banklist& banks) const override;
22
23 public:
24
30 bool Run(
31 hipo::bank const& bank_particle,
32 hipo::bank const& bank_traj,
33 hipo::bank& bank_result) const;
34
39 int GetSector(float const& x, float const& y, float const& z) const;
40
41 private:
42
44 hipo::banklist::size_type b_particle;
45 hipo::banklist::size_type b_traj;
46 hipo::banklist::size_type b_result;
47
48 // `b_result` bank item indices
49 int i_pindex;
50 int i_sector;
51 int i_r1_found;
52 int i_r1_x;
53 int i_r1_y;
54 int i_r1_z;
55 int i_r2_found;
56 int i_r2_x;
57 int i_r2_y;
58 int i_r2_z;
59 int i_r3_found;
60 int i_r3_x;
61 int i_r3_y;
62 int i_r3_z;
63 };
64
65}
#define DEFINE_IGUANA_ALGORITHM(ALGO_NAME, ALGO_FULL_NAME)
Algorithm(std::string_view name)
Definition Algorithm.h:73
Algorithm: Link particle bank to bank REC::Traj
Definition Algorithm.h:15
bool Run(hipo::bank const &bank_particle, hipo::bank const &bank_traj, hipo::bank &bank_result) const
Run Function: Process an event's hipo::bank objects
int GetSector(float const &x, float const &y, float const &z) const
General CLAS12 algorithms.
Definition Algorithm.h:5