 |
ATLAS Offline Software
|
Go to the documentation of this file.
15 return StatusCode::SUCCESS;
21 if (!truthParticles.
isValid()) {
23 return StatusCode::FAILURE;
26 std::map<const xAOD::TruthParticle*, DerivationFramework::HadronOriginClassifier::HF_id> hadronMap=
m_Tool->GetOriginMap();
28 for (
auto* truthParticle : *truthParticles) {
29 originDecorator(*truthParticle) = (hadronMap.find(truthParticle)!=hadronMap.end()) ?
static_cast<int>(hadronMap[truthParticle]) : 6;
32 return StatusCode::SUCCESS;
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
virtual StatusCode initialize() override final
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
#define ATH_MSG_VERBOSE(x)
virtual StatusCode addBranches(const EventContext &ctx) const override final
::StatusCode StatusCode
StatusCode definition for legacy code.
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?
PublicToolHandle< DerivationFramework::HadronOriginClassifier > m_Tool
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.