Belle II Software development
FitFacetVarSet.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/trackFindingCDC/varsets/VarSet.h>
11#include <tracking/trackFindingCDC/varsets/VarNames.h>
12
13namespace Belle2 {
18 namespace TrackFindingCDC {
19 class CDCFacet;
20
22 constexpr
23 static char const* const fitFacetVarNames[] = {
24 "chi2_0",
25 "chi2_0_per_s",
26 "fit_0_phi0",
27 "fit_0_phi0_sigma",
28 "chi2_1",
29 "chi2_1_per_s",
30 "fit_1_phi0",
31 "fit_1_phi0_sigma",
32 "chi2",
33 "chi2_per_s",
34 "fit_phi0",
35 "fit_phi0_sigma",
36 "erf",
37 "tanh",
38 "d2",
39 "start_distance",
40 "middle_distance",
41 "end_distance",
42 };
43
45 struct FitFacetVarNames : public VarNames<const CDCFacet> {
46
48 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
49 // at least tell cppcheck that everything is fine
50 // cppcheck-suppress duplInheritedMember
51 static const size_t nVars = size(fitFacetVarNames);
52
54 static constexpr char const* getName(int iName)
55 {
56 return fitFacetVarNames[iName];
57 }
58 };
59
64 class FitFacetVarSet : public VarSet<FitFacetVarNames> {
65
66 public:
68 bool extract(const CDCFacet* ptrFacet) final;
69 };
70 }
72}
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:32
Class to compute floating point variables from a facet which can be recorded as a flat TNtuple or ser...
bool extract(const CDCFacet *ptrFacet) final
Generate and assign the contained variables.
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.