17 #include "TPolyMarker3D.h" 66 if (hitsVec.empty() || !hitAssnVec)
return;
71 using HitPosition = std::array<double, 6>;
72 std::map<int, std::vector<HitPosition>> colorToHitMap;
78 for (
const auto& spacePoint : hitsVec) {
84 const double* pos = spacePoint->XYZ();
85 const double* err = spacePoint->ErrXYZ();
87 colorToHitMap[chargeColorIdx].push_back(
88 HitPosition() = {{pos[0], pos[1], pos[2], err[2], err[2], err[5]}});
92 for (
auto& hitPair : colorToHitMap) {
94 view->
AddPolyMarker3D(hitPair.second.size(), hitPair.first, kFullDotLarge, 0.25);
95 for (
const auto&
hit : hitPair.second)
constexpr auto abs(T v)
Returns the absolute value of the argument.
int GetColor(double x) const
std::vector< double > fRecoQHigh
high edge of ADC values for drawing raw digits
std::vector< double > fRecoQLow
low edge of ADC values for drawing raw digits
The color scales used by the event display.
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
T get(std::string const &key) const
const evdb::ColorScale & CalQ(geo::SigType_t st) const
Detector simulation of raw signals on wires.
std::size_t color(std::string const &procname)
A collection of 3D drawable objects.
TPolyMarker3D & AddPolyMarker3D(int n, int c, int st, double sz)
Signal from collection planes.