Belle II Software
release-05-01-25
SpacePointTrackCandCreator.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2015 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Jakob Lettenbichler, Jonas Wagner *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#pragma once
11
12
#include <tracking/spacePointCreation/SpacePoint.h>
13
#include <tracking/spacePointCreation/SpacePointTrackCand.h>
14
15
namespace
Belle2
{
22
template
<
class
SPTCContainerType>
23
struct
SpacePointTrackCandCreator {
24
27
SpacePointTrackCand*
createSPTC
(SPTCContainerType& tcContainer, std::vector<const SpacePoint*>& spacePoints,
short
family = -1)
28
{
29
SpacePointTrackCand* newSPTC = tcContainer.appendNew(spacePoints);
30
newSPTC->
setFamily
(family);
31
32
return
newSPTC;
33
}
34
};
35
37
}
//Belle2 namespace
Belle2::SpacePointTrackCandCreator::createSPTC
SpacePointTrackCand * createSPTC(SPTCContainerType &tcContainer, std::vector< const SpacePoint * > &spacePoints, short family=-1)
takes simple vectors of SpacePoints and convert them to real SpacePointTrackCand.
Definition:
SpacePointTrackCandCreator.h:35
Belle2::SpacePointTrackCand::setFamily
void setFamily(short family)
assign family identifier
Definition:
SpacePointTrackCand.h:290
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
tracking
trackFindingVXD
tcTools
include
SpacePointTrackCandCreator.h
Generated on Fri Nov 5 2021 04:04:47 for Belle II Software by
1.8.17