Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Static Public Member Functions | List of all members
TrigConf::Selection Class Reference

#include <L1ThresholdBase.h>

Collaboration diagram for TrigConf::Selection:

Public Types

enum  WP {
  WP::NONE = 0, WP::LOOSE = 1, WP::MEDIUM = 2, WP::TIGHT = 3,
  WP::HADLOOSE = 4, WP::HADMEDIUM = 5, WP::HADTIGHT = 6, WP::HAD = 7,
  WP::LOOSE12 = 8, WP::LOOSE20 = 9, WP::LOOSE30 = 10, WP::LOOSE35 = 11,
  WP::MEDIUM12 = 12, WP::MEDIUM20 = 13, WP::MEDIUM30 = 14, WP::MEDIUM35 = 15,
  WP::TIGHT12 = 16, WP::TIGHT20 = 17, WP::TIGHT30 = 18, WP::TIGHT35 = 19,
  WP::LOOSE50 = 20, WP::MEDIUM50 = 21, WP::TIGHT50 = 22, WP::LOOSE55 = 23,
  WP::MEDIUM55 = 24, WP::TIGHT55 = 25
}
 

Static Public Member Functions

static std::string wpToString (WP)
 
static WP stringToWP (const std::string &)
 

Detailed Description

Definition at line 294 of file L1ThresholdBase.h.

Member Enumeration Documentation

◆ WP

Enumerator
NONE 
LOOSE 
MEDIUM 
TIGHT 
HADLOOSE 
HADMEDIUM 
HADTIGHT 
HAD 
LOOSE12 
LOOSE20 
LOOSE30 
LOOSE35 
MEDIUM12 
MEDIUM20 
MEDIUM30 
MEDIUM35 
TIGHT12 
TIGHT20 
TIGHT30 
TIGHT35 
LOOSE50 
MEDIUM50 
TIGHT50 
LOOSE55 
MEDIUM55 
TIGHT55 

Definition at line 298 of file L1ThresholdBase.h.

Member Function Documentation

◆ stringToWP()

TrigConf::Selection::WP TrigConf::Selection::stringToWP ( const std::string &  wpStr)
static

Definition at line 405 of file L1ThresholdBase.cxx.

406 {
407  if (wpStr == "None")
408  return Selection::WP::NONE;
409  if (wpStr == "Loose")
410  return Selection::WP::LOOSE;
411  if (wpStr == "Medium")
412  return Selection::WP::MEDIUM;
413  if (wpStr == "Tight")
414  return Selection::WP::TIGHT;
415  if (wpStr == "HadLoose")
417  if (wpStr == "HadMedium")
419  if (wpStr == "HadTight")
421  if (wpStr == "Had") // Had = HadMedium for backward compatibility
422  return Selection::WP::HADMEDIUM;
423  if (wpStr == "Loose12")
424  return Selection::WP::LOOSE12;
425  if (wpStr == "Loose20")
426  return Selection::WP::LOOSE20;
427  if (wpStr == "Loose30")
428  return Selection::WP::LOOSE30;
429  if (wpStr == "Loose35")
430  return Selection::WP::LOOSE35;
431  if (wpStr == "Loose50")
432  return Selection::WP::LOOSE50;
433  if (wpStr == "Loose55")
434  return Selection::WP::LOOSE55;
435  if (wpStr == "Medium12")
437  if (wpStr == "Medium20")
439  if (wpStr == "Medium30")
441  if (wpStr == "Medium35")
443  if (wpStr == "Medium50")
445  if (wpStr == "Medium55")
447  if (wpStr == "Tight12")
448  return Selection::WP::TIGHT12;
449  if (wpStr == "Tight20")
450  return Selection::WP::TIGHT20;
451  if (wpStr == "Tight30")
452  return Selection::WP::TIGHT30;
453  if (wpStr == "Tight35")
454  return Selection::WP::TIGHT35;
455  if (wpStr == "Tight50")
456  return Selection::WP::TIGHT50;
457  if (wpStr == "Tight55")
458  return Selection::WP::TIGHT55;
459  throw std::runtime_error("Unknown working point name " + wpStr);
460 }

