Skip to content
Snippets Groups Projects
Commit 8ae66092 authored by Nicolas Koehler's avatar Nicolas Koehler Committed by Frank Winklmeier
Browse files

Remove non thread-safe updateAssocMeas method from MuonTGMeasTool

parent 8da0dde0
No related branches found
No related tags found
No related merge requests found
......@@ -172,10 +172,6 @@ StatusCode Muon::MuonTGMeasAssocAlg::execute()
if ( !sc.isFailure() && m_writeTgSegments ) sc = storeSegments();
}
if ( m_muonTgTool ) {
m_muonTgTool->updateAssocMeas(m_allHits,m_allSegments);
}
return StatusCode::SUCCESS;
}
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
// IMuonTGMeasTool.h, (c) ATLAS Detector Softwareop
///////////////////////////////////////////////////////////////////
#ifndef MUONTGRECTOOLS_IMUONTGMEASTOOL_H
#define MUONTGRECTOOLS_IMUONTGMEASTOOL_H
// Gaudi
#include "GaudiKernel/IAlgTool.h"
#include "TrkGeometry/TrackingGeometry.h"
#include "MuonTGRecTools/MuonTGHits.h"
#include "MuonTGRecTools/MuonTGSegments.h"
//Amg
#include "EventPrimitives/EventPrimitives.h"
namespace Muon{
......@@ -42,7 +33,6 @@ public:
static const InterfaceID& interfaceID()
{ return IID_IMuonTGMeasTool; };
virtual void updateAssocMeas( MuonTGHits*, MuonTGSegments* ) const=0;
virtual const std::vector<const Trk::PrepRawData*>* getMeasurementOnLayer(const Trk::Layer* lay) const=0;
virtual const std::vector<const Trk::PrepRawData*>* getEtaPhiMeasurementOnLayer(const Trk::Layer* lay, bool phi) const=0;
virtual const std::vector<const Trk::Segment*>* getSegments(const Trk::DetachedTrackingVolume* station) const=0;
......
......@@ -61,7 +61,6 @@ public:
virtual StatusCode initialize();
virtual StatusCode finalize();
void updateAssocMeas( MuonTGHits*, MuonTGSegments* ) const;
const std::vector<const Trk::PrepRawData*>* getMeasurementOnLayer(const Trk::Layer* lay) const;
const std::vector<const Trk::PrepRawData*>* getEtaPhiMeasurementOnLayer(const Trk::Layer* lay, bool phi) const;
const std::vector<const Trk::Segment*>* getSegments(const Trk::DetachedTrackingVolume* station) const;
......@@ -108,18 +107,7 @@ private:
};
}
inline void Muon::MuonTGMeasurementTool::updateAssocMeas( Muon::MuonTGHits* assocHits,
Muon::MuonTGSegments* assocSegments ) const
{
if (Gaudi::Concurrency::ConcurrencyFlags::concurrent()) {
ATH_MSG_WARNING("Access to Muon::MuonTGMeasurementTool::updateAssocMeas() blocked due to thread safety concerns");
} else {
m_hits = assocHits;
m_segments = assocSegments;
}
}
}
#endif //MUONTGRECTOOLS_MUONTGMEASUREMENTTOOL_H
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