Belle II Software  release-05-02-19
SegmentColorMapping.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: dschneider, Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/display/ColorMapping.h>
13 #include <tracking/trackFindingCDC/display/Mapping.h>
14 
15 #include <vector>
16 #include <string>
17 
18 namespace Belle2 {
23  namespace TrackFindingCDC {
24  class CDCSegment2D;
25 
27  using SegmentColorMapping = Mapping<const CDCSegment2D>;
28 
30  using SegmentListColorsColorMap = DefaultColorCycleMapping<const CDCSegment2D>;
31 
33  class SegmentMCTrackIdColorMap : public SegmentColorMapping {
34 
35  public:
38 
40  std::string map(int index, const CDCSegment2D& segment) override;
41 
42  private:
44  std::vector<std::string> m_colors;
45  };
46 
49  public:
51  std::string map(int index, const CDCSegment2D& segment) override;
52  };
53 
56  public:
58  std::string map(int index, const CDCSegment2D& segment) override;
59  };
60 
63  public:
65  std::string map(int index, const CDCSegment2D& segment) override;
66  };
67 
70  public:
72  std::string map(int index, const CDCSegment2D& segment) override;
73  };
74 
77  public:
79  std::string map(int index, const CDCSegment2D& segment) override;
80  };
81 
82  }
84 }
Belle2::TrackFindingCDC::SegmentMCTrackIdColorMap::m_colors
std::vector< std::string > m_colors
List of colors to be cycled through.
Definition: SegmentColorMapping.h:52
Belle2::TrackFindingCDC::SegmentFirstNPassedSuperLayersColorMap
Segment to color map by the number of passed superlayers of the first hit.
Definition: SegmentColorMapping.h:77
Belle2::TrackFindingCDC::SegmentLastInTrackIdColorMap
Segment to color map by the in track id of the last hit.
Definition: SegmentColorMapping.h:70
Belle2::TrackFindingCDC::SegmentLastNPassedSuperLayersColorMap
Segment to color map by the number of passed superlayers of the last hit.
Definition: SegmentColorMapping.h:84
Belle2::TrackFindingCDC::Mapping
Interface defining a mapping of objects to attribute values e.g. a color.
Definition: Mapping.h:33
Belle2::TrackFindingCDC::SegmentMCTrackIdColorMap::SegmentMCTrackIdColorMap
SegmentMCTrackIdColorMap()
Constructor.
Definition: SegmentColorMapping.cc:30
Belle2::TrackFindingCDC::SegmentMCTrackIdColorMap::map
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Definition: SegmentColorMapping.cc:35
Belle2::TrackFindingCDC::SegmentFBInfoColorMap::map
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Definition: SegmentColorMapping.cc:49
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SegmentFBInfoColorMap
Segment to color map based on the forward or backward alignment relative to the match Monte Carlo tra...
Definition: SegmentColorMapping.h:56
Belle2::TrackFindingCDC::SegmentLastInTrackIdColorMap::map
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Definition: SegmentColorMapping.cc:77
Belle2::TrackFindingCDC::SegmentLastNPassedSuperLayersColorMap::map
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Definition: SegmentColorMapping.cc:97
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::TrackFindingCDC::SegmentFirstInTrackIdColorMap::map
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Definition: SegmentColorMapping.cc:67
Belle2::TrackFindingCDC::SegmentFirstInTrackIdColorMap
Segment to color map by the in track id of the first hit.
Definition: SegmentColorMapping.h:63
Belle2::TrackFindingCDC::SegmentFirstNPassedSuperLayersColorMap::map
std::string map(int index, const CDCSegment2D &segment) override
Function call to map a segments object from the local finder to a color.
Definition: SegmentColorMapping.cc:87