 |
Belle II Software
release-05-02-19
|
12 #include <tracking/trackFindingCDC/varsets/VarSet.h>
13 #include <tracking/trackFindingCDC/varsets/VarNames.h>
20 namespace TrackFindingCDC {
25 static char const*
const truthSegmentVarNames[] = {
26 "segment_is_fake_truth",
27 "track_is_already_found_truth",
28 "segment_is_new_track_truth",
33 struct TruthSegmentVarNames :
public VarNames<CDCSegment2D> {
36 static const size_t nVars = size(truthSegmentVarNames);
39 static constexpr
char const*
getName(
int iName)
41 return truthSegmentVarNames[iName];
bool extract(const CDCSegment2D *segment) override
Generate and assign the contained variables.
void initialize() final
Require the Monte Carlo truth information at initialisation.
static constexpr char const * getName(int iName)
Getter for the name at the given index.
VarSet< TruthSegmentVarNames > Super
Type of the base class.
Abstract base class for different kinds of events.
static const size_t nVars
Number of variables to be generated.
A reconstructed sequence of two dimensional hits in one super layer.
Generic class that generates some named float values from a given object.
void beginEvent() final
Prepare the Monte Carlo truth information at start of the event.
Class to compute floating point variables from a segment which can be recorded as a flat TNtuple or s...