Belle II Software  release-05-02-19
BasicSegmentPairVarSet.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 basicSegmentPairVarNames[] = {
26  "axial_first",
27  "axial_size",
28  "stereo_size",
29  "sl_id_pair",
30  };
31 
33  struct BasicSegmentPairVarNames : public VarNames<CDCSegmentPair> {
34 
36  static const size_t nVars = size(basicSegmentPairVarNames);
37 
39  static constexpr char const* getName(int iName)
40  {
41  return basicSegmentPairVarNames[iName];
42  }
43  };
44 
49  class BasicSegmentPairVarSet : public VarSet<BasicSegmentPairVarNames> {
50 
51  public:
53  bool extract(const CDCSegmentPair* ptrSegmentPair) final;
54  };
55  }
57 }
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::BasicSegmentPairVarSet::extract
bool extract(const CDCSegmentPair *ptrSegmentPair) final
Generate and assign the contained variables.
Definition: BasicSegmentPairVarSet.cc:18
Belle2::TrackFindingCDC::BasicSegmentPairVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: BasicSegmentPairVarSet.h:44
Belle2::TrackFindingCDC::BasicSegmentPairVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: BasicSegmentPairVarSet.h:47
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::BasicSegmentPairVarSet
Class to compute floating point variables from an axial stereo segment pair which can be recorded as ...
Definition: BasicSegmentPairVarSet.h:57
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46