Belle II Software development
LayerSVDRelationFilter.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/filters/base/RelationFilter.dcl.h>
11#include <tracking/ckf/svd/entities/CKFToSVDState.h>
12
13namespace Belle2 {
19 template <class AFilter, class APrefilter = AFilter>
23
24 public:
25 using Super::operator();
26
29
32
34 std::vector<CKFToSVDState*> getPossibleTos(CKFToSVDState* from,
35 const std::vector<CKFToSVDState*>& states) const final;
36
38 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
39
40
42 TrackFindingCDC::Weight operator()(const CKFToSVDState& from, const CKFToSVDState& to) final;
43
45 void beginRun() final;
46
47 private:
51 AFilter m_filter;
53 APrefilter m_prefilter;
55 std::map<short, unsigned long> m_maximalLadderCache;
56 };
58}
Specialized CKF State for extrapolating into the SVD.
Definition: CKFToSVDState.h:27
Base filter for CKF SVD states.
int m_param_hitJumping
Parameter: Make it possible to jump over N layers.
APrefilter m_prefilter
Loose pre-filter to reject possibleTos.
AFilter m_filter
Filter for rejecting the states.
std::map< short, unsigned long > m_maximalLadderCache
Cached number of ladders per layer.
The Module parameter list class.
Base class for filtering the neighborhood of objects.
void beginRun() final
Initialize the maximal ladder cache.
LayerSVDRelationFilter()
Add the filter as listener.
std::vector< CKFToSVDState * > getPossibleTos(CKFToSVDState *from, const std::vector< CKFToSVDState * > &states) const final
Return all states the given state is possible related to.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the filter.
~LayerSVDRelationFilter()
Default destructor.
TrackFindingCDC::Weight operator()(const CKFToSVDState &from, const CKFToSVDState &to) final
Give a final weight to the possibilities by asking the filter.
Abstract base class for different kinds of events.
STL namespace.