Skip to content
Snippets Groups Projects
Commit 6cf9c7ba authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'PrivateToolFix/MuonCombinedTestTools' into 'master'

Private tool fix/muon combined test tools

See merge request !35660
parents 99caca96 21012b79
No related branches found
No related tags found
6 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,!35660Private tool fix/muon combined test tools
...@@ -7,51 +7,56 @@ ...@@ -7,51 +7,56 @@
//#define MUONCOMBDEBUG //#define MUONCOMBDEBUG
#include <mutex>
#include <string>
#include "AthenaBaseComps/AthAlgTool.h" #include "AthenaBaseComps/AthAlgTool.h"
#include "GaudiKernel/ToolHandle.h" #include "GaudiKernel/ToolHandle.h"
#include <string> #include "MuonCombinedToolInterfaces/IMuonTrackTagTool.h"
#include <mutex>
#include "TrkExInterfaces/IExtrapolator.h"
#include "TrkDetDescrInterfaces/ITrackingGeometrySvc.h" #include "TrkDetDescrInterfaces/ITrackingGeometrySvc.h"
#include "TrkExInterfaces/IExtrapolator.h"
#include "TrkParameters/TrackParameters.h" #include "TrkParameters/TrackParameters.h"
#include "MuonCombinedToolInterfaces/IMuonTrackTagTool.h"
namespace Trk{ namespace Trk {
class TrackingGeometry; class TrackingGeometry;
class TrackingVolume; class TrackingVolume;
} } // namespace Trk
namespace MuonCombined { namespace MuonCombined {
class MuonTrackTagTestTool : public AthAlgTool, virtual public IMuonTrackTagTool { class MuonTrackTagTestTool : public AthAlgTool, virtual public IMuonTrackTagTool {
public: public:
MuonTrackTagTestTool(const std::string& type, const std::string& name, const IInterface* parent);
MuonTrackTagTestTool(const std::string& type,const std::string& name, const IInterface* parent);
~MuonTrackTagTestTool() {} ~MuonTrackTagTestTool() {}
StatusCode initialize(); StatusCode initialize();
StatusCode finalize(); StatusCode finalize();
double chi2(const Trk::TrackParameters& idParsAtEntry,const Trk::TrackParameters& msParsAtEntry) const; double chi2(const Trk::TrackParameters& idParsAtEntry, const Trk::TrackParameters& msParsAtEntry) const;
double chi2(const Trk::Track& id, const Trk::Track& ms) const; double chi2(const Trk::Track& id, const Trk::Track& ms) const;
private: private:
ToolHandle<Trk::IExtrapolator> m_extrapolator{
this,
"ExtrapolatorTool",
"Trk::Extrapolator/AtlasExtrapolator",
};
mutable ServiceHandle<Trk::ITrackingGeometrySvc> m_trackingGeometrySvc
ATLAS_THREAD_SAFE; // Services are assumed to be thread-safe
mutable const Trk::TrackingGeometry* m_trackingGeometry
ATLAS_THREAD_SAFE; // Initialized with call_once, then used read-only
mutable const Trk::TrackingVolume* m_msEntrance
ATLAS_THREAD_SAFE; // Initialized with call_once, then used read-only
mutable std::once_flag m_trackingOnceFlag ATLAS_THREAD_SAFE;
ToolHandle<Trk::IExtrapolator> m_extrapolator;
mutable ServiceHandle<Trk::ITrackingGeometrySvc> m_trackingGeometrySvc ATLAS_THREAD_SAFE; // Services are assumed to be thread-safe
mutable const Trk::TrackingGeometry* m_trackingGeometry ATLAS_THREAD_SAFE; // Initialized with call_once, then used read-only
mutable const Trk::TrackingVolume* m_msEntrance ATLAS_THREAD_SAFE; // Initialized with call_once, then used read-only
mutable std::once_flag m_trackingOnceFlag ATLAS_THREAD_SAFE;
double m_chi2cut; double m_chi2cut;
#ifdef MUONCOMBDEBUG #ifdef MUONCOMBDEBUG
bool m_truth; bool m_truth;
#endif #endif
};
};
} } // namespace MuonCombined
#endif #endif
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