Belle II Software development
SegmentLastNPassedSuperLayersColorMap Class Reference

Segment to color map by the number of passed superlayers of the last hit. More...

#include <SegmentColorMapping.h>

Inheritance diagram for SegmentLastNPassedSuperLayersColorMap:
Mapping< const TrackingUtilities::CDCSegment2D >

Public Member Functions

std::string map (int index, const TrackingUtilities::CDCSegment2D &segment) override
 Function call to map a segments object from the local finder to a color.
 
virtual std::string info ()
 Informal string summarizing the translation from the object to the attribute value.
 
virtual std::string info ()
 Informal string summarizing the translation from the object to the attribute value.
 

Detailed Description

Segment to color map by the number of passed superlayers of the last hit.

Definition at line 76 of file SegmentColorMapping.h.

Member Function Documentation

◆ info() [1/2]

virtual std::string info ( )
inlinevirtualinherited

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

Definition at line 37 of file Mapping.h.

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

◆ info() [2/2]

virtual std::string info ( )
inlinevirtualinherited

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

Definition at line 37 of file Mapping.h.

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

◆ map()

std::string map ( int index,
const TrackingUtilities::CDCSegment2D & segment )
overridevirtual

Function call to map a segments object from the local finder to a color.

Reimplemented from Mapping< const TrackingUtilities::CDCSegment2D >.

Definition at line 96 of file SegmentColorMapping.cc.

98{
99 const CDCMCSegment2DLookUp& mcSegmentLookUp = CDCMCSegment2DLookUp::getInstance();
100 Index lastNPassedSuperLayers = mcSegmentLookUp.getLastNPassedSuperLayers(&segment);
101
102 if (lastNPassedSuperLayers < 0) return c_bkgSegmentColor;
103 return inTrackIdToColor(lastNPassedSuperLayers);
104}
TrackingUtilities::Index getLastNPassedSuperLayers(const ACDCHitCollection *ptrHits) const
Getter for number of passed superlayer till the last hit the collection of hits which has the Monte C...
static const CDCMCSegment2DLookUp & getInstance()
Getter for the singletone instance.

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