 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/display/RecoTrackColorMapping.h>
12 #include <tracking/mcMatcher/TrackMatchLookUp.h>
14 #include <tracking/dataobjects/RecoTrack.h>
17 using namespace TrackFindingCDC;
19 const std::string c_bkgRecoTrackColor =
"orange";
26 switch (matchingStatus) {
27 case MatchingStatus::c_matched:
28 B2DEBUG(100,
"Draw RecoTrack " << index <<
" as matched");
32 case MatchingStatus::c_background:
33 B2DEBUG(100,
"Draw RecoTrack " << index <<
" as background");
37 case MatchingStatus::c_clone:
38 B2DEBUG(100,
"Draw RecoTrack " << index <<
" as clone");
42 case MatchingStatus::c_ghost:
43 B2DEBUG(100,
"Draw RecoTrack " << index <<
" as ghost");
48 B2WARNING(
"Undefined matching status");
49 return c_bkgRecoTrackColor;
56 return "Matching status:\n green <-> match\n blue <-> clone\n red <-> ghost\n purple <-> background.";
62 const std::string mcRecoTrackStoreArrayName =
"MCRecoTracks";
68 switch (mcMatchInfo) {
69 case MCToPRMatchInfo::c_Matched:
70 return isPrimary ?
"green" :
"limegreen";
73 case MCToPRMatchInfo::c_Merged:
74 return isPrimary ?
"blue" :
"cornflowerblue";
77 case MCToPRMatchInfo::c_Missing:
78 return isPrimary ?
"darkred" :
"crimson";
82 B2WARNING(
"Undefined matching status");
83 return c_bkgRecoTrackColor;
90 return "Matching status:\n green <-> match\n blue <-> merged\n red <-> missing.";
MCToPRMatchInfo
Matching categories for the Monte Carlo tracks.
TO * getRelatedTo(const std::string &name="", const std::string &namedRelation="") const
Get the object to which this object has a relation.
Class to provide convenient methods to look up matching information between pattern recognition and M...
MatchingStatus getMatchingStatus() const
Return the matching status set by the TrackMatcher module.
bool isPrimaryParticle() const
Check if particle is a primary particle which was created by the generator (and not,...
This is the Reconstruction Event-Data Model Track.
std::string info() override
Short description of the coloring scheme.
Abstract base class for different kinds of events.
MCToPRMatchInfo getMCToPRMatchInfo(const RecoTrack &mcRecoTrack) const
Gets the matching category of Monte Carlo track.
std::string map(int index, const RecoTrack &recoTrack) override
Function call to map a reco tracks object to a color.
A Class to store the Monte Carlo particle information.
std::string info() override
Short description of the coloring scheme.
MatchingStatus
Enum for the matching status of this reco track (set by the matching modules in the tracking package)...
std::string map(int index, const RecoTrack &recoTrack) override
Function call to map a reco tracks object to a color.