Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include <string_view>
21 const IInterface*
p) :
29 ATH_MSG_ERROR(
"No decoration prefix name provided for the output of InDetTrackSelectionToolWrapper!");
30 return StatusCode::FAILURE;
35 pos = (
pos != std::string::npos) ?
pos+1 : 0;
38 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)) {
41 std::cout <<
"DEBUG " <<
name() <<
" InDetTrackSelectionToolWrapper::initialize container key " <<
m_tracksKey.
key() <<
" -> " << container_name <<
" decor=" <<
m_decorationKey.
key() << std::endl;
45 ATH_MSG_INFO(
" InDetTrackSelectionToolWrapper::initialize i: " << inputHandles().
size() <<
" o:" << outputHandles().
size() );
46 return StatusCode::SUCCESS;
51 return StatusCode::SUCCESS;
58 const EventContext& ctx = Gaudi::Hive::currentContext();
64 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticles with key: " << tracks.
key() );
65 return StatusCode::FAILURE;
69 for (
const auto *trItr : *tracks) {
70 accept( *trItr ) =
m_tool->accept(trItr).getCutResult(0);
73 return StatusCode::SUCCESS;
StatusCode accept(const xAOD::Muon *mu)
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
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.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Handle class for reading from StoreGate.