|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef SELECTION_HELPERS__OUT_OF_VALIDITY_HELPER_H
9 #define SELECTION_HELPERS__OUT_OF_VALIDITY_HELPER_H
78 const std::string& propertyDescription =
"how to handle out of validity results");
89 const char *context)
const;
121 const std::string& propertyDescription)
122 :
asg::AsgMessagingForward (owner)
124 owner->declareProperty (propertyName,
m_action,
125 propertyDescription);
127 "decoration to set alongside action described by " + propertyName);
132 #define ANA_CHECK_CORRECTION(helper,object,expr) \
133 { if (ATH_UNLIKELY((helper).check ((object), (expr), #expr).isFailure())) \
134 return StatusCode::FAILURE; }
std::unique_ptr< ISelectionWriteAccessor > m_write_accessor
the accessor if we apply one
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
OutOfValidityHelper(T *owner, const std::string &propertyName="outOfValidity", const std::string &propertyDescription="how to handle out of validity results")
standard constructor
base class to forward messages to another class
a helper to translate a CP::CorrectionCode into a ::StatusCode
@ SILENT
don't print anything and return success
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
@ ABORT
print an error message and return a failure status code (triggering an abort)
unsigned m_action
the action to take
::StatusCode StatusCode
StatusCode definition for legacy code.
OutOfValidityAction
the action to perform on encountering an OutOfValidityRange in OutOfValidityHelper
bool get(const xAOD::IParticle &particle) const
retrieve the OutOfValidity decision, where true = particle passes validity check
std::unique_ptr< ISelectionReadAccessor > m_read_accessor
::StatusCode check(const xAOD::IParticle &particle, const CP::CorrectionCode &code, const char *context) const
check the correction code and do the proper thing
std::string m_decorationName
the decoration name we use (if we have one)
@ WARNING
print a warning message and return a success status code.
::StatusCode initialize()
standard initialize
Return value from object correction CP tools.
bool m_isInitialized
whether we have been initialized
Base class for elements of a container that can have aux data.