12 #include "canvas/Persistency/Common/FindManyP.h" 14 #include "TPolyMarker3D.h" 31 const art::FindManyP<recob::Hit>*
58 const art::FindManyP<recob::Hit>* )
const 70 std::map<int, std::vector<const recob::SpacePoint*> > spmap;
73 for(
auto &pspt : spts) {
84 if (pspt->Chisq() < -100.) spcolor = 16;
88 spcolor = 100 - 2.5 * pspt->Chisq();
90 if(spcolor < 51) spcolor = 51;
91 if(spcolor > 100) spcolor = 100;
96 spmap[spcolor].push_back(&*pspt);
103 for(
auto const icolor : spmap)
105 int spcolor = icolor.first;
106 const std::vector<const recob::SpacePoint*>& psps = icolor.second;
110 TPolyMarker3D&
pm = view->AddPolyMarker3D(psps.size(), spcolor, marker,
size);
112 for(
size_t s = 0;
s < psps.size(); ++
s)
116 const double *xyz = spt.
XYZ();
117 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.
std::size_t color(std::string const &procname)
const Double32_t * XYZ() const