Belle II Software development
BendFacetVarSet.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/trackingUtilities/varsets/VarSet.h>
11#include <tracking/trackingUtilities/varsets/VarNames.h>
12
13namespace Belle2 {
18 namespace TrackingUtilities {
19 class CDCFacet;
20 }
21 namespace TrackFindingCDC {
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 TrackingUtilities::VarNames<const TrackingUtilities::CDCFacet> {
53
55 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
56 // at least tell cppcheck that everything is fine
57 // cppcheck-suppress duplInheritedMember
58 static const size_t nVars = TrackingUtilities::size(bendFacetVarNames);
59
61 static constexpr char const* getName(int iName)
62 {
63 return bendFacetVarNames[iName];
64 }
65 };
66
71 class BendFacetVarSet : public TrackingUtilities::VarSet<BendFacetVarNames> {
72
73 public:
75 bool extract(const TrackingUtilities::CDCFacet* ptrFacet) final;
76 };
77 }
79}
Class to compute floating point variables from a facet which can be recorded as a flat TNtuple or ser...
bool extract(const TrackingUtilities::CDCFacet *ptrFacet) final
Generate and assign the contained variables.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition CDCFacet.h:32
Class that specifies the names of the variables.
Definition VarNames.h:21
Generic class that generates some named float values from a given object.
Definition VarSet.h:36
Abstract base class for different kinds of events.
Vehicle class to transport the variable names.
static const size_t nVars
Number of variables to be generated.
static constexpr char const * getName(int iName)
Getter for the name at the given index.