 |
ATLAS Offline Software
|
Go to the documentation of this file.
48 return StatusCode::FAILURE;
53 return StatusCode::FAILURE;
58 return StatusCode::FAILURE;
61 return StatusCode::SUCCESS;
76 if (!truthParticlesHandle.
isValid()) {
77 ATH_MSG_ERROR (
"Could not retrieve TruthParticleContainer " << truthParticlesHandle.
key());
78 return StatusCode::FAILURE;
84 if (!jetInputHandle.
isValid()) {
86 return StatusCode::FAILURE;
91 std::map<const xAOD::TruthParticle*, DerivationFramework::HadronOriginClassifier::HF_id> hadronMap =
m_HadronOriginClassifier_Tool->GetOriginMap();
94 std::map<const xAOD::Jet*, std::vector<xAOD::TruthParticleContainer::const_iterator>> particleMatch =
m_JetMatchingTool_Tool->matchHadronsToJets(xTruthParticleContainer,
JetCollection);
105 if (!eventInfoHandle.
isValid()) {
107 return StatusCode::FAILURE;
113 decorator_HFClassification(*
EventInfo) = hfclassif;
116 decorator_SimpleHFClassification(*
EventInfo) = simpleclassif;
126 jetIdDecorator(*
jet) =
id;
129 return StatusCode::SUCCESS;
SG::WriteDecorHandleKey< xAOD::EventInfo > m_SimplehfDecorKey
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode initialize() override final
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
PublicToolHandle< DerivationFramework::HadronOriginClassifier > m_HadronOriginClassifier_Tool
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode addBranches(const EventContext &ctx) const override final
PublicToolHandle< DerivationFramework::ClassifyAndCalculateHFTool > m_HFClassification_tool
::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.
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?
PublicToolHandle< DerivationFramework::JetMatchingTool > m_JetMatchingTool_Tool
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