evdb_tool::SpacePoint3DDrawerStandard::SpacePoint3DDrawerStandard |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
explicit |
evdb_tool::SpacePoint3DDrawerStandard::~SpacePoint3DDrawerStandard |
( |
| ) |
|
Implements evdb_tool::ISpacePoints3D.
Definition at line 53 of file SpacePoint3DDrawerStandard_tool.cc.
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
The documentation for this class was generated from the following file: