Belle II Software  release-08-01-10
MCParticleColorMap Class Reference

CDCHit to color map by their assoziated MCParticle::getArrayId() property. More...

#include <HitColorMapping.h>

Inheritance diagram for MCParticleColorMap:
Collaboration diagram for MCParticleColorMap:

Public Member Functions

 MCParticleColorMap ()
 Constructor setting up a Monte Carlo id to color map which is continously filled as new during the event.
 
std::string map (int index, const CDCHit &hit) override
 Function call to map the CDCHit id and object to a color.
 
std::string info () override
 Informal string summarizing the translation from CDCSimHit::getBackgroundTag.
 

Private Attributes

std::vector< std::string > m_colors
 List of colors to be cycled.
 
int m_iColor
 Index of the color to be used next.
 
std::map< int, std::string > m_usedColors
 Mapping of the already used colors by the MCParticle::getArrayId to map later CDCHits to the same color.
 

Detailed Description

CDCHit to color map by their assoziated MCParticle::getArrayId() property.

Definition at line 115 of file HitColorMapping.h.


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