Belle II Software development
BendFacetRelationVarSet.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
13#include <tracking/trackingUtilities/utilities/Relation.h>
14
15namespace Belle2 {
20 namespace TrackingUtilities {
21 class CDCFacet;
22 }
23 namespace TrackFindingCDC {
24
26 constexpr
27 static char const* const bendFacetRelationVarNames[] = {
28 "delta_phi",
29 "delta_phi_pull",
30 "delta_phi_pull_per_r",
31 "delta_curv",
32 "delta_curv_pull",
33 "delta_curv_pull_per_r",
34 };
35
38 TrackingUtilities::VarNames<TrackingUtilities::Relation<const TrackingUtilities::CDCFacet>> {
39
41 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
42 // at least tell cppcheck that everything is fine
43 // cppcheck-suppress duplInheritedMember
44 static const size_t nVars = TrackingUtilities::size(bendFacetRelationVarNames);
45
47 static constexpr char const* getName(int iName)
48 {
49 return bendFacetRelationVarNames[iName];
50 }
51 };
52
57 class BendFacetRelationVarSet : public TrackingUtilities::VarSet<BendFacetRelationVarNames> {
58
59 public:
62 };
63 }
65}
Class to compute floating point variables from a facet relation which can be recorded as a flat TNtup...
bool extract(const TrackingUtilities::Relation< const TrackingUtilities::CDCFacet > *ptrFacetRelation) final
Generate and assign the contained variables.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition CDCFacet.h:32
Type for two related objects.
Definition Relation.h:21
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.