|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include <string_view>
21 const IInterface*
p) :
24 declareInterface<DerivationFramework::IAugmentationTool>(
this);
30 ATH_MSG_ERROR(
"No decoration prefix name provided for the output of InDetTrackSelectionToolWrapper!");
31 return StatusCode::FAILURE;
36 pos = (
pos != std::string::npos) ?
pos+1 : 0;
39 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)) {
42 std::cout <<
"DEBUG " <<
name() <<
" InDetTrackSelectionToolWrapper::initialize container key " <<
m_tracksKey.
key() <<
" -> " << container_name <<
" decor=" <<
m_decorationKey.
key() << std::endl;
47 return StatusCode::SUCCESS;
52 return StatusCode::SUCCESS;
59 const EventContext& ctx = Gaudi::Hive::currentContext();
65 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticles with key: " << tracks.
key() );
66 return StatusCode::FAILURE;
70 for (
const auto *trItr : *tracks) {
71 accept( *trItr ) =
m_tool->accept(trItr).getCutResult(0);
74 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.
virtual std::vector< Gaudi::DataHandle * > inputHandles() const override
Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::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.