138 unsigned int eventNumber =
e.id().event();
139 unsigned int runNumber =
e.run();
144 auto const& wireVector = *
e.getValidHandle<std::vector<recob::Wire>>(
fWireModuleLabel);
145 auto const& mcHitVector = *
e.getValidHandle<std::vector<sim::MCHitCollection>>(
fMCHitModuleLabel);
149 std::vector<std::vector<int>> WireMCHitAssocVector;
154 std::vector<art::Handle<std::vector<recob::Hit>>> hitHandles(nHitModules);
157 std::vector<std::vector<std::vector<int>>> WireHitAssocVectors(nHitModules);
158 for (
size_t iter = 0; iter < nHitModules; iter++) {
168 WireHitAssocVectors[iter].resize(wireVector.size());
169 art::Handle<HitWireAssns_t> HitToWireAssns;
181 auto const clock_data = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataFor(
e);
185 wireVector, mcHitVector, WireMCHitAssocVector, clock_data, eventNumber, runNumber);
void LoadHitAssocPair(std::vector< recob::Hit > const &, std::vector< std::vector< int >> const &, std::string const &)
void createMCAssocVector(std::vector< recob::Wire > const &, std::vector< sim::MCHitCollection > const &, std::vector< std::vector< int >> &)
std::vector< std::string > fHitModuleLabels
std::string fWireModuleLabel
std::string fMCHitModuleLabel
void AnalyzeWires(std::vector< recob::Wire > const &, std::vector< sim::MCHitCollection > const &, std::vector< std::vector< int >> const &, detinfo::DetectorClocksData const &, unsigned int, unsigned int)
void createAssocVector(HitWireAssns_t const &, std::vector< std::vector< int >> &)