Skip to content
Snippets Groups Projects
Commit 61469892 authored by Pascal Boeschoten's avatar Pascal Boeschoten
Browse files

MuGirlRecoTool: get HoughDataPerSectorVec from SG

parent dda99298
No related branches found
No related tags found
10 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!24246Making MuonLayerHoughTool thread-safe,!23553WIP: Making MuonLayerHoughTool thread-safe
......@@ -704,12 +704,16 @@ StatusCode MuGirlRecoTool::processHoughData() {
int NumMaxima = 0;
if (m_pMuonLayerHoughTool) {
Muon::MuonLayerHoughTool::HoughDataPerSectorVec data = m_pMuonLayerHoughTool->houghData();
ATH_MSG_DEBUG(data.size() << " sector are present in the HoughData");
for (unsigned int sector = 0; sector < data.size(); sector++) {
SG::ReadHandle<Muon::MuonLayerHoughTool::HoughDataPerSectorVec> data {m_houghDataPerSectorVecKey};
if (!data.isValid()) {
ATH_MSG_ERROR("Hough data per sector vector not found");
return StatusCode::FAILURE;
}
ATH_MSG_DEBUG(data->size() << " sector are present in the HoughData");
for (unsigned int sector = 0; sector < data->size(); sector++) {
int sector_id = -99;
bool hits_in_same_sector = true;
Muon::MuonLayerHoughTool::HoughDataPerSector sector_data = data.at(sector);
Muon::MuonLayerHoughTool::HoughDataPerSector sector_data = data->at(sector);
ATH_MSG_DEBUG("----------------------------- Sector " << sector
<< " -----------------------------");
for (unsigned int region = 0; region < sector_data.maxVec.size(); region++) {
......
......@@ -23,6 +23,7 @@
// Hough transform
#include "MuonLayerHough/MuonLayerHough.h"
#include "MuonHoughPatternTools/MuonLayerHoughTool.h"
// Forward declarations
......@@ -239,6 +240,10 @@ namespace MuGirlNS {
ServiceHandle<MagField::IMagFieldSvc> m_magFieldSvc; /**< Magnetic Field Service */
// Storegate
SG::ReadHandleKey<Muon::MuonLayerHoughTool::HoughDataPerSectorVec> m_houghDataPerSectorVecKey {this,
"Key_MuonLayerHoughToolHoughDataPerSectorVec", "HoughDataPerSectorVec", "HoughDataPerSectorVec key"};
}; // class MuGirlRecoTool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment