ATLAS Offline Software
Loading...
Searching...
No Matches
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 }