Belle II Software development
TruthVarFilter.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/filters/base/ChoosableFromVarSetFilter.dcl.h>
11
12namespace Belle2 {
17 namespace TrackFindingCDC {
19 template<class ATruthVarSet>
20 class TruthVarFilter : public ChoosableFromVarSetFilter<ATruthVarSet> {
21
22 private:
25
26 public:
28 using Object = typename Super::Object;
29
30 public:
33
36
37 public:
39 Weight operator()(const Object& object) override;
40 };
41 }
43}
Convince template to create a filter returning on variable from a set of variables.
typename ATruthVarSet::Object Object
Type of the filtered object.
MC Filter Type using a VarSet and the truth variable in it.
typename Super::Object Object
Type of the handled object.
Weight operator()(const Object &object) override
Reject an item if the truth variable is 0, else accept it.
Abstract base class for different kinds of events.