 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 m_JetMatchingTool_Tool(
""),
30 m_HFClassification_tool(
""),
31 m_HadronOriginClassifier_Tool(
"")
73 return StatusCode::FAILURE;
78 return StatusCode::FAILURE;
83 return StatusCode::FAILURE;
86 return StatusCode::SUCCESS;
90 return StatusCode::SUCCESS;
105 if (!truthParticlesHandle.
isValid()) {
106 ATH_MSG_ERROR (
"Could not retrieve TruthParticleContainer " << truthParticlesHandle.
key());
107 return StatusCode::FAILURE;
113 if (!jetInputHandle.
isValid()) {
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()) {
136 return StatusCode::FAILURE;
142 decorator_HFClassification(*
EventInfo) = hfclassif;
145 decorator_SimpleHFClassification(*
EventInfo) = simpleclassif;
155 jetIdDecorator(*
jet) =
id;
158 return StatusCode::SUCCESS;
SG::WriteDecorHandleKey< xAOD::EventInfo > m_SimplehfDecorKey
~ClassifyAndCalculateHFAugmentation()
const_pointer_type cptr()
Dereference the pointer.
ToolHandle< DerivationFramework::JetMatchingTool > m_JetMatchingTool_Tool
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ClassifyAndCalculateHFAugmentation(const std::string &t, const std::string &n, const IInterface *p)
ToolHandle< DerivationFramework::ClassifyAndCalculateHFTool > m_HFClassification_tool
ToolHandle< DerivationFramework::HadronOriginClassifier > m_HadronOriginClassifier_Tool
const std::string & key() const
Return the StoreGate ID for the referenced object.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< xAOD::JetContainer > m_jetCollectionKey
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
virtual StatusCode addBranches(const EventContext &ctx) const override
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::string m_hfDecorationName
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode finalize() override
This class provides general information about an event. Event information is provided by the accessor...
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
Class describing the basic event information.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Handle class for reading from StoreGate.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetIDDecorationKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticlesKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_hfDecorKey
virtual StatusCode initialize() override