Belle II Software  release-05-01-25
StateCreator.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 #pragma once
11 
12 #include <tracking/ckf/general/findlets/StateCreator.dcl.h>
13 
14 namespace Belle2 {
19  template<class AnObject, class AState>
21  void StateCreator<AnObject, AState>::apply(const std::vector<AnObject*>& objects,
22  std::vector<AState>& states)
23  {
24  states.reserve(states.size() + objects.size());
25 
26  for (AnObject* object : objects) {
27  states.emplace_back(object);
28  }
29  }
31 }
Belle2::StateCreator::apply
void apply(const std::vector< AnObject * > &objects, std::vector< AState > &states) override
Add new states to the list of states using all given objects.
Definition: StateCreator.icc.h:29
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19