13 #include "art/Framework/Services/Registry/ServiceHandle.h"
14 #include "cetlib_except/exception.h"
33 const art::PtrVector<recob::Hit>& hits,
38 art::ServiceHandle<geo::Geometry const> geom;
42 for (art::PtrVector<recob::Hit>::const_iterator ihit = hits.begin(); ihit != hits.end();
49 uint32_t channel = hit.
Channel();
52 if (only_plane >= 0 && hitWireID.
Plane != (
unsigned int)(only_plane))
continue;
59 throw cet::exception(
"KHitContainerWireLine")
60 << __func__ <<
": no group map for channel " << channel <<
"\n";
63 pgr->
addHit(std::make_shared<KHitWireLine>(detProp, *ihit, pgr->
getSurface()));
void fill(const detinfo::DetectorPropertiesData &detProp, const art::PtrVector< recob::Hit > &hits, int only_plane) override
A KHitContainer for KHitWireLine type measurements.
geo::WireID WireID() const
const std::list< KHitGroup > & getUnsorted() const
PlaneID_t Plane
Index of the plane within its TPC.
void addHit(const std::shared_ptr< const KHitBase > &hit)
Add a mesaurement into the colleciton.
Kalman filter wire-time measurement on a SurfWireLine surface.
const std::shared_ptr< const Surface > & getSurface() const
Surface accessor.
2D representation of charge deposited in the TDC/wire plane
raw::ChannelID_t Channel() const
ID of the readout channel the hit was extracted from.
art framework interface to geometry description