Belle II Software  release-05-01-25
BendFacetVarSet.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 CDCFacet;
22 
24  constexpr
25  static char const* const bendFacetVarNames[] = {
26  "start_phi",
27  "start_phi_sigma",
28  "start_phi_pull",
29  "start_d",
30  "start_chi2",
31 
32  "middle_phi",
33  "middle_phi_sigma",
34  "middle_phi_pull",
35  "middle_d",
36  "middle_chi2",
37 
38  "end_phi",
39  "end_phi_sigma",
40  "end_phi_pull",
41  "end_d",
42  "end_chi2",
43 
44  "s",
45 
46  "curv",
47  "curv_sigma",
48  "curv_pull",
49  };
50 
52  struct BendFacetVarNames : public VarNames<const CDCFacet> {
53 
55  static const size_t nVars = size(bendFacetVarNames);
56 
58  static constexpr char const* getName(int iName)
59  {
60  return bendFacetVarNames[iName];
61  }
62  };
63 
68  class BendFacetVarSet : public VarSet<BendFacetVarNames> {
69 
70  public:
72  bool extract(const CDCFacet* ptrFacet) final;
73  };
74  }
76 }
Belle2::TrackFindingCDC::BendFacetVarSet::extract
bool extract(const CDCFacet *ptrFacet) final
Generate and assign the contained variables.
Definition: BendFacetVarSet.cc:17
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::BendFacetVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: BendFacetVarSet.h:63
Belle2::TrackFindingCDC::CDCFacet
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:42
Belle2::TrackFindingCDC::BendFacetVarNames::getName
static constexpr char const * getName(int iName)
Getter for the name at the given index.
Definition: BendFacetVarSet.h:66
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46
Belle2::TrackFindingCDC::BendFacetVarSet
Class to compute floating point variables from a facet which can be recorded as a flat TNtuple or ser...
Definition: BendFacetVarSet.h:76