Belle II Software development
StateCreatorWithReversal.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/StateCreator.dcl.h>
11
12#include <vector>
13#include <string>
14
15namespace Belle2 {
20 class RecoTrack;
21 class ModuleParamList;
22
23 template <class AState>
25 class StateCreatorWithReversal : public StateCreator<RecoTrack, AState> {
28
29 public:
31 void apply(const std::vector<RecoTrack*>& objects, std::vector<AState>& states) final;
32
34 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
35
36 private:
38 bool m_param_reverseSeed = false;
39 };
41}
The Module parameter list class.
An adaption of the normal state creator introducing another parameter to reverse the seed.
Create new states and add them to a vector from a given object vector.
void apply(const std::vector< RecoTrack * > &objects, std::vector< AState > &states) final
Create states from the space points, including a reverse flag or not.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters.
Abstract base class for different kinds of events.