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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, FourVec, Pt, Mass,
  D12, D23, Tau21, Tau32,
  Tau21WTA, Tau32WTA, D2Beta1, C2Beta1,
  Qw, TagScaleFactor, TagEfficiency, MassRes,
  MassResAbs, PtRes, PtResAbs, FourVecRes,
  FourVecResAbs
}
 

Functions

TString enumToString (const TypeEnum type)
 
TypeEnum stringToEnum (const TString &type)
 
bool isScaleType (const TypeEnum type)
 
bool isResolutionType (const TypeEnum type)
 
bool isAbsResolutionType (const TypeEnum type)
 
bool isRelResolutionType (const TypeEnum type)
 

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
FourVec 
Pt 
Mass 
D12 
D23 
Tau21 
Tau32 
Tau21WTA 
Tau32WTA 
D2Beta1 
C2Beta1 
Qw 
TagScaleFactor 
TagEfficiency 
MassRes 
MassResAbs 
PtRes 
PtResAbs 
FourVecRes 
FourVecResAbs 

Definition at line 90 of file UncertaintyEnum.h.

91  {
92  // Error state
93  UNKNOWN=0, // Failure/unset/etc
94 
95  // Scale uncertainties
96  FourVec, // The full jet 4-vector
97  Pt, // The jet pT
98  Mass, // The jet mass (the default four-vector mass)
99  D12, // The 1,2 splitting distance
100  D23, // The 2,3 splitting distance
101  Tau21, // The ratio on n-subjettiness 2/1
102  Tau32, // The ratio on n-subjettiness 3/2
103  Tau21WTA, // The ratio on n-subjettiness 2/1 with WTA axis
104  Tau32WTA, // The ratio on n-subjettiness 3/2 with WTA axis
105  D2Beta1, // The value of D_2^{beta=1} (ECF ratio)
106  C2Beta1, // The value of C_2^{beta=1} (ECF ratio)
107  Qw, // The value of Qw
108  TagScaleFactor, // Tagging efficiency SF
109  TagEfficiency, // Tagging efficiency SF
110 
111  // Resolution uncertainties
112  MassRes, // The jet mass resolution, relative
113  MassResAbs, // The jet mass resolution, absolute
114  PtRes, // The jet pT resolution, relative
115  PtResAbs, // The jet pT resolution, absolute
116  FourVecRes, // The jet energy resolution applied to the full four-vector, relative
117  FourVecResAbs // The jet energy resolution applied to the full four-vector, absolute
118  };

Function Documentation

◆ enumToString()

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

Definition at line 250 of file UncertaintyEnum.cxx.

251  {
252  switch(type)
253  {
254  case FourVec: return "FourVec";
255  case Pt: return "Pt";
256  case Mass: return "Mass";
257  case D12: return "Split12";
258  case D23: return "Split23";
259  case Tau21: return "Tau21";
260  case Tau32: return "Tau32";
261  case Tau21WTA: return "Tau21WTA";
262  case Tau32WTA: return "Tau32WTA";
263  case D2Beta1: return "D2Beta1";
264  case C2Beta1: return "C2Beta1";
265  case Qw: return "Qw";
266  case MassRes: return "MassRes";
267  case MassResAbs: return "MassResAbs";
268  case PtRes: return "PtRes";
269  case PtResAbs: return "PtResAbs";
270  case FourVecRes: return "FourVecRes";
271  case FourVecResAbs: return "FourVecResAbs";
272  case TagScaleFactor:return "TagScaleFactor";
273  case TagEfficiency: return "TagEfficiency";
274  default: return "UNKNOWN";
275  }
276  }

◆ isAbsResolutionType()

bool jet::CompScaleVar::isAbsResolutionType ( const TypeEnum  type)

Definition at line 365 of file UncertaintyEnum.cxx.

366  {
367  switch (type)
368  {
369  case MassResAbs:
370  case PtResAbs:
371  case FourVecResAbs:
372  return true;
373 
374  default:
375  return false;
376  }
377  }

◆ isRelResolutionType()

bool jet::CompScaleVar::isRelResolutionType ( const TypeEnum  type)

Definition at line 379 of file UncertaintyEnum.cxx.

380  {
381  switch (type)
382  {
383  case MassRes:
384  case PtRes:
385  case FourVecRes:
386  return true;
387 
388  default:
389  return false;
390  }
391  }

◆ isResolutionType()

bool jet::CompScaleVar::isResolutionType ( const TypeEnum  type)

Definition at line 348 of file UncertaintyEnum.cxx.

349  {
350  switch (type)
351  {
352  case MassRes:
353  case MassResAbs:
354  case PtRes:
355  case PtResAbs:
356  case FourVecRes:
357  case FourVecResAbs:
358  return true;
359 
360  default:
361  return false;
362  }
363  }

◆ isScaleType()

bool jet::CompScaleVar::isScaleType ( const TypeEnum  type)

Definition at line 323 of file UncertaintyEnum.cxx.

324  {
325  switch (type)
326  {
327  case FourVec:
328  case Pt:
329  case Mass:
330  case D12:
331  case D23:
332  case Tau21:
333  case Tau32:
334  case Tau21WTA:
335  case Tau32WTA:
336  case D2Beta1:
337  case C2Beta1:
338  case Qw:
339  case TagScaleFactor:
340  case TagEfficiency:
341  return true;
342 
343  default:
344  return false;
345  }
346  }

◆ stringToEnum()

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

Definition at line 278 of file UncertaintyEnum.cxx.

279  {
280  if (!type.CompareTo("FourVec",TString::kIgnoreCase) || !type.CompareTo("4Vec",TString::kIgnoreCase) || !type.CompareTo("FourVector",TString::kIgnoreCase))
281  return FourVec;
282  if (!type.CompareTo("Pt",TString::kIgnoreCase))
283  return Pt;
284  if (!type.CompareTo("Mass",TString::kIgnoreCase))
285  return Mass;
286  if (!type.CompareTo("D12",TString::kIgnoreCase) || !type.CompareTo("Split12",TString::kIgnoreCase))
287  return D12;
288  if (!type.CompareTo("D23",TString::kIgnoreCase) || !type.CompareTo("Split23",TString::kIgnoreCase))
289  return D23;
290  if (!type.CompareTo("Tau21",TString::kIgnoreCase))
291  return Tau21;
292  if (!type.CompareTo("Tau32",TString::kIgnoreCase))
293  return Tau32;
294  if (!type.CompareTo("Tau21WTA",TString::kIgnoreCase))
295  return Tau21WTA;
296  if (!type.CompareTo("Tau32WTA",TString::kIgnoreCase))
297  return Tau32WTA;
298  if (!type.CompareTo("D2Beta1",TString::kIgnoreCase))
299  return D2Beta1;
300  if (!type.CompareTo("C2Beta1",TString::kIgnoreCase))
301  return C2Beta1;
302  if (!type.CompareTo("Qw",TString::kIgnoreCase))
303  return Qw;
304  if (!type.CompareTo("MassRes",TString::kIgnoreCase))
305  return MassRes;
306  if (!type.CompareTo("MassResAbs",TString::kIgnoreCase))
307  return MassResAbs;
308  if (!type.CompareTo("PtRes",TString::kIgnoreCase))
309  return PtRes;
310  if (!type.CompareTo("PtResAbs",TString::kIgnoreCase))
311  return PtResAbs;
312  if (!type.CompareTo("FourVecRes",TString::kIgnoreCase))
313  return FourVecRes;
314  if (!type.CompareTo("FourVecResAbs",TString::kIgnoreCase))
315  return FourVecResAbs;
316  if (!type.CompareTo("TagScaleFactor",TString::kIgnoreCase))
317  return TagScaleFactor;
318  if (!type.CompareTo("TagEfficiency",TString::kIgnoreCase))
319  return TagEfficiency;
320  return UNKNOWN;
321  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
jet::CompScaleVar::D2Beta1
@ D2Beta1
Definition: UncertaintyEnum.h:105
jet::CompScaleVar::FourVecResAbs
@ FourVecResAbs
Definition: UncertaintyEnum.h:117
jet::CompScaleVar::MassRes
@ MassRes
Definition: UncertaintyEnum.h:112
jet::CompScaleVar::D23
@ D23
Definition: UncertaintyEnum.h:100
jet::CompScaleVar::FourVec
@ FourVec
Definition: UncertaintyEnum.h:96
jet::CompScaleVar::C2Beta1
@ C2Beta1
Definition: UncertaintyEnum.h:106
jet::CompScaleVar::Pt
@ Pt
Definition: UncertaintyEnum.h:97
jet::CompScaleVar::TagEfficiency
@ TagEfficiency
Definition: UncertaintyEnum.h:109
jet::CompScaleVar::FourVecRes
@ FourVecRes
Definition: UncertaintyEnum.h:116
jet::CompScaleVar::Qw
@ Qw
Definition: UncertaintyEnum.h:107
jet::CompScaleVar::Mass
@ Mass
Definition: UncertaintyEnum.h:98
jet::CompScaleVar::D12
@ D12
Definition: UncertaintyEnum.h:99
jet::CompScaleVar::TagScaleFactor
@ TagScaleFactor
Definition: UncertaintyEnum.h:108
jet::CompScaleVar::PtResAbs
@ PtResAbs
Definition: UncertaintyEnum.h:115
jet::CompScaleVar::PtRes
@ PtRes
Definition: UncertaintyEnum.h:114
jet::CompScaleVar::Tau21WTA
@ Tau21WTA
Definition: UncertaintyEnum.h:103
Prompt::Def::Pt
@ Pt
Definition: VarHolder.h:76
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::CompScaleVar::Tau32
@ Tau32
Definition: UncertaintyEnum.h:102
jet::CompScaleVar::Tau32WTA
@ Tau32WTA
Definition: UncertaintyEnum.h:104
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242
jet::CompScaleVar::Tau21
@ Tau21
Definition: UncertaintyEnum.h:101
jet::CompScaleVar::MassResAbs
@ MassResAbs
Definition: UncertaintyEnum.h:113