25#include "GaudiKernel/IInterface.h"
32 ISvcLocator* pSvcLocator):
57 return StatusCode::FAILURE;
64 return StatusCode::FAILURE;
70 return StatusCode::SUCCESS;
82 for (
const auto muon : *pxMuonContainer){
88 const xAOD::TrackParticle* idTP = muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
107 if (fitStatus == StatusCode::SUCCESS) {
109 muonTrksRefit1->
push_back(refit1MuonTrk);
118 if (fitStatus == StatusCode::SUCCESS) {
120 muonTrksRefit2->
push_back(refit2MuonTrk);
129 if (
sc.isFailure()) {
135 if (
sc.isFailure()) {
141 if (
sc.isFailure()) {
146 return StatusCode::SUCCESS;
152 ATH_MSG_INFO(
"***************************************************");
153 ATH_MSG_INFO(
"**************** IDPerfMuonRefitter ***************");
154 ATH_MSG_INFO(
"***************************************************");
158 ATH_MSG_INFO(
"***************************************************");
159 ATH_MSG_INFO(
"***************************************************");
160 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
ToolHandle< IegammaTrkRefitterTool > m_TrackRefitter2
The track refitter.
virtual StatusCode initialize()
virtual StatusCode execute()
SG::ReadHandleKey< xAOD::MuonContainer > m_muonContainerKey
std::string m_outputTracksName
virtual StatusCode finalize()
IDPerfMuonRefitter(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< IegammaTrkRefitterTool > m_TrackRefitter1
The track refitter.
int m_N_MuonRefitFailures
const Trk::Track * track() const
Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle.
@ OWN_ELEMENTS
this data object owns its elements
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Electron_v1 Electron
Definition of the current "egamma version".