Belle II Software  release-05-01-25
FitlessAxialSegmentPairVarSet.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/varsets/VarSet.h>
13 #include <tracking/trackFindingCDC/varsets/VarNames.h>
14 
15 namespace Belle2 {
20  namespace TrackFindingCDC {
21  class CDCAxialSegmentPair;
22 
24  constexpr
25  static char const* const fitlessAxialSegmentPairVarNames[] = {
26  "from_ndf",
27  "to_ndf",
28 
29  "from_chi2_over_ndf",
30  "to_chi2_over_ndf",
31 
32  "from_p_value",
33  "to_p_value",
34 
35  "abs_avg_curv",
36  "delta_curv",
37  "delta_curv_var",
38  "delta_curv_pull",
39 
40  "delta_pos_phi",
41  "delta_mom_phi",
42  "from_delta_mom_phi",
43  "to_delta_mom_phi",
44  "delta_alpha",
45 
46  "arc_length_front_offset",
47  "arc_length_back_offset",
48  "from_arc_length_total",
49  "to_arc_length_total",
50  "arc_length_gap",
51  };
52 
54  struct FitlessAxialSegmentPairVarNames : public VarNames<CDCAxialSegmentPair> {
55 
57  static const size_t nVars = size(fitlessAxialSegmentPairVarNames);
58 
60  static constexpr char const* getName(int iName)
61  {
62  return fitlessAxialSegmentPairVarNames[iName];
63  }
64  };
65 
70  class FitlessAxialSegmentPairVarSet : public VarSet<FitlessAxialSegmentPairVarNames> {
71 
72  public:
74  bool extract(const CDCAxialSegmentPair* ptrAxialSegmentPair) override;
75  };
76  }
78 }
Belle2::TrackFindingCDC::FitlessAxialSegmentPairVarSet
Class to compute floating point variables from a segment relation which can be recorded as a flat TNt...
Definition: FitlessAxialSegmentPairVarSet.h:78
Belle2::TrackFindingCDC::FitlessAxialSegmentPairVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: FitlessAxialSegmentPairVarSet.h:68
Belle2::TrackFindingCDC::FitlessAxialSegmentPairVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: FitlessAxialSegmentPairVarSet.h:65
Belle2::TrackFindingCDC::CDCAxialSegmentPair
Class representing a pair of reconstructed axial segements in adjacent superlayer.
Definition: CDCAxialSegmentPair.h:41
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::FitlessAxialSegmentPairVarSet::extract
bool extract(const CDCAxialSegmentPair *ptrAxialSegmentPair) override
Generate and assign the contained variables.
Definition: FitlessAxialSegmentPairVarSet.cc:22
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46