Belle II Software development
TruthSegmentPairRelationVarSet.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 CDCSegmentPair;
22 }
23 namespace TrackFindingCDC {
24
26 constexpr
27 static char const* const truthSegmentPairRelationVarNames[] = {
28 "truth_tanl",
29 "truth_z",
30 "truth_curv",
31 "truth_track_fraction",
32 "__weight__",
33 };
34
37 TrackingUtilities::VarNames<TrackingUtilities::Relation<const TrackingUtilities::CDCSegmentPair>> {
38
40 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
41 // at least tell cppcheck that everything is fine
42 // cppcheck-suppress duplInheritedMember
43 static const size_t nVars = TrackingUtilities::size(truthSegmentPairRelationVarNames);
44
46 static constexpr char const* getName(int iName)
47 {
48 return truthSegmentPairRelationVarNames[iName];
49 }
50 };
51
56 class TruthSegmentPairRelationVarSet : public TrackingUtilities::VarSet<TruthSegmentPairRelationVarNames> {
57
58 public:
61 };
62 }
64}
Class to compute floating point variables from an axial stereo segment pair relation which can be rec...
bool extract(const TrackingUtilities::Relation< const TrackingUtilities::CDCSegmentPair > *ptrSegmentPairRelation) final
Generate and assign the contained variables.
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent super...
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.
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.