 |
ATLAS Offline Software
|
Go to the documentation of this file.
21 return StatusCode::SUCCESS;
33 ATH_MSG_ERROR(
"Couldn't retrieve container with name " << m_jetsKey);
34 return StatusCode::FAILURE;
41 for (
const auto *ajet : *inputJets){
43 ATH_MSG_ERROR(
"Did not have input PartonTruthLabelID decorations available");
44 return StatusCode::FAILURE;
46 else if (!HadronConeExclTruthLabelIDAcc.
isAvailable(*ajet) ){
47 ATH_MSG_ERROR(
"Did not have input HadronConeExclTruthLabelID decorations available");
48 return StatusCode::FAILURE;
56 if (HadronConeExclTruthLabelIDAcc(*ajet)!=0){
57 output_decorator(*ajet) = HadronConeExclTruthLabelIDAcc(*ajet);
59 int labelid = PartonTruthLabelIDAcc(*ajet);
60 if (std::abs(labelid)!=5 &&
61 std::abs(labelid)!=4 &&
62 std::abs(labelid)!=15){
63 output_decorator(*ajet) = labelid;
65 output_decorator(*ajet) = labelid*100;
70 return StatusCode::SUCCESS;
::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?
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.
Helper class to provide constant type-safe access to aux data.
Handle class for reading from StoreGate.