#include <InDetTrackSelectionToolWrapper.h>
|
| virtual StatusCode | initialize () override final |
| virtual StatusCode | addBranches (const EventContext &ctx) const override final |
◆ addBranches()
| StatusCode DerivationFramework::InDetTrackSelectionToolWrapper::addBranches |
( |
const EventContext & | ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 43 of file InDetTrackSelectionToolWrapper.cxx.
44 {
45
46
47 SG::ReadHandle<xAOD::TrackParticleContainer> tracks(
m_tracksKey, ctx);
48 if (!tracks.isValid()) {
49
50 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticles with key: " << tracks.key() );
51 return StatusCode::FAILURE;
52 }
53
55 for (const auto *trItr : *tracks) {
56 accept( *trItr ) =
m_tool->accept(trItr).getCutResult(0);
57 }
58
59 return StatusCode::SUCCESS;
60 }
StatusCode accept(const xAOD::Muon *mu)
◆ initialize()
| StatusCode DerivationFramework::InDetTrackSelectionToolWrapper::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 19 of file InDetTrackSelectionToolWrapper.cxx.
20 {
22 ATH_MSG_ERROR(
"No decoration prefix name provided for the output of InDetTrackSelectionToolWrapper!");
23 return StatusCode::FAILURE;
24 }
25
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)) {
33 }
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;
40 }
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_decorationKey
◆ m_tool
◆ m_tracksKey
The documentation for this class was generated from the following files: