Belle II Software development
PassThroughFilter.dcl.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/trackFindingCDC/numerics/Weight.h>
11
12namespace Belle2 {
17 namespace TrackFindingCDC {
18
20 template<class AFilter>
21 class PassThroughFilter : public AFilter {
22 public:
24 using Object = typename AFilter::Object;
25
26 public:
28 Weight operator()(const Object& obj) final;
29 };
30 }
32}
Filter adapter type that passes the weight of a weighted relation as a result.
Weight operator()(const Object &obj) final
Returns the weight obtained from getWeight()
typename AFilter::Object Object
Type of the object to be filtered.
Abstract base class for different kinds of events.