 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 m_JetMatchingTool_Tool(
""),
30 m_HFClassification_tool(
""),
31 m_HadronOriginClassifier_Tool(
"")
75 return StatusCode::FAILURE;
80 return StatusCode::FAILURE;
85 return StatusCode::FAILURE;
88 return StatusCode::SUCCESS;
92 return StatusCode::SUCCESS;
104 const EventContext& ctx = Gaudi::Hive::currentContext();
108 if (!truthParticlesHandle.
isValid()) {
109 ATH_MSG_ERROR (
"Could not retrieve TruthParticleContainer " << truthParticlesHandle.
key());
110 return StatusCode::FAILURE;
116 if (!jetInputHandle.
isValid()) {
118 return StatusCode::FAILURE;
123 std::map<const xAOD::TruthParticle*, DerivationFramework::HadronOriginClassifier::HF_id> hadronMap =
m_HadronOriginClassifier_Tool->GetOriginMap();
126 std::map<const xAOD::Jet*, std::vector<xAOD::TruthParticleContainer::const_iterator>> particleMatch =
m_JetMatchingTool_Tool->matchHadronsToJets(xTruthParticleContainer,
JetCollection);
137 if (!eventInfoHandle.
isValid()) {
139 return StatusCode::FAILURE;
145 decorator_HFClassification(*
EventInfo) = hfclassif;
148 decorator_SimpleHFClassification(*
EventInfo) = simpleclassif;
158 jetIdDecorator(*
jet) =
id;
161 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.
Gaudi::Property< std::string > m_jetIDDecorationName
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
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