12 #include "canvas/Persistency/Common/FindManyP.h" 15 #include "TPolyMarker3D.h" 32 const art::FindManyP<recob::Hit>*
64 const art::FindManyP<recob::Hit>* hitAssnVec)
const 67 if (hitsVec.empty() || !hitAssnVec)
return;
72 using HitPosition = std::array<double,6>;
73 std::map<int,std::vector<HitPosition>> colorToHitMap;
78 for(
const auto& spacePoint : hitsVec)
86 const double*
pos = spacePoint->XYZ();
87 const double*
err = spacePoint->ErrXYZ();
89 colorToHitMap[chargeColorIdx].push_back(HitPosition()={{pos[0],pos[1],pos[2],err[2],err[2],err[5]}});
93 for(
auto& hitPair : colorToHitMap)
95 TPolyMarker3D&
pm = view->AddPolyMarker3D(hitPair.second.size(), hitPair.first, kFullDotLarge, 0.25);
96 for (
const auto&
hit : hitPair.second) pm.SetNextPoint(
hit[0],
hit[1],
hit[2]);
std::vector< double > fRecoQHigh
high edge of ADC values for drawing raw digits
std::vector< double > fRecoQLow
low edge of ADC values for drawing raw digits
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
T get(std::string const &key) const
const evdb::ColorScale & CalQ(geo::SigType_t st) const
void err(const char *fmt,...)
Detector simulation of raw signals on wires.
std::size_t color(std::string const &procname)
Signal from collection planes.