10#include <tracking/trackFindingCDC/filters/base/NotFilter.dcl.h>
12#include <tracking/trackFindingCDC/numerics/Weight.h>
22 namespace TrackFindingCDC {
24 template <
class AFilter>
28 this->addProcessingSignalListener(
m_filter.get());
31 template <
class AFilter>
34 template <
class AFilter>
36 const std::string& prefix)
38 if (m_filter) m_filter->exposeParameters(moduleParamList, prefix);
41 template <
class AFilter>
44 Weight result = (*m_filter)(obj);
45 if (std::isnan(result)) {
The Module parameter list class.
std::unique_ptr< AFilter > m_filter
Filter to be inverted.
NotFilter(std::unique_ptr< AFilter > filter)
Constructor from filter to be inverted.
Weight operator()(const typename AFilter::Object &obj) final
Accept inverse.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
~NotFilter()
Default destructor.
std::map< ExpRun, std::pair< double, double > > filter(const std::map< ExpRun, std::pair< double, double > > &runs, double cut, std::map< ExpRun, std::pair< double, double > > &runsRemoved)
filter events to remove runs shorter than cut, it stores removed runs in runsRemoved
Abstract base class for different kinds of events.