24 ::StatusCode OutOfValidityHelper ::
34 return StatusCode::SUCCESS;
38 ::StatusCode OutOfValidityHelper ::
41 const char *context)
const
49 return StatusCode::SUCCESS;
51 return StatusCode::FAILURE;
58 return StatusCode::FAILURE;
61 return StatusCode::SUCCESS;
63 return StatusCode::SUCCESS;
66 ANA_MSG_ERROR (__FILE__ <<
":" << __LINE__ <<
": invalid enum value encountered " << code <<
" " <<
int (
m_action));
67 return StatusCode::FAILURE;
70 bool OutOfValidityHelper ::
Return value from object correction CP tools.
@ Error
Some error happened during the object correction.
@ OutOfValidityRange
Input object is out of validity range.
@ Ok
The correction was done successfully.
std::string m_decorationName
the decoration name we use (if we have one)
std::unique_ptr< ISelectionWriteAccessor > m_write_accessor
the accessor if we apply one
unsigned m_action
the action to take
bool m_isInitialized
whether we have been initialized
std::unique_ptr< ISelectionReadAccessor > m_read_accessor
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
StatusCode makeSelectionWriteAccessor(const std::string &name, std::unique_ptr< ISelectionWriteAccessor > &accessor, bool defaultToChar)
Produces a simple ISelectionWriteAccessor accessing the given decoration.
StatusCode makeSelectionReadAccessor(const std::string &expr, std::unique_ptr< ISelectionReadAccessor > &accessor, bool defaultToChar)
make the ISelectionReadAccessor for the given name
OutOfValidityAction
the action to perform on encountering an OutOfValidityRange in OutOfValidityHelper
@ WARNING
print a warning message and return a success status code.
@ SILENT
don't print anything and return success
@ ABORT
print an error message and return a failure status code (triggering an abort)