Skip to content

Commit

Permalink
CKF Tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Nov 19, 2024
1 parent 2a501db commit aee1808
Show file tree
Hide file tree
Showing 6 changed files with 589 additions and 57 deletions.
3 changes: 2 additions & 1 deletion source/tdis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ add_executable(tdis
# tracking/Measurement2DFactory.h
tracking/TruthTrackParameterFactory.h
tracking/KalmanFittingFactory.h

tracking/CKFTracking.h
tracking/CKFTracking.cc
)

# ---------- FIND REQUIRED PACKAGES -------------
Expand Down
4 changes: 3 additions & 1 deletion source/tdis/io/PodioWriteProcessor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class PodioWriteProcessor : public JEventProcessor {
"DigitizedMtpcMcHit",

// Digitized hits
"TrackerHit"
"TrackerHit",
"Measurement2D",
"TruthTrackInitParameters",
};

PodioWriteProcessor(JApplication * app);
Expand Down
10 changes: 9 additions & 1 deletion source/tdis/tdis_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
// #include <podio/ROOTFrameWriter.h>
// #include <podio/ROOTFrameReader.h>

#include <JANA/Components/JOmniFactoryGeneratorT.h>
#include <JANA/JApplication.h>
#include <JANA/Services/JParameterManager.h>
#include <JANA/Components/JOmniFactoryGeneratorT.h>

#include <utility>

Expand All @@ -21,6 +21,7 @@
#include "services/LogService.hpp"
#include "tracking/ActsGeometryService.h"
#include "tracking/ReconstructedHitFactory.h"
#include "tracking/TruthTrackParameterFactory.h"
// #include "tracking/Measurement2DFactory.h"

struct ProgramArguments {
Expand Down Expand Up @@ -123,6 +124,13 @@ int main(int argc, char* argv[]) {
{"TrackerHit", "Measurement2D"});
app.Add(reco_hit_generator);

auto truth_track_init_generator = new JOmniFactoryGeneratorT<tdis::tracking::TruthTrackParameterFactory>();
truth_track_init_generator->AddWiring(
"TruthTrackParameterGenerator",
{"DigitizedMtpcMcTrack"},
{"TruthTrackInitParameters"});
app.Add(truth_track_init_generator);

// auto measurement_2d_generator = new JOmniFactoryGeneratorT<tdis::tracking::Measurement2DFactory>();
// measurement_2d_generator->AddWiring("TrackerHitGenerator", {"TrackerHit"}, {"Measurement2D"});
// app.Add(measurement_2d_generator);
Expand Down
Loading

0 comments on commit aee1808

Please sign in to comment.