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