ATLAS Offline Software
Functions
NSubjettinessHelper.h File Reference
#include <string>
#include <cmath>
Include dependency graph for NSubjettinessHelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string GetAlphaSuffix (float alpha)
 

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 }
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26