Skip to content

Commit

Permalink
Use more appropriate function name
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 16, 2024
1 parent 55aab87 commit bfd3be0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,14 @@ void resolveRelationsParticleIDs(PidMapT& pidMap, const RecoParticleMapT& recoMa
///
/// @note: This assumes that all tracks have been converted already
template <typename TrackMapT>
void attachDedxInfo(TrackMapT& trackMap, const std::vector<TrackDqdxConvData>& dQdxCollections);
void attachDqdxInfo(TrackMapT& trackMap, const std::vector<TrackDqdxConvData>& dQdxCollections);

/// Attach the dE/dx information that is stored in the RecDqdxCollection to the
/// corresponding tracks
///
/// @note: This assumes that all tracks have been converted already
template <typename TrackMapT>
void attachDedxInfo(TrackMapT& trackMap, const TrackDqdxConvData& dQdxCollection);
void attachDqdxInfo(TrackMapT& trackMap, const TrackDqdxConvData& dQdxCollection);

/**
* Resolve all relations in all converted objects that are held in the map.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -728,14 +728,14 @@ void resolveRelationsParticleIDs(PidMapT& pidMap, const RecoParticleMapT& recoMa
}

template <typename TrackMapT>
void attachDedxInfo(TrackMapT& trackMap, const std::vector<TrackDqdxConvData>& dQdxCollections) {
void attachDqdxInfo(TrackMapT& trackMap, const std::vector<TrackDqdxConvData>& dQdxCollections) {
for (const auto& coll : dQdxCollections) {
attachDedxInfo(trackMap, coll);
attachDqdxInfo(trackMap, coll);
}
}

template <typename TrackMapT>
void attachDedxInfo(TrackMapT& trackMap, const TrackDqdxConvData& dQdxCollection) {
void attachDqdxInfo(TrackMapT& trackMap, const TrackDqdxConvData& dQdxCollection) {
const auto& [name, coll] = dQdxCollection;

for (const auto& elem : *coll) {
Expand Down
2 changes: 1 addition & 1 deletion k4EDM4hep2LcioConv/src/k4EDM4hep2LcioConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ std::unique_ptr<lcio::LCEventImpl> convertEvent(const podio::Frame& edmEvent, co
convertParticleIDs(pidCollMeta.coll, objectMappings.particleIDs, algoId);
}

attachDedxInfo(objectMappings.tracks, dQdxCollections);
attachDqdxInfo(objectMappings.tracks, dQdxCollections);

resolveRelations(objectMappings);

Expand Down

0 comments on commit bfd3be0

Please sign in to comment.