#include <ClassifyAndCalculateHFAugmentation.h>
|
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_truthParticlesKey {this, "TruthParticleContainerName", "TruthParticles", "Name of the truth particles collection that is used to compute the HF Classification"} |
|
SG::ReadHandleKey< xAOD::JetContainer > | m_jetCollectionKey {this, "jetCollectionName", "AntiKt4TruthWZJets", "Name of the jet collection that is used to compute the HF Classification"} |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey {this, "EventInfo", "EventInfo", ""} |
|
SG::WriteDecorHandleKey< xAOD::EventInfo > | m_hfDecorKey {this, "EventInfoHFDecorName", "", "Name that is used to store the HF Classification."} |
|
SG::WriteDecorHandleKey< xAOD::EventInfo > | m_SimplehfDecorKey {this, "EventInfoSimpleHFDecorName", "", "Name that is used to store the simple HF Classification."} |
|
Gaudi::Property< std::string > | m_hfDecorationName {this, "hfDecorationName", "HF_Classification", "Name that is used to store the HF Classification."} |
|
Gaudi::Property< std::string > | m_SimplehfDecorationName {this, "SimplehfDecorationName", "SimpleHFClassification", "Name that is used to store the simple HF Classification."} |
|
ToolHandle< DerivationFramework::JetMatchingTool > | m_JetMatchingTool_Tool |
|
ToolHandle< DerivationFramework::ClassifyAndCalculateHFTool > | m_HFClassification_tool |
|
ToolHandle< DerivationFramework::HadronOriginClassifier > | m_HadronOriginClassifier_Tool |
|
◆ ClassifyAndCalculateHFAugmentation()
DerivationFramework::ClassifyAndCalculateHFAugmentation::ClassifyAndCalculateHFAugmentation |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~ClassifyAndCalculateHFAugmentation()
DerivationFramework::ClassifyAndCalculateHFAugmentation::~ClassifyAndCalculateHFAugmentation |
( |
| ) |
|
◆ addBranches()
StatusCode DerivationFramework::ClassifyAndCalculateHFAugmentation::addBranches |
( |
| ) |
const |
|
overridevirtual |
Definition at line 98 of file ClassifyAndCalculateHFAugmentation.cxx.
101 const EventContext& ctx = Gaudi::Hive::currentContext();
105 if (!truthParticlesHandle.isValid()) {
106 ATH_MSG_ERROR (
"Could not retrieve TruthParticleContainer " << truthParticlesHandle.key());
107 return StatusCode::FAILURE;
113 if (!jetInputHandle.isValid()) {
114 ATH_MSG_ERROR (
"Could not retrieve JetContainer " << jetInputHandle.key());
115 return StatusCode::FAILURE;
120 std::map<const xAOD::TruthParticle*, DerivationFramework::HadronOriginClassifier::HF_id> hadronMap =
m_HadronOriginClassifier_Tool->GetOriginMap();
123 std::map<const xAOD::Jet*, std::vector<xAOD::TruthParticleContainer::const_iterator>> particleMatch =
m_JetMatchingTool_Tool->matchHadronsToJets(xTruthParticleContainer,
JetCollection);
134 if (!eventInfoHandle.isValid()) {
135 ATH_MSG_ERROR (
"Could not retrieve EventInfo " << eventInfoHandle.key());
136 return StatusCode::FAILURE;
142 decorator_HFClassification(*
EventInfo) = hfclassif;
145 decorator_SimpleHFClassification(*
EventInfo) = simpleclassif;
147 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::ClassifyAndCalculateHFAugmentation::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::ClassifyAndCalculateHFAugmentation::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_eventInfoKey
◆ m_HadronOriginClassifier_Tool
◆ m_HFClassification_tool
◆ m_hfDecorationName
Gaudi::Property<std::string> DerivationFramework::ClassifyAndCalculateHFAugmentation::m_hfDecorationName {this, "hfDecorationName", "HF_Classification", "Name that is used to store the HF Classification."} |
|
private |
◆ m_hfDecorKey
◆ m_jetCollectionKey
SG::ReadHandleKey<xAOD::JetContainer> DerivationFramework::ClassifyAndCalculateHFAugmentation::m_jetCollectionKey {this, "jetCollectionName", "AntiKt4TruthWZJets", "Name of the jet collection that is used to compute the HF Classification"} |
|
private |
◆ m_JetMatchingTool_Tool
◆ m_SimplehfDecorationName
Gaudi::Property<std::string> DerivationFramework::ClassifyAndCalculateHFAugmentation::m_SimplehfDecorationName {this, "SimplehfDecorationName", "SimpleHFClassification", "Name that is used to store the simple HF Classification."} |
|
private |
◆ m_SimplehfDecorKey
◆ m_truthParticlesKey
SG::ReadHandleKey<xAOD::TruthParticleContainer> DerivationFramework::ClassifyAndCalculateHFAugmentation::m_truthParticlesKey {this, "TruthParticleContainerName", "TruthParticles", "Name of the truth particles collection that is used to compute the HF Classification"} |
|
private |
The documentation for this class was generated from the following files: