#include <TruthQGDecorationTool.h>
Definition at line 24 of file TruthQGDecorationTool.h.
◆ TruthQGDecorationTool()
DerivationFramework::TruthQGDecorationTool::TruthQGDecorationTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TruthQGDecorationTool()
DerivationFramework::TruthQGDecorationTool::~TruthQGDecorationTool |
( |
| ) |
|
◆ addBranches()
StatusCode DerivationFramework::TruthQGDecorationTool::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 38 of file TruthQGDecorationTool.cxx.
41 const EventContext& ctx = Gaudi::Hive::currentContext();
45 if (!inputJets.isValid()) {
47 return StatusCode::FAILURE;
54 for (
const auto *ajet : *inputJets){
55 if (!PartonTruthLabelIDAcc.isAvailable(*ajet) ){
56 ATH_MSG_ERROR(
"Did not have input PartonTruthLabelID decorations available");
57 return StatusCode::FAILURE;
59 else if (!HadronConeExclTruthLabelIDAcc.isAvailable(*ajet) ){
60 ATH_MSG_ERROR(
"Did not have input HadronConeExclTruthLabelID decorations available");
61 return StatusCode::FAILURE;
69 if (HadronConeExclTruthLabelIDAcc(*ajet)!=0){
70 output_decorator(*ajet) = HadronConeExclTruthLabelIDAcc(*ajet);
72 int labelid = PartonTruthLabelIDAcc(*ajet);
73 if (std::abs(labelid)!=5 &&
74 std::abs(labelid)!=4 &&
75 std::abs(labelid)!=15){
76 output_decorator(*ajet) = labelid;
78 output_decorator(*ajet) = labelid*100;
83 return StatusCode::SUCCESS;
◆ initialize()
StatusCode DerivationFramework::TruthQGDecorationTool::initialize |
( |
| ) |
|
◆ m_decOutput
◆ m_jetsKey
The documentation for this class was generated from the following files: