38 return StatusCode::SUCCESS;
47 return StatusCode::SUCCESS;
69 StatusCode
sc = tool->decide(toolInput);
71 ATH_MSG_ERROR(
"Timeout reached in hypo tool " << tool->name());
77 ATH_MSG_DEBUG(
"Exiting with "<< outputHandle->size() <<
" decisions");
79 for (
auto outh: *outputHandle) {
82 ATH_MSG_DEBUG(
"Number of positive decisions for this input: " << objDecisions.size());
88 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name="")
Helper method to create a Decision object, place it in the container and return a pointer to it.
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
const std::string & hypoAlgNodeName()
void decisionIDs(const Decision *d, DecisionIDContainer &id)
Extracts DecisionIDs stored in the Decision object.
const SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & decisionOutput() const
methods for derived classes to access handles of the base class output other read/write handles may b...
HypoBase(const std::string &name, ISvcLocator *pSvcLocator)
constructor, to be called by sub-class constructors
virtual StatusCode execute(const EventContext &eventContext) const override
ToolHandleArray< MTCalibPebHypoTool > m_hypoTools
virtual StatusCode initialize() override
virtual ~MTCalibPebHypoAlg()
Standard destructor.
MTCalibPebHypoAlg(const std::string &name, ISvcLocator *svcLoc)
Standard constructor.
virtual StatusCode finalize() override
pointer_type ptr()
Dereference the pointer.
@ TIMEOUT
Timeout during event processing.
xAOD::TrigComposite Decision
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
std::set< DecisionID > DecisionIDContainer
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
const std::string & hypoAlgNodeName()
xAOD::TrigCompositeContainer DecisionContainer
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.