Template Function cpphots::process(P&, const std::vector<Events>&, bool, bool)
Defined in File run.h
Function Documentation
-
template<typename P>
std::vector<Events> cpphots::process(P &processor, const std::vector<Events> &events, bool reset = true, bool skip_check = false) Generic event processing function.
Process a sequence of events using a generic processor class.
A processor is something with the following methods:
void reset()
Events process(const event&, bool)
Both Layer and Network satisfy the requirements.
- Template Parameters
P – processor type
- Parameters
processor – the processor
events – sequences of events
reset – true if processor.reset() should be called
skip_check – if true consider all events as valid
- Returns
corresponding sequences of events emitted by the processor