Belle II Software development
|
CDCHit to color map by their associated MCParticle::getArrayId() property. More...
#include <HitColorMapping.h>
Public Member Functions | |
MCParticleColorMap () | |
Constructor setting up a Monte Carlo id to color map which is continuously 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. | |
CDCHit to color map by their associated MCParticle::getArrayId() property.
Definition at line 115 of file HitColorMapping.h.
Constructor setting up a Monte Carlo id to color map which is continuously filled as new during the event.
Definition at line 238 of file HitColorMapping.cc.
|
overridevirtual |
Informal string summarizing the translation from CDCSimHit::getBackgroundTag.
Reimplemented from Mapping< const CDCHit >.
Definition at line 245 of file HitColorMapping.cc.
|
overridevirtual |
Function call to map the CDCHit id and object to a color.
Reimplemented from Mapping< const CDCHit >.
Definition at line 254 of file HitColorMapping.cc.
|
private |
List of colors to be cycled.
Definition at line 127 of file HitColorMapping.h.
|
private |
Index of the color to be used next.
Definition at line 130 of file HitColorMapping.h.
|
private |
Mapping of the already used colors by the MCParticle::getArrayId to map later CDCHits to the same color.
Definition at line 136 of file HitColorMapping.h.