Belle II Software  release-05-01-25
CKFRelationCreator.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 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
14 
15 #include <vector>
16 #include <string>
17 
18 namespace Belle2 {
23  class ModuleParamList;
24 
26  template<class AState, class ASeedRelationFilter, class AHitRelationFilter = ASeedRelationFilter>
27  class CKFRelationCreator : public TrackFindingCDC::Findlet<AState, AState, TrackFindingCDC::WeightedRelation<AState>> {
28  public:
30  using Super = TrackFindingCDC::Findlet<AState, AState, TrackFindingCDC::WeightedRelation<AState>>;
31 
34 
37 
39  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
40 
42  void apply(std::vector<AState>& seedStates, std::vector<AState>& states,
43  std::vector<TrackFindingCDC::WeightedRelation<AState>>& relations) override;
44 
45  private:
47  ASeedRelationFilter m_seedFilter;
49  AHitRelationFilter m_hitFilter;
50  };
52 }
Belle2::CKFRelationCreator::~CKFRelationCreator
~CKFRelationCreator()
Default destructor.
Belle2::CKFRelationCreator::apply
void apply(std::vector< AState > &seedStates, std::vector< AState > &states, std::vector< TrackFindingCDC::WeightedRelation< AState >> &relations) override
Apply both filters for creating state-hit and hit-hit relations.
Definition: CKFRelationCreator.icc.h:50
Belle2::CKFRelationCreator::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the subfindlet.
Definition: CKFRelationCreator.icc.h:42
Belle2::CKFRelationCreator::Super
TrackFindingCDC::Findlet< AState, AState, TrackFindingCDC::WeightedRelation< AState > > Super
The parent class.
Definition: CKFRelationCreator.dcl.h:38
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CKFRelationCreator::m_hitFilter
AHitRelationFilter m_hitFilter
Subfindlet for the relation checking between hits and hits.
Definition: CKFRelationCreator.dcl.h:57
Belle2::CKFRelationCreator::m_seedFilter
ASeedRelationFilter m_seedFilter
Subfindlet for the relation checking between seed and hits.
Definition: CKFRelationCreator.dcl.h:55
Belle2::CKFRelationCreator::CKFRelationCreator
CKFRelationCreator()
Construct this findlet and add the subfindlet as listener.
Definition: CKFRelationCreator.icc.h:35