Belle II Software development
LayerToggledApplier.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/ckf/general/findlets/OnStateApplier.dcl.h>
11#include <tracking/trackFindingCDC/numerics/WithWeight.h>
12#include <vector>
13
14namespace Belle2 {
23 template <class AState, class AFindlet>
24 class LayerToggledApplier : public OnStateApplier<AState> {
27
28 public:
31
33 void exposeParameters(ModuleParamList* moduleParamList,
34 const std::string& prefix) final;
35
37 void apply(const std::vector<TrackFindingCDC::WithWeight<const AState*>>& currentPath,
38 std::vector<TrackFindingCDC::WithWeight<AState*>>& childStates) override;
39
40 private:
47
50 };
52}
A special findlet, which is chooseable based on a given findlet for layers higher than N,...
AFindlet m_lowLayerFindlet
Findlet used for layers < N.
AFindlet m_highLayerFindlet
Findlet used for layers > N.
AFindlet m_equalLayerFindlet
Findlet used for layers == N.
int m_param_toggleOnLayer
On which N to toggle the layers.
The Module parameter list class.
Helper findlet which applies its () operator to all pairs of path and state with all states in the gi...
A mixin class to attach a weight to an object.
Definition: WithWeight.h:24
void apply(const std::vector< TrackFindingCDC::WithWeight< const AState * > > &currentPath, std::vector< TrackFindingCDC::WithWeight< AState * > > &childStates) override
The weight is calculated using the subfilter based on the geometrical layer of the state.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose parameters of the subfilters and the layer to change.
LayerToggledApplier()
Add the subfilters as listeners.
Abstract base class for different kinds of events.