ATLAS Offline Software
Functions
safeLogRatio.cxx File Reference
#include "TrigBjetHypo/safeLogRatio.h"
#include <cmath>
Include dependency graph for safeLogRatio.cxx:

Go to the source code of this file.

Functions

float safeLogRatio (float num, float denom)
 

Function Documentation

◆ safeLogRatio()

float safeLogRatio ( float  num,
float  denom 
)

Definition at line 9 of file safeLogRatio.cxx.

9  {
10  float ratio = (denom == 0 ? INFINITY : num / denom);
11  return ratio == 0 ? -INFINITY : std::log( ratio );
12 }
compute_lumi.denom
denom
Definition: compute_lumi.py:76
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
python.compareTCTs.ratio
ratio
Definition: compareTCTs.py:295
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20