ATLAS Offline Software
Static Public Member Functions | List of all members
BTaggingToolUtil Class Reference

#include <BTaggingToolUtil.h>

Collaboration diagram for BTaggingToolUtil:

Static Public Member Functions

static float getExtendedFloat (const nlohmann::json &pt)
 

Detailed Description

Definition at line 10 of file BTaggingToolUtil.h.

Member Function Documentation

◆ getExtendedFloat()

float BTaggingToolUtil::getExtendedFloat ( const nlohmann::json pt)
static

Definition at line 7 of file BTaggingToolUtil.cxx.

7  {
8  if (pt.is_string() && pt.get<std::string>() == "inf") {
9  return std::numeric_limits<float>::infinity();
10  } else {
11  return pt.get<float>();
12  }
13 }

The documentation for this class was generated from the following files:
test_pyathena.pt
pt
Definition: test_pyathena.py:11