8#include <tracking/trackFindingCDC/filters/stereoHits/StereoHitTruthVarSet.h>
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
11#include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
12#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
13#include <tracking/trackFindingCDC/mclookup/CDCMCHitLookUp.h>
14#include <tracking/trackFindingCDC/mclookup/CDCMCTrackLookUp.h>
17using namespace TrackFindingCDC;
24 if (not testPair or not rlWireHit or not track)
return false;
31 ITrackType trackMCMatch = mcTrackLookup.
getMCTrackId(track);
35 if (trackMCMatch == INVALID_ITRACK) {
36 var<
named(
"track_is_fake_truth")>() =
true;
37 var<
named(
"truth_may_reversed")>() =
false;
40 var<
named(
"track_is_fake_truth")>() =
false;
41 var<
named(
"truth_may_reversed")>() = trackMCMatch == hitMCMatch;
42 var<
named(
"truth")>() = trackMCMatch == hitMCMatch and hitMCRLInfo == rlWireHit->
getRLInfo();
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
ITrackType getMCTrackId(const ACDCHitCollection *ptrHits) const
Getter for the Monte Carlo track id matched to this collection of hits.
Interface class to the Monte Carlo information for individual hits.
ITrackType getMCTrackId(const CDCHit *ptrHit) const
Returns the track id for the hit.
static const CDCMCHitLookUp & getInstance()
Getter for the singletone instance.
ERightLeft getRLInfo(const CDCHit *ptrHit) const
Returns the true right left passage information.
Specialisation of the lookup for the truth values of reconstructed tracks.
static const CDCMCTrackLookUp & getInstance()
Getter for the singletone instance.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
const CDCWireHit & getWireHit() const
Getter for the wire hit associated with the oriented hit.
ERightLeft getRLInfo() const
Getter for the right left passage information.
Class representing a sequence of three dimensional reconstructed hits.
const CDCHit * getHit() const
Getter for the CDCHit pointer into the StoreArray.
WeightedRelation< CDCTrack, const CDCRLWireHit > Object
bool extract(const BaseStereoHitFilter::Object *testPair) override
Generate and assign the contained variables.
static constexpr int named(const char *name)
From * getFrom() const
Getter for the pointer to the from side object.
To * getTo() const
Getter for the pointer to the to side object.
Abstract base class for different kinds of events.