ATLAS Offline Software
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
}
 

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 

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 393 of file L1ThresholdBase.cxx.

394 {
395  if (wpStr == "None")
396  return Selection::WP::NONE;
397  if (wpStr == "Loose")
398  return Selection::WP::LOOSE;
399  if (wpStr == "Medium")
400  return Selection::WP::MEDIUM;
401  if (wpStr == "Tight")
402  return Selection::WP::TIGHT;
403  if (wpStr == "HadLoose")
405  if (wpStr == "HadMedium")
407  if (wpStr == "HadTight")
409  if (wpStr == "Had") // Had = HadMedium for backward compatibility
410  return Selection::WP::HADMEDIUM;
411  if (wpStr == "Loose12")
412  return Selection::WP::LOOSE12;
413  if (wpStr == "Loose20")
414  return Selection::WP::LOOSE20;
415  if (wpStr == "Loose30")
416  return Selection::WP::LOOSE30;
417  if (wpStr == "Loose35")
418  return Selection::WP::LOOSE35;
419  if (wpStr == "Medium12")
421  if (wpStr == "Medium20")
423  if (wpStr == "Medium30")
425  if (wpStr == "Medium35")
427  if (wpStr == "Tight12")
428  return Selection::WP::TIGHT12;
429  if (wpStr == "Tight20")
430  return Selection::WP::TIGHT20;
431  if (wpStr == "Tight30")
432  return Selection::WP::TIGHT30;
433  if (wpStr == "Tight35")
434  return Selection::WP::TIGHT35;
435  throw std::runtime_error("Unknown working point name " + wpStr);
436 }

◆ 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";
374  return "Medium12";
376  return "Medium20";
378  return "Medium30";
380  return "Medium35";
381  if (wp == Selection::WP::TIGHT12)
382  return "Tight12";
383  if (wp == Selection::WP::TIGHT20)
384  return "Tight20";
385  if (wp == Selection::WP::TIGHT30)
386  return "Tight30";
387  if (wp == Selection::WP::TIGHT35)
388  return "Tight35";
389  throw std::runtime_error("Unknown working point " + std::to_string(int(wp)));
390 }

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::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::LOOSE20
@ LOOSE20
TrigConf::Selection::WP::MEDIUM20
@ MEDIUM20
PlotSFuncertainty.wp
wp
Definition: PlotSFuncertainty.py:112
TrigConf::Selection::WP::HADTIGHT
@ HADTIGHT
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
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::TIGHT20
@ TIGHT20