Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 m_JetMatchingTool_Tool(
""),
30 m_HFClassification_tool(
""),
31 m_HadronOriginClassifier_Tool(
"")
72 return StatusCode::FAILURE;
77 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
85 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
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()) {
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;
147 return StatusCode::SUCCESS;
SG::WriteDecorHandleKey< xAOD::EventInfo > m_SimplehfDecorKey
virtual StatusCode addBranches() const override
~ClassifyAndCalculateHFAugmentation()
const_pointer_type cptr()
Dereference the pointer.
ToolHandle< DerivationFramework::JetMatchingTool > m_JetMatchingTool_Tool
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual StatusCode assign(const std::string &sgkey) override
Change the key of the object to which we're referring.
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
Gaudi::Property< std::string > m_hfDecorationName
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
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.
Gaudi::Property< std::string > m_SimplehfDecorationName
Handle class for reading from StoreGate.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticlesKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_hfDecorKey
virtual StatusCode initialize() override