16 #include "TPolyMarker3D.h" 63 using HitPosition = std::array<double, 6>;
64 std::map<int, std::vector<HitPosition>> colorToHitMap;
66 float minHitChiSquare(0.);
67 float maxHitChiSquare(2.);
69 (maxHitChiSquare - minHitChiSquare));
71 for (
const auto& spacePoint : hitsVec) {
72 const double* pos = spacePoint->XYZ();
73 const double* err = spacePoint->ErrXYZ();
75 int chargeColorIdx(0);
76 float spacePointChiSq(spacePoint->Chisq());
78 float hitChiSq = std::max(minHitChiSquare, std::min(maxHitChiSquare, spacePointChiSq));
84 colorToHitMap[chargeColorIdx].push_back(
85 HitPosition() = {{pos[0], pos[1], pos[2], err[3], err[3], err[5]}});
88 for (
auto& hitPair : colorToHitMap) {
90 view->
AddPolyMarker3D(hitPair.second.size(), hitPair.first, kFullDotLarge, 0.17);
91 for (
const auto&
hit : hitPair.second)
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.
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.