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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, QCD, WZ, Hbb,
  Top, MIXED
}
 

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
QCD 
WZ 
Hbb 
Top 
MIXED 

Definition at line 207 of file UncertaintyEnum.h.

208  {
209  UNKNOWN=0, // Failure/unset/etc
210  QCD, // QCD jet topology
211  WZ, // W/Z jet topology
212  Hbb, // Hbb jet topology
213  Top, // Top jet topology
214  MIXED // Mixed topology (multiple of the above)
215  };

Function Documentation

◆ enumToString()

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

Definition at line 609 of file UncertaintyEnum.cxx.

610  {
611  switch(type)
612  {
613  case QCD: return "QCD";
614  case WZ: return "WZ";
615  case Hbb: return "Hbb";
616  case Top: return "Top";
617  case MIXED: return "MIXED";
618  default: return "UNKNOWN";
619  }
620  }

◆ stringToEnum()

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

Definition at line 622 of file UncertaintyEnum.cxx.

623  {
624  if (!type.CompareTo("QCD",TString::kIgnoreCase))
625  return QCD;
626  if (!type.CompareTo("WZ",TString::kIgnoreCase))
627  return WZ;
628  if (!type.CompareTo("Hbb",TString::kIgnoreCase))
629  return Hbb;
630  if (!type.CompareTo("Top",TString::kIgnoreCase))
631  return Top;
632  return UNKNOWN;
633  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
jet::JetTopology::Top
@ Top
Definition: UncertaintyEnum.h:213
jet::JetTopology::WZ
@ WZ
Definition: UncertaintyEnum.h:211
LargeRJetTruthLabel::Hbb
@ Hbb
Definition: LargeRJetLabelEnum.h:26
QCD
@ QCD
Definition: TruthClasses.h:102
jet::JetTopology::MIXED
@ MIXED
Definition: UncertaintyEnum.h:214
jet::JetTopology::Hbb
@ Hbb
Definition: UncertaintyEnum.h:212
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242