ATLAS Offline Software
Enumerations | Functions
jet::CompCorrelation Namespace Reference

Enumerations

enum  TypeEnum { UNKNOWN =0, Uncorrelated, Correlated }
 

Functions

TString enumToString (const TypeEnum type)
 
TypeEnum stringToEnum (const TString &type)
 

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
Uncorrelated 
Correlated 

Definition at line 31 of file UncertaintyEnum.h.

32  {
33  UNKNOWN=0, // Failure/unset/etc
34  Uncorrelated, // Uncorrelated systematic - add in quadrature
35  Correlated // Correlated systematic - add linearly
36  };

Function Documentation

◆ enumToString()

TString jet::CompCorrelation::enumToString ( const TypeEnum  type)

Definition at line 62 of file UncertaintyEnum.cxx.

63  {
64  switch (type)
65  {
66  case Uncorrelated: return "Uncorrelated";
67  case Correlated: return "Correlated";
68  default: return "UNKNOWN";
69  }
70  }

◆ stringToEnum()

TypeEnum jet::CompCorrelation::stringToEnum ( const TString &  type)

Definition at line 72 of file UncertaintyEnum.cxx.

73  {
74  if (!type.CompareTo("Uncorrelated"))
75  return Uncorrelated;
76  if (!type.CompareTo("Correlated"))
77  return Correlated;
78  return UNKNOWN;
79  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
jet::CompCorrelation::Correlated
@ Correlated
Definition: UncertaintyEnum.h:35
jet::CompCorrelation::Uncorrelated
@ Uncorrelated
Definition: UncertaintyEnum.h:34
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242