Belle II Software development
SegmentColorMapping.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/trackFindingCDC/display/ColorMapping.h>
11#include <tracking/trackFindingCDC/display/Mapping.h>
12
13#include <vector>
14#include <string>
15
16namespace Belle2 {
21 namespace TrackFindingCDC {
22 class CDCSegment2D;
23
25 using SegmentColorMapping = Mapping<const CDCSegment2D>;
26
28 using SegmentListColorsColorMap = DefaultColorCycleMapping<const CDCSegment2D>;
29
32
33 public:
36
38 std::string map(int index, const CDCSegment2D& segment) override;
39
40 private:
42 std::vector<std::string> m_colors;
43 };
44
47 public:
49 std::string map(int index, const CDCSegment2D& segment) override;
50 };
51
54 public:
56 std::string map(int index, const CDCSegment2D& segment) override;
57 };
58
61 public:
63 std::string map(int index, const CDCSegment2D& segment) override;
64 };
65
68 public:
70 std::string map(int index, const CDCSegment2D& segment) override;
71 };
72
75 public:
77 std::string map(int index, const CDCSegment2D& segment) override;
78 };
79
80 }
82}
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Interface defining a mapping of objects to attribute values e.g. a color.
Definition: Mapping.h:23
Segment to color map based on the forward or backward alignment relative to the match Monte Carlo tra...
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Segment to color map by the in track id of the first hit.
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Segment to color map by the number of passed superlayers of the first hit.
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Segment to color map by the in track id of the last hit.
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Segment to color map by the number of passed superlayers of the last hit.
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Segment to color map based on the matched MCTrackId.
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
std::vector< std::string > m_colors
List of colors to be cycled through.
Abstract base class for different kinds of events.