21 return StatusCode::SUCCESS;
25 const EventContext& ctx = Gaudi::Hive::currentContext();
29 return StatusCode::FAILURE;
32 std::pair<std::unique_ptr<xAOD::TrackParticleContainer>, std::unique_ptr<xAOD::ShallowAuxContainer>> output =
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.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, const EventContext &ctx)
Function making a shallow copy of a constant container.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
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...