Belle II Software  release-05-01-25
FitAxialSegmentPairVarSet.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 fitAxialSegmentPairVarNames[] = {
26  "is_fitted",
27  "curv",
28  "curv_var",
29  "chi2",
30  "chi2_no_rl",
31  "chi2_per_ndf",
32  "chi2_no_rl_per_ndf",
33  "ndf",
34  "p_value",
35  };
36 
38  struct FitAxialSegmentPairVarNames : public VarNames<CDCAxialSegmentPair> {
39 
41  static const size_t nVars = size(fitAxialSegmentPairVarNames);
42 
44  static constexpr char const* getName(int iName)
45  {
46  return fitAxialSegmentPairVarNames[iName];
47  }
48  };
49 
54  class FitAxialSegmentPairVarSet : public VarSet<FitAxialSegmentPairVarNames> {
55 
56  public:
58  bool extract(const CDCAxialSegmentPair* ptrAxialSegmentPair) final;
59  };
60  }
62 }
Belle2::TrackFindingCDC::FitAxialSegmentPairVarSet
Class to compute floating point variables from a segment relation which can be recorded as a flat TNt...
Definition: FitAxialSegmentPairVarSet.h:62
Belle2::TrackFindingCDC::FitAxialSegmentPairVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: FitAxialSegmentPairVarSet.h:49
Belle2::TrackFindingCDC::FitAxialSegmentPairVarSet::extract
bool extract(const CDCAxialSegmentPair *ptrAxialSegmentPair) final
Generate and assign the contained variables.
Definition: FitAxialSegmentPairVarSet.cc:23
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::FitAxialSegmentPairVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: FitAxialSegmentPairVarSet.h:52
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46