Skip to content

Commit

Permalink
[Backport v1.14] Inject Low-Q2 electrons into tracking (#1501)
Browse files Browse the repository at this point in the history
# Description
Backport of #1491 to `v1.14`.

Co-authored-by: Simon Gardner <[email protected]>
  • Loading branch information
epic-capybara and simonge authored Jun 9, 2024
1 parent 1413111 commit 10425ef
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/global/tracking/tracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

#include <DD4hep/Detector.h>
#include <JANA/JApplication.h>
#include <edm4eic/TrackerHit.h>
#include <edm4eic/TrackCollection.h>
#include <edm4eic/TrackerHitCollection.h>
#include <algorithm>
#include <gsl/pointers>
#include <map>
Expand Down Expand Up @@ -251,6 +252,14 @@ void InitPlugin(JApplication *app) {
app
));

// Add central and other tracks
app->Add(new JOmniFactoryGeneratorT<CollectionCollector_factory<edm4eic::Track>>(
"CombinedTracks",
{"CentralCKFTracks", "TaggerTrackerTracks"},
{"CombinedTracks"},
app
));

// linking of reconstructed particles to PID objects
TracksToParticlesConfig link_cfg {
.momentumRelativeTolerance = 100.0, /// Matching momentum effectively disabled
Expand All @@ -261,7 +270,7 @@ void InitPlugin(JApplication *app) {
app->Add(new JOmniFactoryGeneratorT<TracksToParticles_factory>(
"ChargedParticlesWithAssociations",
{"MCParticles", // edm4hep::MCParticle
"CentralCKFTracks", // edm4eic::Track
"CombinedTracks", // edm4eic::Track
},
{"ReconstructedChargedWithoutPIDParticles", //
"ReconstructedChargedWithoutPIDParticleAssociations" // edm4eic::MCRecoParticleAssociation
Expand Down

0 comments on commit 10425ef

Please sign in to comment.