#ifndef __JEVTEVALUATOR__ #define __JEVTEVALUATOR__ #include "JAAnet/JAAnetToolkit.hh" #include "km3net-dataformat/online/JDAQHeader.hh" #include "km3net-dataformat/online/JDAQEvent.hh" /** * \author mlincetto */ namespace JAANET {} namespace JPP { using namespace JAANET; } namespace JAANET { /** * Auxiliary class to determine value of Evt objects. */ struct JEvtEvaluator { /** * Default constructor. */ JEvtEvaluator() {} /** * Get value of event. * * \param event event * \return value */ inline double operator()(const Evt& event) const { if (!event.mc_trks.empty()) return event.mc_trks[0].t; else return 0.0; } // () }; // struct JEvtEvaluator /** * Function object for evaluation of DAQ objects. */ static const JEvtEvaluator getEvtValue; } // namespace #endif