3#include "iguana/algorithms/Algorithm.h"
24 void Start(hipo::banklist& banks)
override;
25 void Run(hipo::banklist& banks)
const override;
36 std::deque<bool>
Filter(std::vector<int>
const pids)
const;
41 hipo::banklist::size_type b_particle;
#define DEFINE_IGUANA_ALGORITHM(ALGO_NAME, ALGO_FULL_NAME)
Base class for all algorithms to inherit from.
Algorithm: Filter the REC::Particle (or similar) bank by PID from the Event Builder
void Stop() override
Finalize this algorithm after all events are processed.
void Run(hipo::banklist &banks) const override
Run this algorithm for an event.
std::deque< bool > Filter(std::vector< int > const pids) const
Action Function: checks if the PDG pid is a part of the list of user-specified PDGs
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks
bool Filter(int const pid) const
Action Function: checks if the PDG pid is a part of the list of user-specified PDGs