16 #include "TPolyMarker3D.h" 70 std::map<int, std::vector<const recob::SpacePoint*>> spmap;
73 for (
auto& pspt : spts) {
84 if (pspt->Chisq() < -100.) spcolor = 16;
87 spcolor = 100 - 2.5 * pspt->Chisq();
89 if (spcolor < 51) spcolor = 51;
90 if (spcolor > 100) spcolor = 100;
96 spmap[spcolor].push_back(&*pspt);
103 for (
auto const& [spcolor, psps] : spmap) {
109 for (
size_t s = 0; s < psps.size(); ++s) {
112 const double* xyz = spt.
XYZ();
113 pm.SetPoint(s, xyz[0], xyz[1], xyz[2]);
int fColorSpacePointsByChisq
Generate space point colors by chisquare?
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 Double32_t * XYZ() const
std::size_t color(std::string const &procname)
A collection of 3D drawable objects.
TPolyMarker3D & AddPolyMarker3D(int n, int c, int st, double sz)