Belle II Software development
CKFRelationCreator.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#include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
12
13#include <vector>
14#include <string>
15
16namespace Belle2 {
21 class ModuleParamList;
22
24 template<class AState, class ASeedRelationFilter, class AHitRelationFilter = ASeedRelationFilter>
25 class CKFRelationCreator : public TrackFindingCDC::Findlet<AState, AState, TrackFindingCDC::WeightedRelation<AState>> {
26 public:
29
32
35
37 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
38
40 void apply(std::vector<AState>& seedStates, std::vector<AState>& states,
41 std::vector<TrackFindingCDC::WeightedRelation<AState>>& relations) override;
42
43 private:
45 ASeedRelationFilter m_seedFilter;
47 AHitRelationFilter m_hitFilter;
55 };
57}
Findlet for applying filters for creating hit-hit and hit-seed relations.
bool m_onlyUseHitStatesRelatedToSeeds
Only use subset of hits already related to the seeds to reduce combinatorics as the "FromState".
ASeedRelationFilter m_seedFilter
Subfindlet for the relation checking between seed and hits.
AHitRelationFilter m_hitFilter
Subfindlet for the relation checking between hits and hits.
bool m_onlyCombineRelatedHitStates
Only use subset of hits already related to the seeds to reduce combinatorics as "FromState" and as "T...
The Module parameter list class.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Type for two related objects with a weight.
CKFRelationCreator()
Construct this findlet and add the subfindlet as listener.
~CKFRelationCreator()
Default destructor.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the subfindlet.
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.
Abstract base class for different kinds of events.