 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/varsets/VarSet.h>
13 #include <tracking/trackFindingCDC/varsets/VarNames.h>
15 #include <framework/dataobjects/EventMetaData.h>
16 #include <framework/datastore/StoreObjPtr.h>
23 namespace TrackFindingCDC {
27 constexpr
static char const*
const bestMatchedTruthVarNames[] = {
31 "truth_track_is_fake",
32 "truth_track_is_matched",
34 "truth_track_is_clone",
41 struct BestMatchedTruthVarNames :
public VarNames<CDCTrack> {
44 static const size_t nVars = size(bestMatchedTruthVarNames);
47 static constexpr
char const*
getName(
int iName)
49 return bestMatchedTruthVarNames[iName];
StoreObjPtr< EventMetaData > m_eventMetaData
Pointer to the store array object with the EventMetaData.
void beginEvent() final
Prepare the Monte Carlo truth information at start of the event.
Class representing a sequence of three dimensional reconstructed hits.
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.
Abstract base class for different kinds of events.
Class to compute floating point variables from a track which can be recorded as a flat TNtuple or ser...
Type-safe access to single objects in the data store.
static const size_t nVars
Number of variables to be generated.
Generic class that generates some named float values from a given object.
bool extract(const CDCTrack *ptrCDCTrack) override
Generate and assign the contained variables.