Belle II Software development
CDCWireHitVarSet.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#include <tracking/trackFindingCDC/varsets/FixedSizeNamedFloatTuple.h>
13
14namespace Belle2 {
19 namespace TrackFindingCDC {
20 class CDCWireHit;
21
23 constexpr
24 static char const* const cdcWireHitVarNames[] = {
25 "adc",
26 "tot",
27 "tdc",
28 "slayer",
29 };
30
32 class CDCWireHitVarNames : public VarNames<CDCWireHit> {
33
34 public:
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(cdcWireHitVarNames);
40
42 constexpr
43 static char const* getName(int iName)
44 {
45 return cdcWireHitVarNames[iName];
46 }
47 };
48
53 class CDCWireHitVarSet : public VarSet<CDCWireHitVarNames> {
56
57 public:
59
60 void initialize() override;
61
63 bool extract(const CDCWireHit* object) final;
64
65 private:
66 };
67 }
69}
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)
Get the name of the column.
Var set used in the VXD-CDC-Merger for calculating the probability of a VXD-CDC-track match,...
void initialize() override
Receive signal before the start of the event processing.
bool extract(const CDCWireHit *object) final
Generate and assign the variables from the object.
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55
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.