Belle II Software development
BasicSegmentPairVarSet.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 CDCSegmentPair;
20
22 constexpr
23 static char const* const basicSegmentPairVarNames[] = {
24 "axial_first",
25 "axial_size",
26 "stereo_size",
27 "sl_id_pair",
28 };
29
31 struct BasicSegmentPairVarNames : public VarNames<CDCSegmentPair> {
32
34 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
35 // at least tell cppcheck that everything is fine
36 // cppcheck-suppress duplInheritedMember
37 static const size_t nVars = size(basicSegmentPairVarNames);
38
40 static constexpr char const* getName(int iName)
41 {
42 return basicSegmentPairVarNames[iName];
43 }
44 };
45
50 class BasicSegmentPairVarSet : public VarSet<BasicSegmentPairVarNames> {
51
52 public:
54 bool extract(const CDCSegmentPair* ptrSegmentPair) final;
55 };
56 }
58}
Class to compute floating point variables from an axial stereo segment pair which can be recorded as ...
bool extract(const CDCSegmentPair *ptrSegmentPair) final
Generate and assign the contained variables.
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent super...
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.