10 #include "nuevdb/EventDisplayBase/View3D.h"
12 #include "art/Framework/Services/Registry/ServiceHandle.h"
13 #include "art/Utilities/ToolMacros.h"
14 #include "canvas/Persistency/Common/FindManyP.h"
16 #include "TPolyMarker3D.h"
33 const art::FindManyP<recob::Hit>*
60 const art::FindManyP<recob::Hit>* )
const
64 art::ServiceHandle<evd::RecoDrawingOptions const> recoOpt;
72 std::map<int, std::vector<const recob::SpacePoint*> > spmap;
75 for(
auto &pspt : spts) {
86 if (pspt->Chisq() < -100.) spcolor = 16;
88 if(recoOpt->fColorSpacePointsByChisq)
90 spcolor = 100 - 2.5 * pspt->Chisq();
92 if(spcolor < 51) spcolor = 51;
93 if(spcolor > 100) spcolor = 100;
98 spmap[spcolor].push_back(&*pspt);
105 for(
auto const icolor : spmap)
107 int spcolor = icolor.first;
108 const std::vector<const recob::SpacePoint*>& psps = icolor.second;
112 TPolyMarker3D& pm = view->AddPolyMarker3D(psps.size(), spcolor, marker,
size);
114 for(
size_t s = 0;
s < psps.size(); ++
s)
118 const double *xyz = spt.
XYZ();
119 pm.SetPoint(
s, xyz[0], xyz[1], xyz[2]);
std::size_t size(FixedBins< T, C > const &) noexcept
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
const Double32_t * XYZ() const
then echo File list $list not found else cat $list while read file do echo $file sed s