Belle II Software development
ZeroDriftLengthStrokeWidthMap Class Reference

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

#include <HitColorMapping.h>

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

Detailed Description

CDCHit to stroke width map highlighting the CDCHits with 0 drift length.

Definition at line 30 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 stroke width.

Reimplemented from Mapping< const CDCHit >.

Definition at line 59 of file HitColorMapping.cc.

60{
61 CDCWireHit wirehit(&hit, nullptr);
62 if (wirehit.getRefDriftLength() == 0) {
63 return "1";
64 } else {
65 return "0.2";
66 }
67}
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: