Belle II Software development
FitAxialSegmentPairVarSet.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 CDCAxialSegmentPair;
20
22 constexpr
23 static char const* const fitAxialSegmentPairVarNames[] = {
24 "is_fitted",
25 "curv",
26 "curv_var",
27 "chi2",
28 "chi2_no_rl",
29 "chi2_per_ndf",
30 "chi2_no_rl_per_ndf",
31 "ndf",
32 "p_value",
33 };
34
36 struct FitAxialSegmentPairVarNames : public VarNames<CDCAxialSegmentPair> {
37
39 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
40 // at least tell cppcheck that everything is fine
41 // cppcheck-suppress duplInheritedMember
42 static const size_t nVars = size(fitAxialSegmentPairVarNames);
43
45 static constexpr char const* getName(int iName)
46 {
47 return fitAxialSegmentPairVarNames[iName];
48 }
49 };
50
55 class FitAxialSegmentPairVarSet : public VarSet<FitAxialSegmentPairVarNames> {
56
57 public:
59 bool extract(const CDCAxialSegmentPair* ptrAxialSegmentPair) final;
60 };
61 }
63}
Class representing a pair of reconstructed axial segments in adjacent superlayer.
Class to compute floating point variables from a segment relation which can be recorded as a flat TNt...
bool extract(const CDCAxialSegmentPair *ptrAxialSegmentPair) 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.