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;
22 const CDCTrack* track = testPair->getFrom();
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.
AObject Object
Type of the object to be analysed.
bool extract(const BaseStereoHitFilter::Object *testPair) override
Generate and assign the contained variables.
static constexpr int named(const char *name)
Getter for the index from the name.
Float_t & var()
Reference getter for the value of the ith variable. Static version.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Abstract base class for different kinds of events.