◆ wpToString()

std::string TrigConf::Selection::wpToString ( WP  wp)
static

Definition at line 347 of file L1ThresholdBase.cxx.

348 {
349  if (wp == Selection::WP::NONE)
350  return "None";
351  if (wp == Selection::WP::LOOSE)
352  return "Loose";
353  if (wp == Selection::WP::MEDIUM)
354  return "Medium";
355  if (wp == Selection::WP::TIGHT)
356  return "Tight";
358  return "HadLoose";
360  return "HadMedium";
362  return "HadTight";
363  if (wp == Selection::WP::HAD) // Had = HadMedium for backward compatibility
364  return "HadMedium";
365  if (wp == Selection::WP::LOOSE12)
366  return "Loose12";
367  if (wp == Selection::WP::LOOSE20)
368  return "Loose20";
369  if (wp == Selection::WP::LOOSE30)
370  return "Loose30";
371  if (wp == Selection::WP::LOOSE35)
372  return "Loose35";
373  if (wp == Selection::WP::LOOSE50)
374  return "Loose50";
375  if (wp == Selection::WP::LOOSE55)
376  return "Loose55";
378  return "Medium12";
380  return "Medium20";
382  return "Medium30";
384  return "Medium35";
386  return "Medium50";
388  return "Medium55";
389  if (wp == Selection::WP::TIGHT12)
390  return "Tight12";
391  if (wp == Selection::WP::TIGHT20)
392  return "Tight20";
393  if (wp == Selection::WP::TIGHT30)
394  return "Tight30";
395  if (wp == Selection::WP::TIGHT35)
396  return "Tight35";
397  if (wp == Selection::WP::TIGHT50)
398  return "Tight50";
399  if (wp == Selection::WP::TIGHT55)
400  return "Tight55";
401  throw std::runtime_error("Unknown working point " + std::to_string(int(wp)));
402 }

The documentation for this class was generated from the following files:
TrigConf::Selection::WP::LOOSE
@ LOOSE
TrigConf::Selection::WP::MEDIUM12
@ MEDIUM12
TrigConf::Selection::WP::TIGHT35
@ TIGHT35
TrigConf::Selection::WP::LOOSE50
@ LOOSE50
TrigConf::Selection::WP::NONE
@ NONE
TrigConf::Selection::WP::HADLOOSE
@ HADLOOSE
TrigConf::Selection::WP::TIGHT12
@ TIGHT12
TrigConf::Selection::WP::LOOSE35
@ LOOSE35
TrigConf::Selection::WP::TIGHT30
@ TIGHT30
TrigConf::Selection::WP::MEDIUM50
@ MEDIUM50
TrigConf::Selection::WP::LOOSE20
@ LOOSE20
TrigConf::Selection::WP::TIGHT50
@ TIGHT50
TrigConf::Selection::WP::MEDIUM20
@ MEDIUM20
PlotSFuncertainty.wp
wp
Definition: PlotSFuncertainty.py:112
TrigConf::Selection::WP::HADTIGHT
@ HADTIGHT
TrigConf::Selection::WP::LOOSE55
@ LOOSE55
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
TrigConf::Selection::WP::MEDIUM55
@ MEDIUM55
TrigConf::Selection::WP::LOOSE12
@ LOOSE12
TrigConf::Selection::WP::MEDIUM30
@ MEDIUM30
TrigConf::Selection::WP::HAD
@ HAD
TrigConf::Selection::WP::MEDIUM
@ MEDIUM
TrigConf::Selection::WP::TIGHT
@ TIGHT
TrigConf::Selection::WP::MEDIUM35
@ MEDIUM35
TrigConf::Selection::WP::HADMEDIUM
@ HADMEDIUM
TrigConf::Selection::WP::LOOSE30
@ LOOSE30
TrigConf::Selection::WP::TIGHT55
@ TIGHT55
TrigConf::Selection::WP::TIGHT20
@ TIGHT20