72 art::Handle<std::vector<recob::Hit>> ChannelHits;
77 art::FindOneP<raw::RawDigit> ChannelHitRawDigits(ChannelHits,
evt,
fChanHitLabel);
81 std::vector<art::Ptr<recob::Hit>> ChHits;
82 art::fill_ptr_vector(ChHits, ChannelHits);
83 for (
size_t h = 0;
h < ChHits.size();
h++) {
84 if (ChHits[
h]->View() !=
geo::kZ)
continue;
86 art::Ptr<recob::Wire> wire = ChannelHitWires.at(
h);
87 art::Ptr<raw::RawDigit> rawdigits = ChannelHitRawDigits.at(
h);
90 hcol.emplace_back(*ChHits[
h], wire, rawdigits);
94 auto const clock_data =
95 art::ServiceHandle<detinfo::DetectorClocksService const>()->DataFor(
evt);
97 art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataFor(
evt, clock_data);
110 art::Ptr<recob::Hit>::key_type hit_index = hit.key();
111 art::Ptr<recob::Wire> wire = ChannelHitWires.at(hit_index);
112 art::Ptr<raw::RawDigit> rawdigits = ChannelHitRawDigits.at(hit_index);
114 hcol.emplace_back(disambiguous_hit.move(), wire, rawdigits);
apa::DisambigAlg fDisambigAlg
std::string fChanHitLabel
Planes which measure Z direction.
void RunDisambig(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, art::Handle< std::vector< recob::Hit >> GausHits)
Class managing the creation of a new recob::Hit object.
A class handling a collection of hits and its associations.
std::vector< std::pair< art::Ptr< recob::Hit >, geo::WireID > > fDisambigHits
The final list of hits to pass back to be made.