Belle II Software  release-05-01-25
FitFacetRelationVarSet.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
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 
15 #include <tracking/trackFindingCDC/utilities/Relation.h>
16 
17 namespace Belle2 {
22  namespace TrackFindingCDC {
23  class CDCFacet;
24 
26  constexpr
27  static char const* const fitFacetRelationVarNames[] = {
28  "cos_delta",
29  "from_middle_cos_delta",
30  "to_middle_cos_delta",
31 
32 
33  "alpha_0",
34  "chi2_0",
35  "chi2_0_per_s",
36  "erf_0",
37  "fit_0_phi0",
38  "fit_0_cos_delta",
39 
40  "chi2_1",
41  "chi2_1_per_s",
42  "fit_1_phi0",
43  "fit_1_cos_delta",
44 
45  "chi2",
46  "chi2_per_s",
47  "fit_phi0",
48  "fit_cos_delta",
49 
50  "phi0_from_sigma",
51  "phi0_to_sigma",
52 
53  "phi0_ref_pull",
54  "phi0_ref_diff",
55  "phi0_ref_sigma",
56 
57  "chi2_comb",
58  "phi0_comb_pull",
59  "phi0_comb_diff",
60  "phi0_comb_sigma",
61 
62  "chi2_kari_unit",
63  "abs_curv_unit",
64 
65  "chi2_kari_l",
66  "abs_curv_l",
67 
68  "chi2_kari_pseudo",
69  "abs_curv_pseudo",
70 
71  "chi2_kari_proper",
72  "abs_curv_proper",
73  };
74 
76  struct FitFacetRelationVarNames : public VarNames<Relation<const CDCFacet>> {
77 
79  static const size_t nVars = size(fitFacetRelationVarNames);
80 
82  static constexpr char const* getName(int iName)
83  {
84  return fitFacetRelationVarNames[iName];
85  }
86  };
87 
92  class FitFacetRelationVarSet : public VarSet<FitFacetRelationVarNames> {
93 
94  public:
96  bool extract(const Relation<const CDCFacet>* ptrFacetRelation) final;
97  };
98  }
100 }
Belle2::TrackFindingCDC::FitFacetRelationVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: FitFacetRelationVarSet.h:87
Belle2::TrackFindingCDC::Relation
Type for two related objects.
Definition: CDCSegment2D.h:37
Belle2::TrackFindingCDC::FitFacetRelationVarSet::extract
bool extract(const Relation< const CDCFacet > *ptrFacetRelation) final
Generate and assign the contained variables.
Definition: FitFacetRelationVarSet.cc:29
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::FitFacetRelationVarSet
Class to compute floating point variables from a facet relation which can be recorded as a flat TNtup...
Definition: FitFacetRelationVarSet.h:100
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46
Belle2::TrackFindingCDC::FitFacetRelationVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: FitFacetRelationVarSet.h:90