Belle II Software development
ZeroDriftLengthColorMap Class Reference

CDCHit to color map highlighting the CDCHits with 0 drift length. More...

#include <HitColorMapping.h>

Inheritance diagram for ZeroDriftLengthColorMap:
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.
 
virtual std::string info ()
 Informal string summarizing the translation from the object to the attribute value.
 

Detailed Description

CDCHit to color map highlighting the CDCHits with 0 drift length.

Definition at line 40 of file HitColorMapping.h.

Member Function Documentation

◆ info()

virtual std::string info ( )
inlinevirtualinherited

Informal string summarizing the translation from the object to the attribute value.

Reimplemented in RLColorMap, PosFlagColorMap, BackgroundTagColorMap, MCParticleColorMap, MCPDGCodeColorMap, MCPrimaryColorMap, and SimHitPDGCodeColorMap.

Definition at line 37 of file Mapping.h.

38 {
39 return "(no info available)\n";
40 }

◆ 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 49 of file HitColorMapping.cc.

50{
51 CDCWireHit wirehit(&hit);
52 if (wirehit.getRefDriftLength() == 0) {
53 return "red";
54 } else {
55 return c_bkgHitColor;
56 }
57}
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55

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