Belle II Software development
SegmentFirstInTrackIdColorMap Class Reference

Segment to color map by the in track id of the first hit. More...

#include <SegmentColorMapping.h>

Inheritance diagram for SegmentFirstInTrackIdColorMap:
Mapping< T >

Public Member Functions

std::string map (int index, const CDCSegment2D &segment) override
 Function call to map a segments object from the local finder to a color.
 
virtual std::string map (int index, T &t)
 Main function returning an attribute value for an object at the given index.
 
virtual std::string info ()
 Informal string summarizing the translation from the object to the attribute value.
 

Detailed Description

Segment to color map by the in track id of the first hit.

Definition at line 53 of file SegmentColorMapping.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, SimHitPDGCodeColorMap, ConstantMapping< T >, CycleMapping< T >, CycleMapping< AObject >, RecoTrackMatchingStatusColorMap, and MCRecoTrackMatchingStatusColorMap.

Definition at line 37 of file Mapping.h.

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

◆ map() [1/2]

std::string map ( int  index,
const CDCSegment2D segment 
)
override

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

Definition at line 65 of file SegmentColorMapping.cc.

67{
69 Index firstInTrackId = mcSegmentLookUp.getFirstInTrackId(&segment);
70
71 if (firstInTrackId < 0) return c_bkgSegmentColor;
72 return inTrackIdToColor(firstInTrackId);
73}
Index getFirstInTrackId(const ACDCHitCollection *ptrHits) const
Getter for in track id for the first hit in the collection of hits which has the Monte Carlo track id...
Specialisation of the lookup for the truth values of two dimensional segments.
static const CDCMCSegment2DLookUp & getInstance()
Getter for the singletone instance.

◆ map() [2/2]

virtual std::string map ( int  index,
T &  t 
)
inlinevirtualinherited

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