ATLAS Offline Software
Enumerations | Functions
TagResult Namespace Reference

Enumerations

enum  TypeEnum {
  UNKNOWN =0, passMpassD2_2Var, passMfailD2_2Var, failMpassD2_2Var,
  failMfailD2_2Var
}
 

Functions

int enumToInt (const TypeEnum type)
 
TypeEnum intToEnum (const int type)
 

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
passMpassD2_2Var 
passMfailD2_2Var 
failMpassD2_2Var 
failMfailD2_2Var 

Definition at line 10 of file TagResultEnum.h.

11  {
12  UNKNOWN=0, // not tagged yet
17  };

Function Documentation

◆ enumToInt()

int TagResult::enumToInt ( const TypeEnum  type)
inline

Definition at line 18 of file TagResultEnum.h.

19  {
20  switch (type)
21  {
22  case passMpassD2_2Var: return 1;
23  case passMfailD2_2Var: return 2;
24  case failMpassD2_2Var: return 3;
25  case failMfailD2_2Var: return 4;
26  default: return 0;
27  }
28  }

◆ intToEnum()

TypeEnum TagResult::intToEnum ( const int  type)
inline

Definition at line 29 of file TagResultEnum.h.

30  {
31  if ( type==1 ){
32  return passMpassD2_2Var;
33  }else if ( type==2 ){
34  return passMfailD2_2Var;
35  }else if ( type==3 ){
36  return failMpassD2_2Var;
37  }else if ( type==4 ){
38  return failMfailD2_2Var;
39  }
40 
41  return UNKNOWN;
42  }
TagResult::passMpassD2_2Var
@ passMpassD2_2Var
Definition: TagResultEnum.h:13
TagResult::failMpassD2_2Var
@ failMpassD2_2Var
Definition: TagResultEnum.h:15
TagResult::UNKNOWN
@ UNKNOWN
Definition: TagResultEnum.h:12
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TagResult::passMfailD2_2Var
@ passMfailD2_2Var
Definition: TagResultEnum.h:14
TagResult::failMfailD2_2Var
@ failMfailD2_2Var
Definition: TagResultEnum.h:16