Belle II Software  release-08-01-10
StateCreatorWithReversal.icc.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 
9 #include <tracking/ckf/general/findlets/StateCreatorWithReversal.dcl.h>
10 
11 #include <framework/core/ModuleParamList.h>
12 
13 namespace Belle2 {
19  template <class AState>
20  void StateCreatorWithReversal<AState>::apply(const std::vector<RecoTrack*>& objects, std::vector<AState>& states)
21  {
22  for (const RecoTrack* object : objects) {
23  states.emplace_back(object, m_param_reverseSeed);
24  }
25  }
26 
27  template <class AState>
28  void StateCreatorWithReversal<AState>::exposeParameters(ModuleParamList* moduleParamList, const std::string&)
29  {
30  moduleParamList->addParameter("reverseSeed",
31  m_param_reverseSeed,
32  "Reverse the seed.");
33  }
35 }
The Module parameter list class.
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:79
void addParameter(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
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.