8#include <tracking/trackFindingCDC/display/RecoTrackColorMapping.h>
10#include <tracking/mcMatcher/TrackMatchLookUp.h>
12#include <tracking/dataobjects/RecoTrack.h>
15using namespace TrackFindingCDC;
17const std::string c_bkgRecoTrackColor =
"orange";
24 switch (matchingStatus) {
25 case MatchingStatus::c_matched:
26 B2DEBUG(28,
"Draw RecoTrack " << index <<
" as matched");
30 case MatchingStatus::c_background:
31 B2DEBUG(28,
"Draw RecoTrack " << index <<
" as background");
35 case MatchingStatus::c_clone:
36 B2DEBUG(28,
"Draw RecoTrack " << index <<
" as clone");
40 case MatchingStatus::c_ghost:
41 B2DEBUG(28,
"Draw RecoTrack " << index <<
" as ghost");
46 B2WARNING(
"Undefined matching status");
47 return c_bkgRecoTrackColor;
54 return "Matching status:\n green <-> match\n blue <-> clone\n red <-> ghost\n purple <-> background.";
60 const std::string mcRecoTrackStoreArrayName =
"MCRecoTracks";
66 switch (mcMatchInfo) {
67 case MCToPRMatchInfo::c_matched:
68 return isPrimary ?
"green" :
"limegreen";
71 case MCToPRMatchInfo::c_merged:
72 return isPrimary ?
"blue" :
"cornflowerblue";
75 case MCToPRMatchInfo::c_missing:
76 return isPrimary ?
"darkred" :
"crimson";
80 B2WARNING(
"Undefined matching status");
81 return c_bkgRecoTrackColor;
88 return "Matching status:\n green <-> match\n blue <-> merged\n red <-> missing.";
A Class to store the Monte Carlo particle information.
This is the Reconstruction Event-Data Model Track.
MatchingStatus
Enum for the matching status of this reco track (set by the matching modules in the tracking package)...
MatchingStatus getMatchingStatus() const
Return the matching status set by the TrackMatcher module.
TO * getRelatedTo(const std::string &name="", const std::string &namedRelation="") const
Get the object to which this object has a relation.
std::string map(int index, const RecoTrack &recoTrack) override
Function call to map a reco tracks object to a color.
std::string info() override
Short description of the coloring scheme.
std::string map(int index, const RecoTrack &recoTrack) override
Function call to map a reco tracks object to a color.
std::string info() override
Short description of the coloring scheme.
Class to provide convenient methods to look up matching information between pattern recognition and M...
MCToPRMatchInfo
Matching categories for the Monte Carlo tracks.
MCToPRMatchInfo getMCToPRMatchInfo(const RecoTrack &mcRecoTrack) const
Gets the matching category of Monte Carlo track.
bool isPrimaryParticle() const
Check if particle is a primary particle which was created by the generator (and not,...
Abstract base class for different kinds of events.