#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 EventContext & |
ctx | ) |
const |
|
virtual |
Definition at line 38 of file TruthQGDecorationTool.cxx.
44 if (!inputJets.isValid()) {
46 return StatusCode::FAILURE;
53 for (
const auto *ajet : *inputJets){
54 if (!PartonTruthLabelIDAcc.isAvailable(*ajet) ){
55 ATH_MSG_ERROR(
"Did not have input PartonTruthLabelID decorations available");
56 return StatusCode::FAILURE;
58 else if (!HadronConeExclTruthLabelIDAcc.isAvailable(*ajet) ){
59 ATH_MSG_ERROR(
"Did not have input HadronConeExclTruthLabelID decorations available");
60 return StatusCode::FAILURE;
68 if (HadronConeExclTruthLabelIDAcc(*ajet)!=0){
69 output_decorator(*ajet) = HadronConeExclTruthLabelIDAcc(*ajet);
71 int labelid = PartonTruthLabelIDAcc(*ajet);
72 if (std::abs(labelid)!=5 &&
73 std::abs(labelid)!=4 &&
74 std::abs(labelid)!=15){
75 output_decorator(*ajet) = labelid;
77 output_decorator(*ajet) = labelid*100;
82 return StatusCode::SUCCESS;
◆ initialize()
| StatusCode DerivationFramework::TruthQGDecorationTool::initialize |
( |
| ) |
|
◆ m_decOutput
◆ m_jetsKey
The documentation for this class was generated from the following files: