Belle II Software  release-05-01-25
SpacePointTagger.dcl.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <set>
15 #include <vector>
16 #include <string>
17 
18 namespace Belle2 {
23  class ModuleParamList;
24  class SpacePoint;
25 
27  template <class AResult, class ACluster>
28  class SpacePointTagger : public TrackFindingCDC::Findlet<const AResult, const SpacePoint* const> {
30  using Super = TrackFindingCDC::Findlet<const AResult, const SpacePoint* const>;
31 
32  public:
34  void beginEvent() override;
35 
37  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
38 
40  void apply(const std::vector<AResult>& results,
41  const std::vector<const SpacePoint*>& spacePoints) override;
42 
43  private:
44  // Object Pool
46  std::set<const ACluster*> m_usedClusters;
48  std::set<const SpacePoint*> m_usedSpacePoints;
49 
50  // Parameters
52  bool m_param_singleClusterLevel = true;
55  };
57 }
Belle2::SpacePointTagger::apply
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.
Definition: SpacePointTagger.icc.h:62
Belle2::SpacePointTagger::m_usedSpacePoints
std::set< const SpacePoint * > m_usedSpacePoints
Store the used space points in the results.
Definition: SpacePointTagger.dcl.h:56
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SpacePointTagger::m_param_singleClusterLevel
bool m_param_singleClusterLevel
Parameter: Mark SP as used, if the share a single cluster with the results, or if they share a whole ...
Definition: SpacePointTagger.dcl.h:60
Belle2::SpacePointTagger::Super
TrackFindingCDC::Findlet< const AResult, const SpacePoint *const > Super
The parent class.
Definition: SpacePointTagger.dcl.h:38
Belle2::SpacePointTagger::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the findlet.
Definition: SpacePointTagger.icc.h:46
Belle2::SpacePointTagger::beginEvent
void beginEvent() override
Clear the used clusters.
Definition: SpacePointTagger.icc.h:36
Belle2::SpacePointTagger::m_param_markUsedSpacePoints
bool m_param_markUsedSpacePoints
Parameter: Mark used space points as assigned.
Definition: SpacePointTagger.dcl.h:62
Belle2::SpacePointTagger::m_usedClusters
std::set< const ACluster * > m_usedClusters
Store the used clusters in the results.
Definition: SpacePointTagger.dcl.h:54