Belle II Software  release-05-01-25
TrailSegmentPairVarSet.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 trailSegmentPairVarNames[] = {
26  "from_rl_asym",
27  "to_rl_asym",
28 
29  "from_rl_switches",
30  "to_rl_switches",
31  };
32 
34  struct TrailSegmentPairVarNames : public VarNames<CDCSegmentPair> {
35 
37  static const size_t nVars = size(trailSegmentPairVarNames);
38 
40  static constexpr char const* getName(int iName)
41  {
42  return trailSegmentPairVarNames[iName];
43  }
44  };
45 
50  class TrailSegmentPairVarSet : public VarSet<TrailSegmentPairVarNames> {
51 
52  public:
54  bool extract(const CDCSegmentPair* ptrSegmentPair) final;
55  };
56  }
58 }
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::TrailSegmentPairVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: TrailSegmentPairVarSet.h:45
Belle2::TrackFindingCDC::TrailSegmentPairVarSet
Class to compute floating point variables from an axial stereo segment pair which can be recorded as ...
Definition: TrailSegmentPairVarSet.h:58
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrailSegmentPairVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: TrailSegmentPairVarSet.h:48
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46
Belle2::TrackFindingCDC::TrailSegmentPairVarSet::extract
bool extract(const CDCSegmentPair *ptrSegmentPair) final
Generate and assign the contained variables.
Definition: TrailSegmentPairVarSet.cc:18