|
ATLAS Offline Software
|
Go to the documentation of this file.
24 return StatusCode::SUCCESS;
28 const EventContext& ctx = Gaudi::Hive::currentContext();
30 if (!muons.isValid()) {
32 return StatusCode::FAILURE;
35 std::pair<std::unique_ptr<xAOD::MuonContainer>, std::unique_ptr<xAOD::ShallowAuxContainer>>
output =
40 return StatusCode::FAILURE;
45 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;
ToolHandle< IMuonCalibrationAndSmearingTool > m_tool
Muon calibration tool.
CalibratedMuonsProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
SG::WriteDecorHandleKeyArray< xAOD::MuonContainer > m_ptDecorKeys
Additionally declare the two decorations made by MCAST.
Select isolated Photons, Electrons and Muons.
virtual StatusCode initialize() override
Function initialising the algorithm.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rndNumKey
@ Error
Some error happened during the object correction.
SG::WriteHandleKey< xAOD::MuonContainer > m_outputKey
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< bool > m_useRndNumber
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant 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...
virtual StatusCode execute() override
Function executing the algorithm.
SG::ReadHandleKey< xAOD::MuonContainer > m_inputKey
muon container