17#ifndef O2_MCH_EVENTFINDER_H_
18#define O2_MCH_EVENTFINDER_H_
21#include <unordered_map>
49 void run(
const gsl::span<const mch::ROFRecord>&
mchROFs,
const gsl::span<const mch::Digit>&
digits,
53 const std::vector<mch::ROFRecord>&
getOutputROFs()
const {
return mROFs; }
63 Event(int64_t bcMin, int64_t bcMax) : maxRORange(bcMin)
69 int64_t trgRange[2]{};
70 int64_t maxRORange = 0;
71 std::vector<int> iMCHROFs{};
74 std::map<int64_t, Event> mEvents{};
75 std::vector<mch::ROFRecord> mROFs{};
76 std::vector<mch::Digit> mDigits{};
78 std::unordered_map<int, int> mDigitLoc{};
Definition of a container to keep Monte Carlo truth external to simulation objects.
Class to group MCH digits based on MID information.
const std::vector< mch::ROFRecord > & getOutputROFs() const
get the output MCH ROFs
EventFinder & operator=(EventFinder &&)=delete
EventFinder(const EventFinder &)=delete
const std::vector< mch::Digit > & getOutputDigits() const
get the output MCH digits
EventFinder(EventFinder &&)=delete
EventFinder & operator=(const EventFinder &)=delete
const dataformats::MCLabelContainer & getOutputLabels() const
get the output MCH labels
void run(const gsl::span< const mch::ROFRecord > &mchROFs, const gsl::span< const mch::Digit > &digits, const dataformats::MCLabelContainer *labels, const gsl::span< const mid::ROFRecord > &midROFs)
run the event finder algorithm
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< o2::mid::ROFRecord > midROFs
std::vector< o2::mch::ROFRecord > mchROFs
std::vector< Digit > digits