Commit e5739d6d authored by Spyros Argyropoulos's avatar Spyros Argyropoulos
Browse files

Put hit writing to correct position

parent 52dc5c74
Pipeline #3161863 failed with stages
in 5 minutes and 1 second
......@@ -94,10 +94,6 @@ void processSingleBTagEventImpl(Event& event,
check_rc( event.retrieve(hits, "JetAssociatedPixelClusters"));
for (const xAOD::Jet* jet: sorted_jets) {
tools.hit_decorator.decorate(*jet, *hits, *pv);
// Write hits
for (auto& hittool: tools.hits) {
hittool.hitWriter.write(*hits, *jet, *pv);
}
}
}
......@@ -180,6 +176,13 @@ void processSingleBTagEventImpl(Event& event,
sort(tracks.begin(), tracks.end(), tracktool.sort);
tracktool.writer.write(tracks, *uncalib_jet);
}
// Write hits
for (auto& hittool: tools.hits) {
const xAOD::TrackMeasurementValidationContainer* hits = nullptr;
check_rc( event.retrieve(hits, "JetAssociatedPixelClusters"));
const xAOD::Jet* uncalib_jet = raw_jets->at(calib_jet->index());
hittool.hitWriter.write(*hits, *uncalib_jet, *pv);
}
}
if (!jets_to_write.empty()) {
tools.jet_writer.write(jets_to_write, event_info);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment