#include <TruthQGDecorationTool.h>
Definition at line 24 of file TruthQGDecorationTool.h.
◆ addBranches()
| StatusCode DerivationFramework::TruthQGDecorationTool::addBranches |
( |
const EventContext & |
ctx | ) |
const |
|
virtual |
Definition at line 26 of file TruthQGDecorationTool.cxx.
32 if (!inputJets.isValid()) {
34 return StatusCode::FAILURE;
41 for (
const auto *ajet : *inputJets){
42 if (!PartonTruthLabelIDAcc.isAvailable(*ajet) ){
43 ATH_MSG_ERROR(
"Did not have input PartonTruthLabelID decorations available");
44 return StatusCode::FAILURE;
46 else if (!HadronConeExclTruthLabelIDAcc.isAvailable(*ajet) ){
47 ATH_MSG_ERROR(
"Did not have input HadronConeExclTruthLabelID decorations available");
48 return StatusCode::FAILURE;
56 if (HadronConeExclTruthLabelIDAcc(*ajet)!=0){
57 output_decorator(*ajet) = HadronConeExclTruthLabelIDAcc(*ajet);
59 int labelid = PartonTruthLabelIDAcc(*ajet);
60 if (std::abs(labelid)!=5 &&
61 std::abs(labelid)!=4 &&
62 std::abs(labelid)!=15){
63 output_decorator(*ajet) = labelid;
65 output_decorator(*ajet) = labelid*100;
70 return StatusCode::SUCCESS;
◆ initialize()
| StatusCode DerivationFramework::TruthQGDecorationTool::initialize |
( |
| ) |
|
◆ m_decOutput
◆ m_jetsKey
The documentation for this class was generated from the following files: