10 #include <tracking/trackFindingCDC/numerics/Weight.h>
19 class ModuleParamList;
21 namespace TrackFindingCDC {
23 template<
class AFilter>
32 using Object =
typename AFilter::Object;
45 Weight
operator()(
const typename AFilter::Object& obj)
final;
The Module parameter list class.
Filter adapter type that inverts the acceptance criterion for cross checks.
AFilter Super
Type of the base 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.
typename AFilter::Object Object
Type of the object to be filtered.
~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.