Belle II Software development
Mapping< T > Class Template Reference

Interface defining a mapping of objects to attribute values e.g. a color. More...

#include <Mapping.h>

Inheritance diagram for Mapping< T >:
ConstantMapping< T > CycleMapping< T > DefaultColorCycleMapping< const RecoTrack > DefaultColorCycleMapping< const CDCSegment2D >

Public Member Functions

virtual ~Mapping ()=default
 Destructor of interfaces should be virtual.
 
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

template<class T>
class Belle2::TrackFindingCDC::Mapping< T >

Interface defining a mapping of objects to attribute values e.g. a color.

Definition at line 23 of file Mapping.h.

Member Function Documentation

◆ info()

template<class T>
virtual std::string info ( )
inlinevirtual

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

Reimplemented in BackgroundTagColorMap, ConstantMapping< T >, CycleMapping< T >, CycleMapping< AObject >, CycleMapping< AObject >, MCParticleColorMap, MCPDGCodeColorMap, MCPrimaryColorMap, MCRecoTrackMatchingStatusColorMap, PosFlagColorMap, RecoTrackMatchingStatusColorMap, RLColorMap, and SimHitPDGCodeColorMap.

Definition at line 37 of file Mapping.h.

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

◆ map()


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