6 #ifndef H_RDT_SELECTORENERGYTIMETUIKE
7 #define H_RDT_SELECTORENERGYTIMETUIKE
18 pottu::Gate1D<float> energyGate{0,1e8};
19 pottu::Gate1D<float> timeGate{0,1e8};
20 pottu::Gate1D<float> tuikeGate{0,1e8};
24 template <
class H,
class CONF>
25 bool test(
const H &history,
const CONF &conf )
const noexcept {
26 for(
const auto &cond : _conditions ) {
27 if( cond.genp1 >= history.size() )
30 if( !cond.tuikeGate( history[cond.genp1]->tuike.sume ) )
33 if( !cond.energyGate( history[cond.genp1]->dssd.xe ) )
36 const int64_t dt = history[cond.genp1]->time - history[cond.genp1-1]->time;
37 if( !cond.timeGate( CONF::daq::ticsToSeconds(dt) ) )
45 std::vector<decay_condition_t> &conditions() noexcept {
return _conditions; }
49 std::vector<decay_condition_t> _conditions;
Definition: RDT_SelectorEnergyTimeTuike.hpp:13
Definition: RDT_SelectorEnergyTimeTuike.hpp:16