Belle II Software development
TrackRejecter.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/trackingUtilities/findlets/base/Findlet.h>
11
12#include <tracking/trackFindingCDC/filters/track/BaseTrackFilter.h>
13#include <tracking/trackFindingCDC/filters/track/TrackFilterFactory.h>
14
15#include <tracking/trackingUtilities/filters/base/ChooseableFilter.dcl.h>
16
17#include <vector>
18#include <string>
19
20namespace Belle2 {
25
26 namespace TrackingUtilities {
27 class CDCTrack;
28 }
29
30 namespace TrackFindingCDC {
31
32 // Guard to prevent repeated instantiations
33 // extern template class TrackingUtilities::Chooseable<BaseTrackFilter>;
34 // extern template class TrackingUtilities::ChooseableFilter<TrackFilterFactory>;
35
37 class TrackRejecter : public TrackingUtilities::Findlet<TrackingUtilities::CDCTrack&> {
38
39 private:
42
43 public:
45 explicit TrackRejecter(const std::string& defaultFilterName = "all");
46
48 std::string getDescription() final;
49
51 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
52
54 void apply(std::vector<TrackingUtilities::CDCTrack>& tracks) final;
55
56 private:
59
61 TrackingUtilities::ChooseableFilter<TrackFilterFactory> m_trackFilter;
62 };
63 }
65}
The Module parameter list class.
Factory that can create appropriate track filters from associated names.
bool m_param_deleteRejected
Parameter : Switch to delete the tracks instead of marking them as background.
void apply(std::vector< TrackingUtilities::CDCTrack > &tracks) final
Main algorithm.
TrackingUtilities::Findlet< TrackingUtilities::CDCTrack & > Super
Type of the base class.
std::string getDescription() final
Short description of the findlet.
TrackRejecter(const std::string &defaultFilterName="all")
Constructor adding the filter as a subordinary processing signal listener.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
TrackingUtilities::ChooseableFilter< TrackFilterFactory > m_trackFilter
Reference to the filter to be used to filter.
Class representing a sequence of three dimensional reconstructed hits.
Definition CDCTrack.h:39
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26
STL class.
Abstract base class for different kinds of events.
STL namespace.