Belle II Software  release-05-01-25
HitGapAxialSegmentPairVarSet.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - 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 hitGapAxialSegmentPairVarNames[] = {
26  "delta_hit_pos_phi",
27  "delta_hit_mom_phi",
28  "delta_hit_alpha",
29 
30  "hit_distance",
31  "hit_long_distance",
32  "delta_hit_distance",
33 
34  "from_hit_forward",
35  "to_hit_forward",
36  "hit_forward",
37  "hit_ptolemy",
38  };
39 
41  struct HitGapAxialSegmentPairVarNames : public VarNames<CDCAxialSegmentPair > {
42 
44  static const size_t nVars = size(hitGapAxialSegmentPairVarNames);
45 
47  static constexpr char const* getName(int iName)
48  {
49  return hitGapAxialSegmentPairVarNames[iName];
50  }
51  };
52 
57  class HitGapAxialSegmentPairVarSet : public VarSet<HitGapAxialSegmentPairVarNames> {
58 
59  public:
61  bool extract(const CDCAxialSegmentPair* ptrAxialSegmentPair) override;
62  };
63  }
65 }
Belle2::TrackFindingCDC::HitGapAxialSegmentPairVarSet::extract
bool extract(const CDCAxialSegmentPair *ptrAxialSegmentPair) override
Generate and assign the contained variables.
Definition: HitGapAxialSegmentPairVarSet.cc:21
Belle2::TrackFindingCDC::HitGapAxialSegmentPairVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: HitGapAxialSegmentPairVarSet.h:55
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::HitGapAxialSegmentPairVarSet
Class to compute floating point variables from a segment relation which can be recorded as a flat TNt...
Definition: HitGapAxialSegmentPairVarSet.h:65
Belle2::TrackFindingCDC::HitGapAxialSegmentPairVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: HitGapAxialSegmentPairVarSet.h:52
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46