Belle II Software  release-05-01-25
SVDResultVarSet.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 #include <tracking/ckf/svd/utilities/SVDAdvancer.h>
18 
19 namespace Belle2 {
24  constexpr
26  static char const* const svdResultVarNames[] = {
27  "chi2_vxd_max",
28  "chi2_vxd_min",
29  "chi2_cdc",
30  "chi2",
31 
32  "number_of_hits",
33 
34  "pt",
35  "theta",
36 
37  "number_of_holes",
38 
39  "cdc_lowest_layer",
40 
41  "last_hit_layer",
42  "first_hit_layer",
43 
44  "weight_sum",
45 
46  "has_missing_layer_1",
47  "has_missing_layer_2",
48  "has_missing_layer_3",
49  "has_missing_layer_4",
50  "has_missing_layer_5",
51  "has_missing_layer_6",
52 
53  "distance_to_cdc_track",
54  "distance_to_cdc_track_xy",
55  };
56 
58  class SVDResultVarNames : public TrackFindingCDC::VarNames<CKFToSVDResult> {
59 
60  public:
62  static const size_t nVars = TrackFindingCDC::size(svdResultVarNames);
63 
65  constexpr
66  static char const* getName(int iName)
67  {
68  return svdResultVarNames[iName];
69  }
70  };
71 
76  class SVDResultVarSet : public TrackFindingCDC::VarSet<SVDResultVarNames> {
79 
80  public:
82 
84  bool extract(const CKFToSVDResult* object) final;
85 
86  void initialize() override;
87 
88  private:
91  };
93 }
Belle2::SVDResultVarSet::Super
TrackFindingCDC::VarSet< SVDResultVarNames > Super
Type of the base class.
Definition: SVDResultVarSet.h:86
Belle2::SVDResultVarSet::initialize
void initialize() override
Receive signal before the start of the event processing.
Definition: SVDResultVarSet.cc:25
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::svdResultVarNames
constexpr static char const *const svdResultVarNames[]
Names of the variables to be generated.
Definition: SVDResultVarSet.h:34
Belle2::SVDResultVarSet::extract
bool extract(const CKFToSVDResult *object) final
Generate and assign the variables from the object.
Definition: SVDResultVarSet.cc:34
Belle2::SVDResultVarSet
Var set used in the VXD-CDC-Merger for calculating the probability of a VXD-CDC-track match,...
Definition: SVDResultVarSet.h:84
Belle2::Advancer
Helper findlet for performing an extrapolation of a mSoP of one plane to another plane using the repr...
Definition: Advancer.h:39
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46
Belle2::SVDResultVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: SVDResultVarSet.h:70
Belle2::SVDResultVarNames::getName
constexpr static char const * getName(int iName)
Get the name of the column.
Definition: SVDResultVarSet.h:74
Belle2::SVDResultVarSet::m_advancer
SVDAdvancer m_advancer
Findlet for advancing.
Definition: SVDResultVarSet.h:98