ATLAS Offline Software
NSubjettinessHelper.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef jetsubstructuremomenttools_nsubjettinesshelper
6 #define jetsubstructuremomenttools_nsubjettinesshelper
7 
9 
10 std::string GetAlphaSuffix(float alpha) {
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 }
22 
23 #endif
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
GetAlphaSuffix
std::string GetAlphaSuffix(float alpha)
Definition: NSubjettinessHelper.cxx:10
NSubjettinessHelper.h