Belle II Software development
HitGapTrackRelationVarSet.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 CDCTrack;
22 }
23 namespace TrackFindingCDC {
24
26 constexpr
27 static char const* const hitGapTrackRelationVarNames[] = {
28 "delta_hit_pos_phi",
29 "delta_hit_mom_phi",
30 "delta_hit_alpha",
31
32 "delta_hit_z",
33 "hit_distance",
34 "hit_long_distance",
35 "delta_hit_distance",
36
37 "from_hit_forward",
38 "to_hit_forward",
39 "hit_forward",
40 "hit_ptolemy",
41 };
42
45 TrackingUtilities::VarNames<TrackingUtilities::Relation<const TrackingUtilities::CDCTrack> > {
46
48 // we shouldn't use public member variables but we do want to rewrite all related code using setters/getters
49 // at least tell cppcheck that everything is fine
50 // cppcheck-suppress duplInheritedMember
51 static const size_t nVars = TrackingUtilities::size(hitGapTrackRelationVarNames);
52
54 static constexpr char const* getName(int iName)
55 {
56 return hitGapTrackRelationVarNames[iName];
57 }
58 };
59
64 class HitGapTrackRelationVarSet : public TrackingUtilities::VarSet<HitGapTrackRelationVarNames> {
65
66 public:
69 };
70 }
72}
Class to compute floating point variables from a track relation which can be recorded as a flat TNtup...
bool extract(const TrackingUtilities::Relation< const TrackingUtilities::CDCTrack > *ptrTrackRelation) final
Generate and assign the contained variables.
Class representing a sequence of three dimensional reconstructed hits.
Definition CDCTrack.h:39
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.
Class vehicle 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.