 |
Belle II Software
release-05-02-19
|
12 #include <tracking/trackFindingCDC/varsets/VarSet.h>
13 #include <tracking/trackFindingCDC/varsets/VarNames.h>
20 namespace TrackFindingCDC {
21 class CDCWireHitCluster;
25 static char const*
const bkgTruthClusterNames[] = {
26 "n_background_hits_truth",
27 "background_fraction_truth",
33 struct BkgTruthClusterVarNames :
public VarNames<CDCWireHitCluster> {
36 static const size_t nVars = size(bkgTruthClusterNames);
39 static constexpr
char const*
getName(
int iName)
41 return bkgTruthClusterNames[iName];
VarSet< BkgTruthClusterVarNames > Super
Type of the base class.
Class to compute floating point variables from a wire hit cluster which can be recorded as a flat TNt...
Abstract base class for different kinds of events.
void initialize() override
Signal the initialisation of the event processing - requires the Monte Carlo information.
static constexpr char const * getName(int iName)
Getter for the name at the given index.
void beginEvent() override
Signal the beginning of a new event - loads the Monte Carlo information.
An aggregation of CDCWireHits.
Generic class that generates some named float values from a given object.
bool extract(const CDCWireHitCluster *ptrCluster) final
Generate and assign the contained variables.
static const size_t nVars
Number of variables to be generated.