Belle II Software  release-08-01-10
SpacePointTagger.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/findlets/base/Findlet.h>
11 
12 #include <set>
13 #include <vector>
14 #include <string>
15 
16 namespace Belle2 {
21  class ModuleParamList;
22  class SpacePoint;
23 
25  template <class AResult, class ACluster>
26  class SpacePointTagger : public TrackFindingCDC::Findlet<const AResult, const SpacePoint* const> {
29 
30  public:
32  void beginEvent() override;
33 
35  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
36 
38  void apply(const std::vector<AResult>& results,
39  const std::vector<const SpacePoint*>& spacePoints) override;
40 
41  private:
42  // Object Pool
44  std::set<const ACluster*> m_usedClusters;
46  std::set<const SpacePoint*> m_usedSpacePoints;
47 
48  // Parameters
53  };
55 }
The Module parameter list class.
Findlet for tagging all space points in the results vector as used.
bool m_param_markUsedSpacePoints
Parameter: Mark used space points as assigned.
bool m_param_singleClusterLevel
Parameter: Mark SP as used, if the share a single cluster with the results, or if they share a whole ...
std::set< const ACluster * > m_usedClusters
Store the used clusters in the results.
std::set< const SpacePoint * > m_usedSpacePoints
Store the used space points in the results.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
void beginEvent() override
Clear the used clusters.
void apply(const std::vector< AResult > &results, const std::vector< const SpacePoint * > &spacePoints) override
Mark all space points as used, that they share clusters if the given kind with the results.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the findlet.
Abstract base class for different kinds of events.