Belle II Software  release-08-01-10
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 
12 namespace 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 }
Convience template to create a filter returning on variable from a set of variables.
typename ATruthVarSet::Object Object
Type of the filtered object.
Filter adapter to make a filter work on a set of variables and return on variable as the result of th...
MC Filter Type using a VarSet and the truth variable in it.
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.