Belle II Software  release-05-01-25
FitlessSegmentPairVarSet.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 CDCSegmentPair;
22 
24  constexpr
25  static char const* const fitlessSegmentPairVarNames[] = {
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  "reco_arc_length_gap",
47  "stereo_arc_length",
48  "near_reco_z",
49  "near_z_bound_factor",
50  "far_reco_z",
51  "far_z_bound_factor",
52 
53  "coarse_tanl",
54  "stereo_rel_size",
55 
56  "arc_length_front_offset",
57  "arc_length_back_offset",
58  "from_arc_length_total",
59  "to_arc_length_total",
60  "arc_length_gap",
61  };
62 
64  struct FitlessSegmentPairVarNames : public VarNames<CDCSegmentPair> {
65 
67  static const size_t nVars = size(fitlessSegmentPairVarNames);
68 
70  static constexpr char const* getName(int iName)
71  {
72  return fitlessSegmentPairVarNames[iName];
73  }
74  };
75 
80  class FitlessSegmentPairVarSet : public VarSet<FitlessSegmentPairVarNames> {
81 
82  public:
84  bool extract(const CDCSegmentPair* ptrSegmentPair) final;
85  };
86  }
88 }
Belle2::TrackFindingCDC::CDCSegmentPair
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
Definition: CDCSegmentPair.h:44
Belle2::TrackFindingCDC::FitlessSegmentPairVarSet
Class to compute floating point variables from an axial stereo segment pair which can be recorded as ...
Definition: FitlessSegmentPairVarSet.h:88
Belle2::TrackFindingCDC::FitlessSegmentPairVarSet::extract
bool extract(const CDCSegmentPair *ptrSegmentPair) final
Generate and assign the contained variables.
Definition: FitlessSegmentPairVarSet.cc:22
Belle2::TrackFindingCDC::FitlessSegmentPairVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: FitlessSegmentPairVarSet.h:75
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::FitlessSegmentPairVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: FitlessSegmentPairVarSet.h:78
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46