Belle II Software development
RelationSVDResultVarSet.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/trackFindingCDC/varsets/VarSet.h>
11#include <tracking/trackFindingCDC/varsets/VarNames.h>
12#include <tracking/trackFindingCDC/varsets/FixedSizeNamedFloatTuple.h>
13
14#include <tracking/ckf/svd/entities/CKFToSVDResult.h>
15
16namespace Belle2 {
22 constexpr
23 static char const* const relationSVDResultVarNames[] = {
24 "svd_highest_layer",
25 "number_of_hits_related_svd_track",
26 };
27
30
31 public:
33 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
34 // at least tell cppcheck that everything is fine
35 // cppcheck-suppress duplInheritedMember
36 static const size_t nVars = TrackFindingCDC::size(relationSVDResultVarNames);
37
39 constexpr
40 static char const* getName(int iName)
41 {
42 return relationSVDResultVarNames[iName];
43 }
44 };
45
50 class RelationSVDResultVarSet : public TrackFindingCDC::VarSet<RelationSVDResultVarNames> {
51 public:
53 bool extract(const CKFToSVDResult* object) final;
54 };
56}
Specialized CKF Result for extrapolating into the SVD.
Vehicle class to transport the variable names.
static const size_t nVars
Number of variables to be generated.
static constexpr char const * getName(int iName)
Get the name of the column.
Var set used in the VXD-CDC-Merger for calculating the probability of a VXD-CDC-track match,...
bool extract(const CKFToSVDResult *object) final
Generate and assign the variables from the object.
Class that specifies the names of the variables.
Definition: VarNames.h:21
Generic class that generates some named float values from a given object.
Definition: VarSet.h:36
static constexpr char const *const relationSVDResultVarNames[]
Names of the variables to be generated.
Abstract base class for different kinds of events.