Belle II Software development
FitSegmentRelationVarSet.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 CDCSegment2D;
22 }
23 namespace TrackFindingCDC {
24
26 constexpr
27 static char const* const fitSegmentRelationVarNames[] = {
28 "is_fitted",
29 "curv",
30 "curv_var",
31 "chi2",
32 "chi2_no_rl",
33 "chi2_per_ndf",
34 "chi2_no_rl_per_ndf",
35 "ndf",
36 "p_value",
37 };
38
41 TrackingUtilities::VarNames<TrackingUtilities::Relation<const TrackingUtilities::CDCSegment2D>> {
42
44 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
45 // at least tell cppcheck that everything is fine
46 // cppcheck-suppress duplInheritedMember
47 static const size_t nVars = TrackingUtilities::size(fitSegmentRelationVarNames);
48
50 static constexpr char const* getName(int iName)
51 {
52 return fitSegmentRelationVarNames[iName];
53 }
54 };
55
60 class FitSegmentRelationVarSet : public TrackingUtilities::VarSet<FitSegmentRelationVarNames> {
61
62 public:
65 };
66 }
68}
Class to compute floating point variables from a segment relation which can be recorded as a flat TNt...
bool extract(const TrackingUtilities::Relation< const TrackingUtilities::CDCSegment2D > *ptrSegmentRelation) final
Generate and assign the contained variables.
A reconstructed sequence of two dimensional hits in one super layer.
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.