ATLAS Offline Software
Loading...
Searching...
No Matches
jet::CombMassComp Namespace Reference

Enumerations

enum  TypeEnum { UNKNOWN =0 , Calo , TA , Both }

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
Calo 
TA 
Both 

Definition at line 194 of file UncertaintyEnum.h.

195 {
196 UNKNOWN=0, // Failure/unset/setc
197 Calo, // Calorimeter-only uncertainty
198 TA, // Track-assisted-only uncertainty
199 Both // Coherent calo and TA uncertainties
200 };

Function Documentation

◆ enumToString()

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

Definition at line 577 of file UncertaintyEnum.cxx.

578 {
579 switch(type)
580 {
581 case Calo: return "Calo";
582 case TA: return "TA";
583 case Both: return "Both";
584 default: return "UNKNOWN";
585 }
586 }

◆ stringToEnum()

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

Definition at line 588 of file UncertaintyEnum.cxx.

589 {
590 if (type.Contains("Calo",TString::kIgnoreCase))
591 return Calo;
592 if (type.Contains("TA",TString::kIgnoreCase))
593 return TA;
594 if (type.Contains("Both",TString::kIgnoreCase))
595 return Both;
596 return UNKNOWN;
597 }