Belle II Software development
RecoTrackMatchingStatusColorMap Class Reference

Color mapping showing the match status of the pattern recognition track. More...

#include <RecoTrackColorMapping.h>

Inheritance diagram for RecoTrackMatchingStatusColorMap:
Mapping< T >

Public Member Functions

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.
 
virtual std::string map (int index, T &t)
 Main function returning an attribute value for an object at the given index.
 

Detailed Description

Color mapping showing the match status of the pattern recognition track.

Definition at line 28 of file RecoTrackColorMapping.h.

Member Function Documentation

◆ info()

std::string info ( )
overridevirtual

Short description of the coloring scheme.

Reimplemented from Mapping< T >.

Definition at line 52 of file RecoTrackColorMapping.cc.

53{
54 return "Matching status:\n green <-> match\n blue <-> clone\n red <-> ghost\n purple <-> background.";
55}

◆ map() [1/2]

std::string map ( int  index,
const RecoTrack recoTrack 
)
override

Function call to map a reco tracks object to a color.

Definition at line 19 of file RecoTrackColorMapping.cc.

21{
22 using MatchingStatus = RecoTrack::MatchingStatus;
23 MatchingStatus matchingStatus = recoTrack.getMatchingStatus();
24 switch (matchingStatus) {
25 case MatchingStatus::c_matched:
26 B2DEBUG(28, "Draw RecoTrack " << index << " as matched");
27 return "green";
28 break;
29
30 case MatchingStatus::c_background:
31 B2DEBUG(28, "Draw RecoTrack " << index << " as background");
32 return "purple";
33 break;
34
35 case MatchingStatus::c_clone:
36 B2DEBUG(28, "Draw RecoTrack " << index << " as clone");
37 return "blue";
38 break;
39
40 case MatchingStatus::c_ghost:
41 B2DEBUG(28, "Draw RecoTrack " << index << " as ghost");
42 return "red";
43 break;
44
45 default:
46 B2WARNING("Undefined matching status");
47 return c_bkgRecoTrackColor;
48 break;
49 }
50}
MatchingStatus
Enum for the matching status of this reco track (set by the matching modules in the tracking package)...
Definition: RecoTrack.h:105
MatchingStatus getMatchingStatus() const
Return the matching status set by the TrackMatcher module.
Definition: RecoTrack.h:829

◆ map() [2/2]

virtual std::string map ( int  index,
T &  t 
)
inlinevirtualinherited

The documentation for this class was generated from the following files: