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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, Pt, PtEta, PtAbsEta,
  PtAbsMass, PtMass, PtMassEta, PtMassAbsEta,
  PtAbsMassEta, PtAbsMassAbsEta, eLOGmOe, eLOGmOeEta,
  eLOGmOeAbsEta, PtLOGPtMassForTagSF
}
 

Functions

TString enumToString (const TypeEnum type)
 
TypeEnum stringToEnum (const TString &type)
 
bool isAbsEta (const TypeEnum type)
 
bool includesMass (const TypeEnum type)
 

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
Pt 
PtEta 
PtAbsEta 
PtAbsMass 
PtMass 
PtMassEta 
PtMassAbsEta 
PtAbsMassEta 
PtAbsMassAbsEta 
eLOGmOe 
eLOGmOeEta 
eLOGmOeAbsEta 
PtLOGPtMassForTagSF 

Definition at line 44 of file UncertaintyEnum.h.

45  {
46  UNKNOWN=0, // Failure/unset/etc
47  Pt, // 1D, (pT) dependence
48  PtEta, // 2D, (pT,eta) dependence
49  PtAbsEta, // 2D, (pT,|eta|) dependence
50  PtAbsMass, // 2D, (pT,mass) dependence
51  PtMass, // 2D, (pt,m/pT) dependence
52  PtMassEta, // 3D, (pT,m/pT,eta) dependence
53  PtMassAbsEta, // 3D, (pT,m/pT,|eta|) dependence
54  PtAbsMassEta, // 3D, (pT,mass,eta) dependence
55  PtAbsMassAbsEta,// 3D, (pT,mass,|eta|) dependence
56  eLOGmOe, // 2D, (E,log(m/E)) dependence
57  eLOGmOeEta, // 3D, (E,log(m/E),eta) dependence
58  eLOGmOeAbsEta, // 3D, (E,log(m/E),|eta|) dependence
59  PtLOGPtMassForTagSF,// 2D, (pt,log(m/pT)) dependence, only for tagging SF
60  };

Function Documentation

◆ enumToString()

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

Definition at line 91 of file UncertaintyEnum.cxx.

92  {
93  switch(type)
94  {
95  case Pt: return "Pt";
96  case PtEta: return "PtEta";
97  case PtAbsEta: return "PtAbsEta";
98  case PtAbsMass: return "PtAbsMass";
99  case PtMass: return "PtMass";
100  case PtMassEta: return "PtMassEta";
101  case PtMassAbsEta: return "PtMassAbsEta";
102  case PtAbsMassEta: return "PtAbsMassEta";
103  case PtAbsMassAbsEta: return "PtAbsMassAbsEta";
104  case eLOGmOe: return "eLOGmOe";
105  case eLOGmOeEta: return "eLOGmOeEta";
106  case eLOGmOeAbsEta: return "eLOGmOeAbsEta";
107  case PtLOGPtMassForTagSF: return "PtLOGPtMassForTagSF";
108  default: return "UNKNOWN";
109  }
110  }

◆ includesMass()

bool jet::CompParametrization::includesMass ( const TypeEnum  type)

Definition at line 156 of file UncertaintyEnum.cxx.

157  {
158  switch(type)
159  {
160  case PtAbsMass:
161  case PtMass:
162  case PtLOGPtMassForTagSF:
163  case PtMassEta:
164  case PtMassAbsEta:
165  case PtAbsMassEta:
166  case PtAbsMassAbsEta:
167  case eLOGmOe:
168  case eLOGmOeEta:
169  case eLOGmOeAbsEta:
170  return true;
171 
172  default:
173  return false;
174  }
175  }

◆ isAbsEta()

bool jet::CompParametrization::isAbsEta ( const TypeEnum  type)

Definition at line 143 of file UncertaintyEnum.cxx.

144  {
145  switch(type)
146  {
147  case PtAbsEta:
148  case PtMassAbsEta:
149  case PtAbsMassAbsEta:
150  case eLOGmOeAbsEta: return true;
151 
152  default: return false;
153  }
154  }

◆ stringToEnum()

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

Definition at line 112 of file UncertaintyEnum.cxx.

113  {
114  if (!type.CompareTo("Pt",TString::kIgnoreCase))
115  return Pt;
116  if (!type.CompareTo("PtEta",TString::kIgnoreCase))
117  return PtEta;
118  if (!type.CompareTo("PtAbsEta",TString::kIgnoreCase))
119  return PtAbsEta;
120  if (!type.CompareTo("PtAbsMass",TString::kIgnoreCase))
121  return PtAbsMass;
122  if (!type.CompareTo("PtMass",TString::kIgnoreCase))
123  return PtMass;
124  if (!type.CompareTo("PtMassEta",TString::kIgnoreCase))
125  return PtMassEta;
126  if (!type.CompareTo("PtMassAbsEta",TString::kIgnoreCase))
127  return PtMassAbsEta;
128  if (!type.CompareTo("PtAbsMassEta",TString::kIgnoreCase))
129  return PtAbsMassEta;
130  if (!type.CompareTo("PtAbsMassAbsEta",TString::kIgnoreCase))
131  return PtAbsMassAbsEta;
132  if (!type.CompareTo("eLOGmOe",TString::kIgnoreCase))
133  return eLOGmOe;
134  if (!type.CompareTo("eLOGmOeEta",TString::kIgnoreCase))
135  return eLOGmOeEta;
136  if (!type.CompareTo("eLOGmOeAbsEta",TString::kIgnoreCase))
137  return eLOGmOeAbsEta;
138  if (!type.CompareTo("PtLOGPtMassForTagSF",TString::kIgnoreCase))
139  return PtLOGPtMassForTagSF;
140  return UNKNOWN;
141  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
jet::CompParametrization::PtLOGPtMassForTagSF
@ PtLOGPtMassForTagSF
Definition: UncertaintyEnum.h:59
jet::CompParametrization::PtAbsEta
@ PtAbsEta
Definition: UncertaintyEnum.h:49
jet::CompParametrization::PtAbsMassAbsEta
@ PtAbsMassAbsEta
Definition: UncertaintyEnum.h:55
jet::CompParametrization::PtMassAbsEta
@ PtMassAbsEta
Definition: UncertaintyEnum.h:53
jet::CompParametrization::eLOGmOeEta
@ eLOGmOeEta
Definition: UncertaintyEnum.h:57
jet::CompParametrization::eLOGmOe
@ eLOGmOe
Definition: UncertaintyEnum.h:56
jet::CompScaleVar::Pt
@ Pt
Definition: UncertaintyEnum.h:97
jet::CompParametrization::PtAbsMassEta
@ PtAbsMassEta
Definition: UncertaintyEnum.h:54
jet::CompParametrization::PtAbsMass
@ PtAbsMass
Definition: UncertaintyEnum.h:50
jet::CompParametrization::PtEta
@ PtEta
Definition: UncertaintyEnum.h:48
jet::CompParametrization::PtMass
@ PtMass
Definition: UncertaintyEnum.h:51
Prompt::Def::Pt
@ Pt
Definition: VarHolder.h:76
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::CompParametrization::PtMassEta
@ PtMassEta
Definition: UncertaintyEnum.h:52
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242
jet::CompParametrization::eLOGmOeAbsEta
@ eLOGmOeAbsEta
Definition: UncertaintyEnum.h:58