Belle II Software  release-05-02-19
RecoTrackColorMapping.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: 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 namespace Belle2 {
20  class RecoTrack;
21  namespace TrackFindingCDC {
22 
24  using RecoTrackColorMapping = Mapping<const RecoTrack>;
25 
27  using RecoTrackListColorsColorMap = DefaultColorCycleMapping<const RecoTrack>;
28 
30  class RecoTrackMatchingStatusColorMap : public RecoTrackColorMapping {
31 
32  public:
34  std::string map(int index, const RecoTrack& recoTrack) override;
35 
37  std::string info() override;
38  };
39 
42 
43  public:
45  std::string map(int index, const RecoTrack& recoTrack) override;
46 
48  std::string info() override;
49  };
50  }
52 }
Belle2::TrackFindingCDC::Mapping
Interface defining a mapping of objects to attribute values e.g. a color.
Definition: Mapping.h:33
Belle2::RecoTrack
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:78
Belle2::TrackFindingCDC::MCRecoTrackMatchingStatusColorMap::info
std::string info() override
Short description of the coloring scheme.
Definition: RecoTrackColorMapping.cc:88
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::MCRecoTrackMatchingStatusColorMap
Color mapping showing the match status of the monte carlo track.
Definition: RecoTrackColorMapping.h:49
Belle2::TrackFindingCDC::MCRecoTrackMatchingStatusColorMap::map
std::string map(int index, const RecoTrack &recoTrack) override
Function call to map a reco tracks object to a color.
Definition: RecoTrackColorMapping.cc:59
Belle2::TrackFindingCDC::RecoTrackMatchingStatusColorMap::info
std::string info() override
Short description of the coloring scheme.
Definition: RecoTrackColorMapping.cc:54
Belle2::TrackFindingCDC::RecoTrackMatchingStatusColorMap::map
std::string map(int index, const RecoTrack &recoTrack) override
Function call to map a reco tracks object to a color.
Definition: RecoTrackColorMapping.cc:21