Skip to content

Commit

Permalink
[Tracking] Temporarily remove GenFit dependancy (broken)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF committed Feb 6, 2024
1 parent 0b0e8ae commit a639af6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Tracking/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ set(PackageName Tracking)

project(${PackageName})

find_package(GenFit)
#find_package(GenFit)

if (GenFit_FOUND)
#if (GenFit_FOUND)

file(GLOB sources
${PROJECT_SOURCE_DIR}/src/*.cpp
Expand All @@ -20,7 +20,7 @@ gaudi_add_module(${PackageName}
Gaudi::GaudiKernel
EDM4HEP::edm4hep
k4FWCore::k4FWCore
GenFit::genfit2
#GenFit::genfit2
)

target_include_directories(${PackageName} PUBLIC
Expand All @@ -44,4 +44,4 @@ install(TARGETS ${PackageName}
)

install(FILES ${scripts} DESTINATION test)
endif()
#endif()
4 changes: 2 additions & 2 deletions Tracking/include/GenFitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "edm4hep/TrackerHitCollection.h"

// GENFIT
#include "WireMeasurement.h"
//#include "WireMeasurement.h"

/** @class GenFitter
*
Expand Down Expand Up @@ -46,5 +46,5 @@ class GenFitter : public GaudiAlgorithm {
// Output track collection name
DataHandle<edm4hep::TrackCollection> m_output_tracks{"outputTracks", Gaudi::DataHandle::Writer, this};
// Transient genfit measurements used internally by genfit to run the tracking
std::vector<genfit::WireMeasurement> m_wire_measurements;
//std::vector<genfit::WireMeasurement> m_wire_measurements;
};
6 changes: 3 additions & 3 deletions Tracking/src/GenFitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ StatusCode GenFitter::execute() {
verbose() << "Input Hit collection size: " << input_hits->size() << endmsg;

// Convert edm4hep::TrackerHitCollection to Genfit measurements
for (const auto& input_hit : *input_hits) {
m_wire_measurements.push_back(genfit::WireMeasurement());
}
//for (const auto& input_hit : *input_hits) {
// m_wire_measurements.push_back(genfit::WireMeasurement());
//}

// Produce dummy tracks
edm4hep::TrackCollection* output_tracks = m_output_tracks.createAndPut();
Expand Down

0 comments on commit a639af6

Please sign in to comment.