Belle II Software development
FitlessSegmentPairVarSet.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 CDCSegmentPair;
20
22 constexpr
23 static char const* const fitlessSegmentPairVarNames[] = {
24 "from_ndf",
25 "to_ndf",
26
27 "from_chi2_over_ndf",
28 "to_chi2_over_ndf",
29
30 "from_p_value",
31 "to_p_value",
32
33 "abs_avg_curv",
34 "delta_curv",
35 "delta_curv_var",
36 "delta_curv_pull",
37
38 "delta_pos_phi",
39 "delta_mom_phi",
40 "from_delta_mom_phi",
41 "to_delta_mom_phi",
42 "delta_alpha",
43
44 "reco_arc_length_gap",
45 "stereo_arc_length",
46 "near_reco_z",
47 "near_z_bound_factor",
48 "far_reco_z",
49 "far_z_bound_factor",
50
51 "coarse_tanl",
52 "stereo_rel_size",
53
54 "arc_length_front_offset",
55 "arc_length_back_offset",
56 "from_arc_length_total",
57 "to_arc_length_total",
58 "arc_length_gap",
59 };
60
62 struct FitlessSegmentPairVarNames : public VarNames<CDCSegmentPair> {
63
65 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
66 // at least tell cppcheck that everything is fine
67 // cppcheck-suppress duplInheritedMember
68 static const size_t nVars = size(fitlessSegmentPairVarNames);
69
71 static constexpr char const* getName(int iName)
72 {
73 return fitlessSegmentPairVarNames[iName];
74 }
75 };
76
81 class FitlessSegmentPairVarSet : public VarSet<FitlessSegmentPairVarNames> {
82
83 public:
85 bool extract(const CDCSegmentPair* ptrSegmentPair) final;
86 };
87 }
89}
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
Class to compute floating point variables from an axial stereo segment pair which can be recorded as ...
bool extract(const CDCSegmentPair *ptrSegmentPair) 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.