Belle II Software development
FitFacetRelationVarSet.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/trackingUtilities/varsets/VarSet.h>
11#include <tracking/trackingUtilities/varsets/VarNames.h>
12
13#include <tracking/trackingUtilities/utilities/Relation.h>
14
15namespace Belle2 {
20 namespace TrackingUtilities {
21 class CDCFacet;
22 }
23 namespace TrackFindingCDC {
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
77 TrackingUtilities::VarNames<TrackingUtilities::Relation<const TrackingUtilities::CDCFacet>> {
78
80 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
81 // at least tell cppcheck that everything is fine
82 // cppcheck-suppress duplInheritedMember
83 static const size_t nVars = TrackingUtilities::size(fitFacetRelationVarNames);
84
86 static constexpr char const* getName(int iName)
87 {
88 return fitFacetRelationVarNames[iName];
89 }
90 };
91
96 class FitFacetRelationVarSet : public TrackingUtilities::VarSet<FitFacetRelationVarNames> {
97
98 public:
101 };
102 }
104}
Class to compute floating point variables from a facet relation which can be recorded as a flat TNtup...
bool extract(const TrackingUtilities::Relation< const TrackingUtilities::CDCFacet > *ptrFacetRelation) final
Generate and assign the contained variables.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition CDCFacet.h:32
Type for two related objects.
Definition Relation.h:21
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
Abstract base class for different kinds of events.
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)
Getter for the name at the given index.