15 #include "cetlib_except/exception.h" 53 std::map<unsigned int, KHitGroup*> group_map;
58 ihit != hits.
end(); ++ihit) {
64 uint32_t channel = hit.
Channel();
67 if(only_plane >= 0 && hitWireID.
Plane != (
unsigned int)(only_plane))
73 if(group_map.count(channel) == 0) {
76 group_map[channel] = pgr;
79 pgr = group_map[channel];
82 << __func__ <<
": no group map for channel " << channel <<
"\n";
87 const std::shared_ptr<const Surface>& psurf = pgr->
getSurface();
91 std::shared_ptr<const KHitBase> phit(
new KHitWireX(*ihit, psurf));
A KHitContainer for KHitWireX type measurements.
geo::WireID WireID() const
Initial tdc tick for hit.
Kalman filter wire-time measurement on a SurfWireX surface.
virtual ~KHitContainerWireX()
Destructor.
KHitContainerWireX()
Default constructor.
const std::list< KHitGroup > & getUnsorted() const
Unsorted list.
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane) override
Fill container.
PlaneID_t Plane
Index of the plane within its TPC.
Detector simulation of raw signals on wires.
data_t::const_iterator const_iterator
void addHit(const std::shared_ptr< const KHitBase > &hit)
Add a mesaurement into the colleciton.
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
cet::coded_exception< error, detail::translate > exception