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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, Response, Composition, bJES,
  PerJetResponse, PerJetResponse_Gluon, PerJetResponse_LQ, PerJetResponse_B,
  PerJetResponse_C
}
 

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
Response 
Composition 
bJES 
PerJetResponse 
PerJetResponse_Gluon 
PerJetResponse_LQ 
PerJetResponse_B 
PerJetResponse_C 

Definition at line 176 of file UncertaintyEnum.h.

177  {
178  UNKNOWN=0, // Failure/unset/etc
179  Response, // Flavour response
180  Composition, // Flavour compositon
181  bJES, // bJES response
182  PerJetResponse, // Per-jet flavour response
183  PerJetResponse_Gluon, // Per-jet flavour response
187  };

Function Documentation

◆ enumToString()

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

Definition at line 526 of file UncertaintyEnum.cxx.

527  {
528  switch (type)
529  {
530  case Response: return "FlavourResponse";
531  case Composition: return "FlavourComposition";
532  case bJES: return "bJES";
533  case PerJetResponse: return "PerJetFlavourResponse";
534  case PerJetResponse_Gluon: return "PerJetFlavourResponse_Gluon";
535  case PerJetResponse_LQ: return "PerJetFlavourResponse_LQ";
536  case PerJetResponse_B: return "PerJetFlavourResponse_B";
537  case PerJetResponse_C: return "PerJetFlavourResponse_C";
538  default: return "UNKNOWN";
539  }
540  }

◆ stringToEnum()

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

Definition at line 542 of file UncertaintyEnum.cxx.

543  {
544  if (type.Contains("Flavour",TString::kIgnoreCase) || type.Contains("Flavor",TString::kIgnoreCase))
545  {
546  if (type.Contains("Response",TString::kIgnoreCase))
547  {
548  if (type.Contains("PerJet",TString::kIgnoreCase)){
549  if(type.Contains("Response_Gluon",TString::kIgnoreCase)) return PerJetResponse_Gluon;
550  else if(type.Contains("Response_LQ",TString::kIgnoreCase)) return PerJetResponse_LQ;
551  else if(type.Contains("Response_B",TString::kIgnoreCase)) return PerJetResponse_B;
552  else if(type.Contains("Response_C",TString::kIgnoreCase)) return PerJetResponse_C;
553  else return PerJetResponse;
554  }
555  else{
556  return Response;
557  }
558  }
559  if (type.Contains("Composition",TString::kIgnoreCase))
560  return Composition;
561  }
562  if (type.Contains("bJES",TString::kIgnoreCase))
563  return bJES;
564  return UNKNOWN;
565  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
jet::FlavourComp::PerJetResponse_C
@ PerJetResponse_C
Definition: UncertaintyEnum.h:186
jet::FlavourComp::PerJetResponse_B
@ PerJetResponse_B
Definition: UncertaintyEnum.h:185
jet::FlavourComp::bJES
@ bJES
Definition: UncertaintyEnum.h:181
jet::FlavourComp::PerJetResponse_Gluon
@ PerJetResponse_Gluon
Definition: UncertaintyEnum.h:183
jet::FlavourComp::Composition
@ Composition
Definition: UncertaintyEnum.h:180
jet::FlavourComp::PerJetResponse
@ PerJetResponse
Definition: UncertaintyEnum.h:182
jet::FlavourComp::Response
@ Response
Definition: UncertaintyEnum.h:179
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242
jet::FlavourComp::PerJetResponse_LQ
@ PerJetResponse_LQ
Definition: UncertaintyEnum.h:184