evdb_tool::SpacePoint3DDrawerStandard::SpacePoint3DDrawerStandard |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
explicit |
evdb_tool::SpacePoint3DDrawerStandard::~SpacePoint3DDrawerStandard |
( |
| ) |
|
void evdb_tool::SpacePoint3DDrawerStandard::Draw |
( |
const std::vector< art::Ptr< recob::SpacePoint >> & |
spts, |
|
|
evdb::View3D * |
view, |
|
|
int |
color, |
|
|
int |
marker, |
|
|
float |
size, |
|
|
const art::FindManyP< recob::Hit > * |
|
|
) |
| const |
|
virtual |
Implements evdb_tool::ISpacePoints3D.
Definition at line 55 of file SpacePoint3DDrawerStandard_tool.cc.
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
const Double32_t * XYZ() const
then echo File list $list not found else cat $list while read file do echo $file sed s
The documentation for this class was generated from the following file: