Belle II Software development
HitColorMapping.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/Mapping.h>
11
12#include <tracking/trackFindingCDC/rootification/StoreWrappedObjPtr.h>
13
14#include <map>
15#include <vector>
16#include <string>
17
18namespace Belle2 {
23 class CDCHit;
24
25 namespace TrackFindingCDC {
26
27 class CDCWireHit;
28
30 class ZeroDriftLengthStrokeWidthMap : public Mapping<const CDCHit> {
31 public:
33 std::string map(int index, const CDCHit& hit) override;
34 };
35
38
41 public:
43 std::string map(int index, const CDCHit& hit) override;
44 };
45
48 public:
51
53 std::string map(int index, const CDCHit& hit) override;
54
55 private:
58 };
59
61 class RLColorMap : public HitColorMapping {
62 public:
64 std::string map(int index, const CDCHit& hit) override;
65
67 std::string info() override;
68 };
69
72 public:
74 std::string map(int index, const CDCHit& hit) override;
75
77 std::string info() override;
78 };
79
82 public:
84 std::string map(int index, const CDCHit& hit) override;
85
87 std::string info() override;
88 };
89
92 public:
94 std::string map(int index, const CDCHit& hit) override;
95 };
96
99 public:
101 std::string map(int index, const CDCHit& hit) override;
102
104 std::string timeOfFlightToColor(const double timeOfFlight);
105 };
106
109 public:
111 std::string map(int index, const CDCHit& hit) override;
112 };
113
116 public:
119
121 std::string map(int index, const CDCHit& hit) override;
122
124 std::string info() override;
125 private:
127 std::vector<std::string> m_colors;
128
131
136 std::map<int, std::string> m_usedColors;
137 };
138
141 public:
143 std::string map(int index, const CDCHit& hit) override;
144
146 std::string info() override;
147 };
148
151 public:
153 std::string map(int index, const CDCHit& hit) override;
154
156 std::string info() override;
157 };
158
161 public:
163 std::string map(int index, const CDCHit& hit) override;
164
166 std::string info() override;
167 };
168
171 public:
173 std::string map(int index, const CDCHit& hit) override;
174 };
175
178 public:
180 std::string map(int index, const CDCHit& hit) override;
181 };
182 }
184}
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
Definition: CDCHit.h:40
CDCHit to color map by their assoziated CDCSimHit::getBackgroundTag property.
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.
CDCHit to color map by the associated MCParticle::getPDG()
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 pdg codes to colors.
CDCHit to color map by their assoziated MCParticle::getArrayId() property.
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 col...
std::vector< std::string > m_colors
List of colors to be cycled.
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.
MCParticleColorMap()
Constructor setting up a Monte Carlo id to color map which is continously filled as new during the ev...
CDCHit to color map by the isPrimary information as well as the secondary process type in case the pa...
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 seconday process codes to colors.
CDCHit to color map by their Monte Carlo segment id.
std::string map(int index, const CDCHit &hit) override
Function call to map the CDCHit id and object to a color.
Interface defining a mapping of objects to attribute values e.g. a color.
Definition: Mapping.h:23
Segment to color map by the number of passed loops.
std::string map(int index, const CDCHit &hit) override
Function call to map a segments object from the local finder to a color.
CDCHit to color map by their assoziated CDCSimHit::getPosFlag property.
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::getPosFlag variable to colors.
CDCHit to color map by their local right left passage information from Monte Carlo truth.
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 right left passage variable to colors.
CDCHit to color map indicating the reassignment to a different MCParticle.
std::string map(int index, const CDCHit &hit) override
Function call to map the CDCHit id and object to a color.
CDCHit to color map by CDCSimHit::getBackgroundTag().
std::string map(int index, const CDCHit &hit) override
Function call to map the CDCHit id and object to a color.
CDCHit to color map by the associated CDCSimHit::getPDG().
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 pdg codes to colors.
This class is for convenience access and registration of objects, that are stored inside the StoreWra...
CDCHit to color map by their assoziated CDCSimHit::getFlightTime.
std::string timeOfFlightToColor(const double timeOfFlight)
Translates the given floating point time of flight to a color.
std::string map(int index, const CDCHit &hit) override
Function call to map the CDCHit id and object to a color.
CDCHit to color map highlighting the CDCHits that posses the do not use flag.
TakenFlagColorMap()
Constructor checking if the CDCWireHits caring the taken flag are accessable.
StoreWrappedObjPtr< std::vector< CDCWireHit > > m_storedWireHits
Memory of the handle to the CDCWireHits on the DataStore.
std::string map(int index, const CDCHit &hit) override
Function call to map the CDCHit id and object to a color.
CDCHit to color map highlighting the CDCHits with 0 drift length.
std::string map(int index, const CDCHit &hit) override
Function call to map the CDCHit id and object to a color.
CDCHit to stroke width map highlighting the CDCHits with 0 drift length.
std::string map(int index, const CDCHit &hit) override
Function call to map the CDCHit id and object to a stroke width.
Abstract base class for different kinds of events.