 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/stereoHits/StereoHitTruthVarSet.h>
12 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
13 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
14 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
15 #include <tracking/trackFindingCDC/mclookup/CDCMCHitLookUp.h>
16 #include <tracking/trackFindingCDC/mclookup/CDCMCTrackLookUp.h>
19 using namespace TrackFindingCDC;
24 const CDCTrack* track = testPair->getFrom();
26 if (not testPair or not rlWireHit or not track)
return false;
33 ITrackType trackMCMatch = mcTrackLookup.
getMCTrackId(track);
37 if (trackMCMatch == INVALID_ITRACK) {
38 var<
named(
"track_is_fake_truth")>() =
true;
39 var<
named(
"truth_may_reversed")>() =
false;
42 var<
named(
"track_is_fake_truth")>() =
false;
43 var<
named(
"truth_may_reversed")>() = trackMCMatch == hitMCMatch;
44 var<
named(
"truth")>() = trackMCMatch == hitMCMatch and hitMCRLInfo == rlWireHit->
getRLInfo();
Class representing a sequence of three dimensional reconstructed hits.
const CDCWireHit & getWireHit() const
Getter for the wire hit associated with the oriented hit.
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
const CDCHit * getHit() const
Getter for the CDCHit pointer into the StoreArray.
ITrackType getMCTrackId(const ACDCHitCollection *ptrHits) const
Getter for the Monte Carlo track id matched to this collection of hits.
ITrackType getMCTrackId(const CDCHit *ptrHit) const
Returns the track id for the hit.
bool extract(const BaseStereoHitFilter::Object *testPair) override
Generate and assign the contained variables.
static const CDCMCTrackLookUp & getInstance()
Getter for the singletone instance.
ERightLeft getRLInfo() const
Getter for the right left passage information.
Abstract base class for different kinds of events.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Interface class to the Monte Carlo information for individual hits.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
static const CDCMCHitLookUp & getInstance()
Getter for the singletone instance.
constexpr static int named(const char *name)
Getter for the index from the name.
ERightLeft getRLInfo(const CDCHit *ptrHit) const
Returns the true right left passage information.
Float_t & var()
Reference getter for the value of the ith variable. Static version.
Specialisation of the lookup for the truth values of reconstructed tracks.
AObject Object
Type of the object to be analysed.