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

Enumerations

enum  TypeEnum {
  UNKNOWN =0, FourVecMass, CaloMass, TAMass,
  CombMassQCD, CombMassWZ, CombMassHbb, CombMassTop
}
 

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
FourVecMass 
CaloMass 
TAMass 
CombMassQCD 
CombMassWZ 
CombMassHbb 
CombMassTop 

Definition at line 70 of file UncertaintyEnum.h.

71  {
72  UNKNOWN=0, // Failure/unset/etc
73  FourVecMass, // Mass directly from the four-vector
74  CaloMass, // Calorimeter jet mass
75  TAMass, // Track-assisted jet mass = (mTrack/pTtrack) * pTcalo
76  CombMassQCD, // Combined jet mass = mCalo*wCalo + mTA*wTA, QCD weights
77  CombMassWZ, // Combined jet mass = mCalo*wCalo + mTA*wTA, W/Z weights
78  CombMassHbb, // Combined jet mass = mCalo*wCalo + mTA*wTA, Hbb weights
79  CombMassTop // Combined jet mass = mCalo*wCalo + mTA*wTA, Top weights
80  };

Function Documentation

◆ enumToString()

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

Definition at line 188 of file UncertaintyEnum.cxx.

189  {
190  switch(type)
191  {
192  case FourVecMass: return "FourVec";
193  case CaloMass: return "Calo";
194  case TAMass: return "TA";
195  case CombMassQCD: return "CombQCD";
196  case CombMassWZ: return "CombWZ";
197  case CombMassHbb: return "CombHbb";
198  case CombMassTop: return "CombTop";
199  default: return "UNKNOWN";
200  }
201  }

◆ getJetScaleString()

TString jet::CompMassDef::getJetScaleString ( const TypeEnum  type)

Definition at line 225 of file UncertaintyEnum.cxx.

226  {
227  switch(type)
228  {
229  case CaloMass: return "JetJMSScaleMomentumCalo";
230  case TAMass: return "JetJMSScaleMomentumTA";
231  case CombMassQCD: return "JetJMSScaleMomentumCombQCD";
232  case CombMassWZ: return "JetJMSScaleMomentumCombWZ";
233  case CombMassHbb: return "JetJMSScaleMomentumCombHbb";
234  case CombMassTop: return "JetJMSScaleMomentumCombTop";
235  default: return "UNKNOWN_JET_MASS_SCALE";
236 
237  }
238  }

◆ stringToEnum()

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

Definition at line 203 of file UncertaintyEnum.cxx.

204  {
205  if (!type.CompareTo("FourVec",TString::kIgnoreCase) || !type.CompareTo("FourVector",TString::kIgnoreCase))
206  return FourVecMass;
207  if (!type.CompareTo("Calo",TString::kIgnoreCase) || !type.CompareTo("Calorimeter",TString::kIgnoreCase))
208  return CaloMass;
209  if (!type.CompareTo("TA",TString::kIgnoreCase) || !type.CompareTo("TrackAssisted",TString::kIgnoreCase))
210  return TAMass;
211  if (type.BeginsWith("Comb",TString::kIgnoreCase) || type.BeginsWith("Combined",TString::kIgnoreCase))
212  {
213  if (type.EndsWith("QCD",TString::kIgnoreCase))
214  return CombMassQCD;
215  if (type.EndsWith("WZ",TString::kIgnoreCase))
216  return CombMassWZ;
217  if (type.EndsWith("Hbb",TString::kIgnoreCase))
218  return CombMassHbb;
219  if (type.EndsWith("Top",TString::kIgnoreCase))
220  return CombMassTop;
221  }
222  return UNKNOWN;
223  }
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
jet::CompMassDef::CombMassTop
@ CombMassTop
Definition: UncertaintyEnum.h:79
jet::CompMassDef::FourVecMass
@ FourVecMass
Definition: UncertaintyEnum.h:73
jet::CompMassDef::CaloMass
@ CaloMass
Definition: UncertaintyEnum.h:74
jet::CompMassDef::CombMassHbb
@ CombMassHbb
Definition: UncertaintyEnum.h:78
jet::CompMassDef::CombMassWZ
@ CombMassWZ
Definition: UncertaintyEnum.h:77
jet::CompMassDef::TAMass
@ TAMass
Definition: UncertaintyEnum.h:75
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::CompMassDef::CombMassQCD
@ CombMassQCD
Definition: UncertaintyEnum.h:76
jet::Interpolate::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:242