|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   22     return StatusCode::SUCCESS;
 
   28     if (!truthParticles.
isValid()) {
 
   30       return StatusCode::FAILURE;
 
   33     std::map<const xAOD::TruthParticle*, DerivationFramework::HadronOriginClassifier::HF_id>  hadronMap=
m_Tool->GetOriginMap();
 
   35     for (
auto* truthParticle : *truthParticles) {
 
   36       originDecorator(*truthParticle) = (hadronMap.find(truthParticle)!=hadronMap.end()) ? 
static_cast<int>(hadronMap[truthParticle]) : 6;
 
   39     return StatusCode::SUCCESS;
 
  
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
#define ATH_MSG_VERBOSE(x)
virtual StatusCode addBranches(const EventContext &ctx) const
HadronOriginDecorator(const std::string &t, const std::string &n, const IInterface *p)
::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.