Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jan 30, 2024
1 parent 223ae74 commit ff32af7
Show file tree
Hide file tree
Showing 14 changed files with 362 additions and 408 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ ActsExamples::ProcessCode TrackTruthMatcher::execute(

if ((!m_cfg.doubleMatching && recoMatched) ||
(m_cfg.doubleMatching && recoMatched && truthMatched)) {
trackParticleMatching[track.index()] = {majorityParticleId};
trackParticleMatching[track.index()] = {majorityParticleId,
particleHitCounts};

auto& particleTrackMatch = particleTrackMatching[majorityParticleId];
if (!particleTrackMatch.track) {
Expand All @@ -120,7 +121,7 @@ ActsExamples::ProcessCode TrackTruthMatcher::execute(
++particleTrackMatch.duplicates;
}
} else {
trackParticleMatching[track.index()] = {std::nullopt};
trackParticleMatching[track.index()] = {std::nullopt, particleHitCounts};

auto& particleTrackMatch = particleTrackMatching[majorityParticleId];
++particleTrackMatch.fakes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ struct SecondaryVertexIdGetter {
using SimBarcode = ::ActsFatras::Barcode;
using SimParticle = ::ActsFatras::Particle;
/// Store particles ordered by particle identifier.
using SimBarcodeContainer = ::boost::container::flat_set<SimBarcode>;
using SimParticleContainer =
::boost::container::flat_set<SimParticle, detail::CompareParticleId>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "ActsExamples/EventData/SimParticle.hpp"
#include "ActsExamples/EventData/Track.hpp"
#include "ActsExamples/Validation/TrackClassification.hpp"

#include <cstdint>
#include <map>
Expand All @@ -19,6 +20,10 @@ namespace ActsExamples {

struct TrackMatchEntry {
std::optional<SimBarcode> particle;

/// Number of hits on the track that are associated to a particle
/// Sorted by decreasing number of hits
std::vector<ParticleHitCount> contributingParticles;
};

struct ParticleMatchEntry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "ActsExamples/EventData/Index.hpp"
#include "ActsExamples/EventData/ProtoTrack.hpp"
#include "ActsExamples/EventData/Trajectories.hpp"
#include "ActsExamples/EventData/Track.hpp"
#include "ActsFatras/EventData/Barcode.hpp"

#include <cstddef>
Expand Down
1 change: 1 addition & 0 deletions Examples/Io/Csv/src/CsvTrackWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "Acts/EventData/VectorMultiTrajectory.hpp"
#include "Acts/Utilities/Helpers.hpp"
#include "Acts/Utilities/MultiIndex.hpp"
#include "ActsExamples/EventData/IndexSourceLink.hpp"
#include "ActsExamples/EventData/Track.hpp"
#include "ActsExamples/Framework/AlgorithmContext.hpp"
#include "ActsExamples/Utilities/Paths.hpp"
Expand Down
Loading

0 comments on commit ff32af7

Please sign in to comment.