Belle II Software  release-08-01-10
TrackQualityEstimator.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/findlets/minimal/CDCMCCloneLookUpFiller.h>
11 
12 #include <tracking/trackFindingCDC/filters/track/TrackQualityFilterFactory.h>
13 #include <tracking/trackFindingCDC/filters/base/ChooseableFilter.dcl.h>
14 
15 #include <vector>
16 #include <string>
17 
18 namespace Belle2 {
24  namespace TrackFindingCDC {
25  class CDCTrack;
26 
28  class TrackQualityEstimator : public Findlet<CDCTrack&> {
29 
30  private:
33 
34  public:
36  explicit TrackQualityEstimator(const std::string& defaultFilterName = "mva");
37 
39  std::string getDescription() final;
40 
42  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
43 
45  void initialize() override;
46 
48  void apply(std::vector<CDCTrack>& tracks) final;
49 
50  private:
53 
56 
58  bool m_param_deleteTracks = false;
59 
61  bool m_param_resetTakenFlag = false;
62 
65  };
66  }
68 }
The Module parameter list class.
Findlet to exports CDCTracks as RecoTracks.
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:41
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Deletes fake tracks that have been rejected by a filter.
bool m_param_resetTakenFlag
Reset taken flag for deleted tracks so that hits can be used by subsequent TFs.
bool m_param_deleteTracks
Delete tracks below threshold instead of just assigning quality indicator.
void apply(std::vector< CDCTrack > &tracks) final
Main algorithm.
void initialize() override
Receive and dispatch signal before the start of the event processing.
bool m_needsTruthInformation
Store output of needsTruthInformation from filter in member variable.
ChooseableFilter< TrackQualityFilterFactory > m_trackQualityFilter
Reference to the filter to be used to filter.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
CDCMCCloneLookUpFiller m_mcCloneLookUpFiller
Findlet to fill CDCTracks into lookup table (singleton) with clone information.
TrackQualityEstimator(const std::string &defaultFilterName="mva")
Constructor adding the filter as a subordinary processing signal listener.
Derived class of TrackFilterFactory with a truth target that also discards clones Probably this whole...
Abstract base class for different kinds of events.