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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, None, Full, OnlyX,
  OnlyY
}
 

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
None 
Full 
OnlyX 
OnlyY 

Definition at line 240 of file UncertaintyEnum.h.

241  {
242  UNKNOWN=0, // Failure/unset/etc
243  None, // No interpolation
244  Full, // Full interpolation
245  OnlyX, // Interpolate only in the x-direction (hold y,z fixed)
246  OnlyY // Interpolate only in the y-direction (hold x,z fixed)
247  };

Function Documentation

◆ enumToString()

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

Definition at line 645 of file UncertaintyEnum.cxx.

646  {
647  switch(type)
648  {
649  case None: return "None";
650  case Full: return "Full";
651  case OnlyX: return "X";
652  case OnlyY: return "Y";
653  default: return "UNKNOWN";
654  }
655  }

◆ stringToEnum()

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

Definition at line 657 of file UncertaintyEnum.cxx.

658  {
659  if (!type.CompareTo("None",TString::kIgnoreCase) || !type.CompareTo("false",TString::kIgnoreCase))
660  return None;
661  if (!type.CompareTo("Full",TString::kIgnoreCase) || !type.CompareTo("true",TString::kIgnoreCase))
662  return Full;
663  if (!type.CompareTo("OnlyX",TString::kIgnoreCase))
664  return OnlyX;
665  if (!type.CompareTo("OnlyY",TString::kIgnoreCase))
666  return OnlyY;
667  return UNKNOWN;
668  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
CaloCellPos2Ntuple.None
None
Definition: CaloCellPos2Ntuple.py:23
jet::Interpolate::None
@ None
Definition: UncertaintyEnum.h:243
jet::Interpolate::OnlyY
@ OnlyY
Definition: UncertaintyEnum.h:246
jet::Interpolate::OnlyX
@ OnlyX
Definition: UncertaintyEnum.h:245
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242
ParticleDataType::Full
@ Full
Definition: Event/EventKernel/EventKernel/IParticle.h:36
jet::Interpolate::Full
@ Full
Definition: UncertaintyEnum.h:244