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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, Statistical, Detector, Modelling,
  Mixed, Effective, Other
}
 

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
Statistical 
Detector 
Modelling 
Mixed 
Effective 
Other 

Definition at line 15 of file UncertaintyEnum.h.

16  {
17  UNKNOWN=0, // Failure/unset/etc
18  Statistical,// Statistical and method uncertainties
19  Detector, // Detector uncertainties
20  Modelling, // Modelling uncertainties
21  Mixed, // Mixed detector/modelling uncertainties
22  Effective, // Effective nuisance parameters (category is nonsensical after global reduction)
23  Other // Other uncertainties that don't fit in the above (MC nonclosure, ...)
24  };

Function Documentation

◆ enumToString()

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

Definition at line 21 of file UncertaintyEnum.cxx.

22  {
23  switch (type)
24  {
25  case Statistical: return "Statistical";
26  case Detector: return "Detector";
27  case Modelling: return "Modelling";
28  case Mixed: return "Mixed";
29  case Effective: return "Effective";
30  case Other: return "Other";
31  default: return "UNKNOWN";
32  }
33  }

◆ stringToEnum()

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

Definition at line 35 of file UncertaintyEnum.cxx.

36  {
37  if (!type.CompareTo("Statistical"))
38  return Statistical;
39  if (!type.CompareTo("Detector"))
40  return Detector;
41  if (!type.CompareTo("Modelling"))
42  return Modelling;
43  if (!type.CompareTo("Mixed"))
44  return Mixed;
45  if (!type.CompareTo("Effective"))
46  return Effective;
47  if (!type.CompareTo("Other"))
48  return Other;
49  return UNKNOWN;
50  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
InDetDD::Other
@ Other
Definition: DetectorDesign.h:42
jet::CompCategory::Effective
@ Effective
Definition: UncertaintyEnum.h:22
jet::CompCategory::Statistical
@ Statistical
Definition: UncertaintyEnum.h:18
Analysis::Statistical
@ Statistical
Definition: CalibrationDataInterfaceROOT.h:70
jet::CompCategory::Detector
@ Detector
Definition: UncertaintyEnum.h:19
jet::CompCategory::Mixed
@ Mixed
Definition: UncertaintyEnum.h:21
jet::CompCategory::Modelling
@ Modelling
Definition: UncertaintyEnum.h:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242