ATLAS Offline Software
Loading...
Searching...
No Matches
NSubjettinessHelper.cxx File Reference
Include dependency graph for NSubjettinessHelper.cxx:

Go to the source code of this file.

Macros

#define jetsubstructuremomenttools_nsubjettinesshelper

Functions

std::string GetAlphaSuffix (float alpha)

Macro Definition Documentation

◆ jetsubstructuremomenttools_nsubjettinesshelper

#define jetsubstructuremomenttools_nsubjettinesshelper

Definition at line 6 of file NSubjettinessHelper.cxx.

Function Documentation

◆ GetAlphaSuffix()

std::string GetAlphaSuffix ( float alpha)

This is a helper function that provides the suffix for NSubjettiness and NSubjettiness ratio decorations. No suffix is used for alpha = 1.0 and other values are given a suffix of _AlphaN where N is the value with decimal points removed. This assumes alpha values of [0.0,9.9]

and that the maximum precision is 0.1.

Definition at line 10 of file NSubjettinessHelper.cxx.

10 {
11 std::string suffix = "";
12
13 // Create suffix for alpha != 1.0
14 // 10*alpha is used in the suffix
15 // As long as alpha < 10, this shouldn't cause any confusion
16 if(std::abs(alpha-1.0) > 1.0e-5) {
17 suffix = "_Alpha" + std::to_string(int(alpha*10));
18 }
19
20 return suffix;
21}