Belle II Software development
RLColorMap Class Reference

CDCHit to color map by their local right left passage information from Monte Carlo truth. More...

#include <HitColorMapping.h>

Inheritance diagram for RLColorMap:
Mapping< const CDCHit >

Public Member Functions

std::string map (int index, const CDCHit &hit) override
 Function call to map the CDCHit id and object to a color.
 
std::string info () override
 Informal string summarizing the translation from right left passage variable to colors.
 

Detailed Description

CDCHit to color map by their local right left passage information from Monte Carlo truth.

Definition at line 61 of file HitColorMapping.h.

Member Function Documentation

◆ info()

std::string info ( )
overridevirtual

Informal string summarizing the translation from right left passage variable to colors.

Reimplemented from Mapping< const CDCHit >.

Definition at line 105 of file HitColorMapping.cc.

106{
107 return "Local right left passage variable: green <-> right, red <-> left, orange <-> not determinable.\n";
108}

◆ map()

std::string map ( int  index,
const CDCHit hit 
)
overridevirtual

Function call to map the CDCHit id and object to a color.

Reimplemented from Mapping< const CDCHit >.

Definition at line 92 of file HitColorMapping.cc.

93{
94 const CDCMCHitLookUp& mcHitLookUp = mcHitLookUp.getInstance();
95 short int rlInfo = mcHitLookUp.getRLInfo(&hit);
96 if (rlInfo == 1) {
97 return ("green");
98 } else if (rlInfo == -1) {
99 return ("red");
100 } else {
101 return (c_bkgHitColor);
102 }
103}
Interface class to the Monte Carlo information for individual hits.
static const CDCMCHitLookUp & getInstance()
Getter for the singletone instance.
ERightLeft getRLInfo(const CDCHit *ptrHit) const
Returns the true right left passage information.

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