22 ATH_MSG_ERROR(
"No decoration prefix name provided for the output of InDetTrackSelectionToolWrapper!");
23 return StatusCode::FAILURE;
27 std::string::size_type pos =
m_tracksKey.key().find(
'+');
28 pos = (pos != std::string::npos) ? pos+1 : 0;
31 if (!(decor_name.compare(0,
m_tracksKey.key().size(),std::string_view(
m_tracksKey.key()))==0 && decor_name.compare(0,container_name.size(),container_name)==0)) {
34 std::cout <<
"DEBUG " << name() <<
" InDetTrackSelectionToolWrapper::initialize container key " <<
m_tracksKey.key() <<
" -> " << container_name <<
" decor=" <<
m_decorationKey.key() << std::endl;
38 ATH_MSG_INFO(
" InDetTrackSelectionToolWrapper::initialize i: " << inputHandles().
size() <<
" o:" << outputHandles().
size() );
39 return StatusCode::SUCCESS;
50 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticles with key: " << tracks.
key() );
51 return StatusCode::FAILURE;
55 for (
const auto *trItr : *tracks) {
56 accept( *trItr ) =
m_tool->accept(trItr).getCutResult(0);
59 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
size_t size() const
Number of registered mappings.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
Handle class for adding a decoration to an object.