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

Added back missing file (lost in a git mv) and reduced interface to minimum.

I somehow forgot to add the header (and I guess in my local tests it got picked up from the path somehow). Also try to make the implementation as minimalist as possible, by removing the explicit ctor, dtor and finalize.
parent 8cfde58d
No related branches found
No related tags found
No related merge requests found
Pipeline #1122473 passed
......@@ -17,11 +17,6 @@
using namespace Muon;
MuPatTrackBuilder::MuPatTrackBuilder(const std::string& name, ISvcLocator* pSvcLocator)
: AthAlgorithm(name,pSvcLocator)
{
}
StatusCode MuPatTrackBuilder::initialize()
{
if (m_trackMaker.retrieve().isFailure()){
......@@ -36,7 +31,6 @@ StatusCode MuPatTrackBuilder::initialize()
ATH_CHECK( m_segmentKey.initialize() );
ATH_CHECK( m_spectroTrackKey.initialize() );
ATH_CHECK( m_spectroPartiKey.initialize() );
return StatusCode::SUCCESS;
}
......@@ -84,8 +78,3 @@ StatusCode MuPatTrackBuilder::execute()
return StatusCode::SUCCESS;
} // execute
StatusCode MuPatTrackBuilder::finalize()
{
return StatusCode::SUCCESS;
}
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUPATTRACKBUILDER_H
#define MUPATTRACKBUILDER_H
#include <string>
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/ServiceHandle.h"
#include "GaudiKernel/ToolHandle.h"
#include "TrkSegment/SegmentCollection.h"
#include "TrkTrack/TrackCollection.h"
#include "MuonRecHelperTools/IMuonEDMHelperSvc.h"
#include "MuonRecToolInterfaces/IMuonTrackFinder.h"
class MuPatTrackBuilder : public AthAlgorithm
{
public:
using AthAlgorithm::AthAlgorithm;
public:
virtual StatusCode initialize() override;
virtual StatusCode execute() override;
private:
SG::ReadHandleKey<Trk::SegmentCollection> m_segmentKey {this, "MuonSegmentCollection", "MooreSegments", "Input segment location"}; //!< Key of input MuonSegmentCombination collection
SG::WriteHandleKey<TrackCollection> m_spectroTrackKey {this, "SpectrometerTrackOutputLocation", "MuonSpectrometerTracks"}; //!< Track output Key for tracks strictly in MS
ToolHandle<Muon::IMuonTrackFinder> m_trackMaker {this, "TrackSteering", "Muon::MuonTrackFinder/MuonTrackSteering", "Actual tool to do the track finding"}; //!< Actual tool to do the track finding
ServiceHandle<Muon::IMuonEDMHelperSvc> m_edmHelperSvc {this, "edmHelper",
"Muon::MuonEDMHelperSvc/MuonEDMHelperSvc",
"Handle to the service providing the IMuonEDMHelperSvc interface" }; //!< helper Tool
};
#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