#include <AsgSelectionToolWrapper.h>
|
| virtual StatusCode | initialize () override final |
| virtual StatusCode | addBranches (const EventContext &ctx) const override final |
Definition at line 18 of file AsgSelectionToolWrapper.h.
◆ addBranches()
| StatusCode DerivationFramework::AsgSelectionToolWrapper::addBranches |
( |
const EventContext & | ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 24 of file AsgSelectionToolWrapper.cxx.
25 {
26
27
28 SG::WriteDecorHandle<xAOD::IParticleContainer, char> decorator (
m_decorKey, ctx);
29 if( ! decorator.isValid() ) {
31 return StatusCode::FAILURE;
32 }
33
34
35 for ( const xAOD::IParticle* part : *decorator) {
36 auto theAccept =
m_tool->accept(part);
38 decorator(*part) = true && theAccept;
39 } else{
40 decorator(*part) =
true && theAccept.getCutResult(
m_cut);
41 }
42 }
43
44 return StatusCode::SUCCESS;
45 }
◆ initialize()
| StatusCode DerivationFramework::AsgSelectionToolWrapper::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 15 of file AsgSelectionToolWrapper.cxx.
15 {
19 return StatusCode::SUCCESS;
20 }
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_containerKey
◆ m_cut
| Gaudi::Property<std::string> DerivationFramework::AsgSelectionToolWrapper::m_cut {this, "CutType", "" } |
|
private |
◆ m_decorKey
◆ m_tool
| PublicToolHandle<IAsgSelectionTool> DerivationFramework::AsgSelectionToolWrapper::m_tool {this, "AsgSelectionTool", ""} |
|
private |
The documentation for this class was generated from the following files: