Belle II Software  release-05-01-25
StateCreatorWithReversal.icc.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <tracking/ckf/general/findlets/StateCreatorWithReversal.dcl.h>
12 
13 #include <framework/core/ModuleParamList.h>
14 
15 namespace Belle2 {
21  template <class AState>
22  void StateCreatorWithReversal<AState>::apply(const std::vector<RecoTrack*>& objects, std::vector<AState>& states)
23  {
24  for (const RecoTrack* object : objects) {
25  states.emplace_back(object, m_param_reverseSeed);
26  }
27  }
28 
29  template <class AState>
30  void StateCreatorWithReversal<AState>::exposeParameters(ModuleParamList* moduleParamList, const std::string&)
31  {
32  moduleParamList->addParameter("reverseSeed",
33  m_param_reverseSeed,
34  "Reverse the seed.");
35  }
37 }
Belle2::StateCreatorWithReversal::apply
void apply(const std::vector< RecoTrack * > &objects, std::vector< AState > &states) final
Create states from the space points, including a reverse flag or not.
Definition: StateCreatorWithReversal.icc.h:30
Belle2::StateCreatorWithReversal::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters.
Definition: StateCreatorWithReversal.icc.h:38
Belle2::ModuleParamList::addParameter
void addParameter(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Definition: ModuleParamList.templateDetails.h:38
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46