Belle II Software  release-05-01-25
RelationSVDResultVarSet.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/trackFindingCDC/varsets/VarSet.h>
13 #include <tracking/trackFindingCDC/varsets/VarNames.h>
14 #include <tracking/trackFindingCDC/varsets/FixedSizeNamedFloatTuple.h>
15 
16 #include <tracking/ckf/svd/entities/CKFToSVDResult.h>
17 
18 namespace Belle2 {
23  constexpr
25  static char const* const relationSVDResultVarNames[] = {
26  "svd_highest_layer",
27  "number_of_hits_related_svd_track",
28  };
29 
31  class RelationSVDResultVarNames : public TrackFindingCDC::VarNames<CKFToSVDResult> {
32 
33  public:
35  static const size_t nVars = TrackFindingCDC::size(relationSVDResultVarNames);
36 
38  constexpr
39  static char const* getName(int iName)
40  {
41  return relationSVDResultVarNames[iName];
42  }
43  };
44 
49  class RelationSVDResultVarSet : public TrackFindingCDC::VarSet<RelationSVDResultVarNames> {
50  public:
52  bool extract(const CKFToSVDResult* object) final;
53  };
55 }
Belle2::RelationSVDResultVarSet
Var set used in the VXD-CDC-Merger for calculating the probability of a VXD-CDC-track match,...
Definition: RelationSVDResultVarSet.h:57
Belle2::RelationSVDResultVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: RelationSVDResultVarSet.h:43
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CKFToSVDResult
Specialized CKF Result for extrapolating into the SVD.
Definition: CKFToSVDResult.h:33
Belle2::RelationSVDResultVarNames::getName
constexpr static char const * getName(int iName)
Get the name of the column.
Definition: RelationSVDResultVarSet.h:47
Belle2::RelationSVDResultVarSet::extract
bool extract(const CKFToSVDResult *object) final
Generate and assign the variables from the object.
Definition: RelationSVDResultVarSet.cc:18
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46
Belle2::relationSVDResultVarNames
constexpr static char const *const relationSVDResultVarNames[]
Names of the variables to be generated.
Definition: RelationSVDResultVarSet.h:33