21 return StatusCode::SUCCESS;
25 const EventContext& ctx = Gaudi::Hive::currentContext();
29 return StatusCode::FAILURE;
35 if (!output.first || !output.second) {
37 return StatusCode::FAILURE;
42 return StatusCode::FAILURE;
54 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< bool > m_useRndNumber
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
ToolHandle< IMuonCalibrationAndSmearingTool > m_tool
Calibration tool handle.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rndNumKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputKey
track container
Gaudi::Property< int > m_detType
detector type of track (MS or ID)
virtual StatusCode initialize() override
Function initialising the algorithm.
CalibratedTracksProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_outputKey
virtual StatusCode execute() override
Function executing the algorithm.
@ Error
Some error happened during the object correction.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode recordNonConst(std::unique_ptr< T > data)
Record a non-const object to the store.
Select isolated Photons, Electrons and Muons.
typename ShallowCopyResult< T >::type ShallowCopyResult_t
Return type of xAOD::shallowCopy.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
ShallowCopyResult_t< T > shallowCopy(const T &cont, const EventContext &ctx)
Create a shallow copy of an existing container.
bool setOriginalObjectLink(const IParticle &original, IParticle ©)
This function should be used by CP tools when they make a deep copy of an object in their correctedCo...