42 for (
size_t i_track = 0; i_track < trackVector.size(); i_track++) {
48 std::vector<std::vector<size_t>> hit_indices_per_plane(geom.Nplanes());
49 for (
auto const& i_hit : hit_indices_per_track[i_track])
50 hit_indices_per_plane[hitVector[i_hit].WireID().Plane].push_back(i_hit);
53 for (
size_t i_plane = 0; i_plane < geom.Nplanes(); i_plane++) {
59 std::vector<std::pair<geo::WireID, float>> traj_points_in_plane(
63 float tick = det_prop.ConvertXToTicks(x_pos, (
int)i_plane, 0, 0);
64 traj_points_in_plane[i_trjpt] =
65 std::make_pair(geom.NearestWireID(track.
LocationAtPoint(i_trjpt), i_plane), tick);
70 for (
auto const& i_hit : hit_indices_per_plane[i_plane])
76 path_length_fraction_vec,
77 HitPropertiesMultiset,
83 HitPropertiesMultiset, track, i_track, caloVector, assnTrackCaloVector, planeID);
Point_t const & LocationAtPoint(size_t i) const
void MakeCalorimetryObject(HitPropertiesMultiset_t const &hpm, recob::Track const &track, size_t const &i_track, std::vector< anab::Calorimetry > &caloVector, std::vector< size_t > &assnTrackCaloVector, geo::PlaneID const &planeID)
The data type to uniquely identify a Plane.
size_t NumberTrajectoryPoints() const
Various functions related to the presence and the number of (valid) points.
std::size_t size(FixedBins< T, C > const &) noexcept
process_name use argoneut_mc_hitfinder track
std::multiset< HitProperties, HitPropertySorter > HitPropertiesMultiset_t
std::vector< float > CreatePathLengthFractionVector(recob::Track const &track)
tick_as<> tick
Tick number, represented by std::ptrdiff_t.
void ReserveInternalVectors(size_t s)
Description of geometry of one entire detector.
void AnalyzeHit(detinfo::DetectorClocksData const &, detinfo::DetectorPropertiesData const &, recob::Hit const &, recob::Track const &, std::vector< std::pair< geo::WireID, float >> const &, std::vector< float > const &, HitPropertiesMultiset_t &, geo::GeometryCore const &)
void ClearInternalVectors()
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track: