Belle II Software  release-05-02-19
PXDStateBasicVarSet.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 #include <tracking/trackFindingCDC/varsets/VarSet.h>
12 #include <tracking/trackFindingCDC/varsets/VarNames.h>
13 #include <tracking/trackFindingCDC/varsets/FixedSizeNamedFloatTuple.h>
14 
15 #include <tracking/ckf/pxd/filters/states/BasePXDStateFilter.h>
16 #include <tracking/ckf/pxd/utilities/PXDKalmanStepper.h>
17 
18 namespace Belle2 {
23  constexpr
25  static char const* const pxdStateBasicVarNames[] = {
26  "distance",
27  "xy_distance",
28  "z_distance",
29 
30  "mSoP_distance",
31  "mSoP_xy_distance",
32  "mSoP_z_distance",
33 
34  "same_hemisphere",
35 
36  "layer",
37  "number",
38 
39  "arcLengthOfHitPosition",
40  "arcLengthOfCenterPosition",
41 
42  "pt",
43  "tan_lambda",
44  "phi",
45 
46  "sigma_uv",
47  "residual_over_sigma",
48 
49  "residual",
50 
51  "chi2",
52 
53  "ladder",
54  "sensor",
55  "segment",
56  "id",
57 
58  "last_layer",
59  "last_ladder",
60  "last_sensor",
61  "last_segment",
62  "last_id",
63  };
64 
66  class PXDStateBasicVarNames : public TrackFindingCDC::VarNames<BasePXDStateFilter::Object> {
67 
68  public:
70  static const size_t nVars = TrackFindingCDC::size(pxdStateBasicVarNames);
71 
73  constexpr
74  static char const* getName(int iName)
75  {
76  return pxdStateBasicVarNames[iName];
77  }
78  };
79 
83  class PXDStateBasicVarSet : public TrackFindingCDC::VarSet<PXDStateBasicVarNames> {
84 
85  public:
87  virtual bool extract(const BasePXDStateFilter::Object* pair) override;
88 
89  private:
92  };
94 }
Belle2::PXDStateBasicVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: PXDStateBasicVarSet.h:78
Belle2::PXDStateBasicVarSet::m_kalmanStepper
PXDKalmanStepper m_kalmanStepper
Kalmap update filter used in this var set.
Definition: PXDStateBasicVarSet.h:99
Belle2::PXDKalmanStepper
Kalman stepper implementation for the PXD CKF.
Definition: PXDKalmanStepper.h:26
Belle2::PXDStateBasicVarSet::extract
virtual bool extract(const BasePXDStateFilter::Object *pair) override
Generate and assign the variables from the VXD-CDC-pair.
Definition: PXDStateBasicVarSet.cc:25
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46
Belle2::PXDStateBasicVarNames::getName
constexpr static char const * getName(int iName)
Get the name of the column.
Definition: PXDStateBasicVarSet.h:82
Belle2::PXDStateBasicVarSet
Var set used in the VXD-CDC-Merger for calculating the probability of a VXD-CDC-track match.
Definition: PXDStateBasicVarSet.h:91
Belle2::pxdStateBasicVarNames
constexpr static char const *const pxdStateBasicVarNames[]
Names of the variables to be generated.
Definition: PXDStateBasicVarSet.h:33
Belle2::TrackFindingCDC::Filter::Object
AObject Object
Type of the object to be analysed.
Definition: Filter.dcl.h:43