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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, OffsetNPV, OffsetMu, PtTerm,
  RhoTopology
}
 

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
OffsetNPV 
OffsetMu 
PtTerm 
RhoTopology 

Definition at line 162 of file UncertaintyEnum.h.

163  {
164  UNKNOWN=0, // Failure/unset/etc
165  OffsetNPV, // NPV based pileup offset
166  OffsetMu, // mu based pileup offset
167  PtTerm, // pT based systematic (both NPV and mu dependence)
168  RhoTopology // Rho topology systematic (no NPV or mu dependence, but pileup anyway)
169  };

Function Documentation

◆ enumToString()

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

Definition at line 488 of file UncertaintyEnum.cxx.

489  {
490  switch (type)
491  {
492  case OffsetNPV: return "Pileup_OffsetNPV";
493  case OffsetMu: return "Pileup_OffsetMu";
494  case PtTerm: return "Pileup_PtTerm";
495  case RhoTopology: return "Pileup_RhoTopology";
496  default: return "UNKNOWN";
497  }
498  }

◆ stringToEnum()

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

Definition at line 500 of file UncertaintyEnum.cxx.

501  {
502  if (type.Contains("Pileup",TString::kIgnoreCase))
503  {
504  if (type.Contains("OffsetNPV",TString::kIgnoreCase))
505  return OffsetNPV;
506  if (type.Contains("OffsetMu",TString::kIgnoreCase))
507  return OffsetMu;
508  if (type.Contains("PtTerm",TString::kIgnoreCase))
509  return PtTerm;
510  if (type.Contains("RhoTopology",TString::kIgnoreCase))
511  return RhoTopology;
512  }
513  return UNKNOWN;
514  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
jet::PileupComp::RhoTopology
@ RhoTopology
Definition: UncertaintyEnum.h:168
jet::PileupComp::PtTerm
@ PtTerm
Definition: UncertaintyEnum.h:167
jet::PileupComp::OffsetNPV
@ OffsetNPV
Definition: UncertaintyEnum.h:165
jet::PileupComp::OffsetMu
@ OffsetMu
Definition: UncertaintyEnum.h:166
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242