10#include <tracking/trackFindingCDC/varsets/VarSet.h>
11#include <tracking/trackFindingCDC/varsets/VarNames.h>
18 namespace TrackFindingCDC {
23 static char const*
const truthSegmentVarNames[] = {
24 "segment_is_fake_truth",
25 "track_is_already_found_truth",
26 "segment_is_new_track_truth",
37 static const size_t nVars = size(truthSegmentVarNames);
40 static constexpr char const*
getName(
int iName)
42 return truthSegmentVarNames[iName];
A reconstructed sequence of two dimensional hits in one super layer.
Class to compute floating point variables from a segment which can be recorded as a flat TNtuple or s...
void initialize() final
Require the Monte Carlo truth information at initialisation.
bool extract(const CDCSegment2D *segment) override
Generate and assign the contained variables.
void beginEvent() final
Prepare the Monte Carlo truth information at start of the event.
VarSet< TruthSegmentVarNames > Super
Type of the base class.
Class that specifies the names of the variables.
Generic class that generates some named float values from a given object.
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.