Belle II Software development
SpacePointTrackCandCreator.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/spacePointCreation/SpacePoint.h>
11#include <tracking/spacePointCreation/SpacePointTrackCand.h>
12
13namespace Belle2 {
20 template<class SPTCContainerType>
22
25 SpacePointTrackCand* createSPTC(SPTCContainerType& tcContainer, std::vector<const SpacePoint*>& spacePoints, short family = -1)
26 {
27 SpacePointTrackCand* newSPTC = tcContainer.appendNew(spacePoints);
28 newSPTC->setFamily(family);
29
30 return newSPTC;
31 }
32 };
33
35} //Belle2 namespace
Storage for (VXD) SpacePoint-based track candidates.
void setFamily(short family)
assign family identifier
Abstract base class for different kinds of events.
small class to take simple vectors of SpacePoints and convert them to real SpacePointTrackCands
SpacePointTrackCand * createSPTC(SPTCContainerType &tcContainer, std::vector< const SpacePoint * > &spacePoints, short family=-1)
takes simple vectors of SpacePoints and convert them to real SpacePointTrackCand.