Belle II Software development
FitlessFacetVarSet.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/trackFindingCDC/varsets/VarSet.h>
11#include <tracking/trackFindingCDC/varsets/VarNames.h>
12
13namespace Belle2 {
18 namespace TrackFindingCDC {
19 class CDCFacet;
20
22 constexpr
23 static char const* const fitlessFacetVarNames[] = {
24 "superlayer_id",
25 "oclock_delta",
26 "abs_oclock_delta",
27 "cell_extend",
28 "short_arm_is_crossing",
29 "long_arm_is_crossing",
30 "stable_twist",
31 "abs_layer_id_difference",
32 "layer_id_difference",
33 "crossing_id",
34 "shape_id",
35 "is_forward_progression",
36 };
37
39 struct FitlessFacetVarNames : public VarNames<const CDCFacet> {
40
42 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
43 // at least tell cppcheck that everything is fine
44 // cppcheck-suppress duplInheritedMember
45 static const size_t nVars = size(fitlessFacetVarNames);
46
48 static constexpr char const* getName(int iName)
49 {
50 return fitlessFacetVarNames[iName];
51 }
52 };
53
58 class FitlessFacetVarSet : public VarSet<FitlessFacetVarNames> {
59
60 public:
62 bool extract(const CDCFacet* ptrFacet) final;
63 };
64 }
66}
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:32
Class to compute floating point variables from a facet which can be recorded as a flat TNtuple or ser...
bool extract(const CDCFacet *ptrFacet) final
Generate and assign the contained variables.
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.