ATLAS Offline Software
Loading...
Searching...
No Matches
AthExAlgWithFPE.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3#include "AthExAlgWithFPE.h"
4
5StatusCode AthExAlgWithFPE::execute(const EventContext& /*ctx*/) {
6
7 float value = 42;
8 //coverity[DIVIDE_BY_ZERO]
9 float byZero=divide (value, 0);
10 ATH_MSG_INFO("Division of " << value << " by zero is " << byZero);
11
12 return StatusCode::SUCCESS;
13}
#define ATH_MSG_INFO(x)
float divide(float a, float b)
Definition divide.cxx:9
virtual StatusCode execute(const EventContext &ctx) override
Execute method.