Belle II Software development
BasicAxialSegmentPairVarSet.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 CDCAxialSegmentPair;
20
22 constexpr
23 static char const* const basicAxialSegmentPairVarNames[] = {
24 "stereo_kind",
25 "from_size",
26 "to_size",
27 "from_n_layers",
28 "to_n_layers",
29 "sl_id",
30 };
31
33 struct BasicAxialSegmentPairVarNames : public VarNames<CDCAxialSegmentPair > {
34
36 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
37 // at least tell cppcheck that everything is fine
38 // cppcheck-suppress duplInheritedMember
39 static const size_t nVars = size(basicAxialSegmentPairVarNames);
40
42 static constexpr char const* getName(int iName)
43 {
44 return basicAxialSegmentPairVarNames[iName];
45 }
46 };
47
52 class BasicAxialSegmentPairVarSet : public VarSet<BasicAxialSegmentPairVarNames> {
53
54 public:
56 bool extract(const CDCAxialSegmentPair* ptrAxialSegmentPair) override;
57 };
58 }
60}
Class to compute floating point variables from a segment relation which can be recorded as a flat TNt...
bool extract(const CDCAxialSegmentPair *ptrAxialSegmentPair) override
Generate and assign the contained variables.
Class representing a pair of reconstructed axial segments in adjacent superlayer.
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.