ATLAS Offline Software
Static Public Member Functions | Static Protected Attributes | List of all members
CaloRecGPU::ConstantEnumConversion Class Reference

#include <ConstantInfoDefinitions.h>

Collaboration diagram for CaloRecGPU::ConstantEnumConversion:

Static Public Member Functions

constexpr static int from_subcalo_enum (const int subcalo)
 
constexpr static int to_subcalo_enum (const int subcalo)
 
constexpr static int from_region_enum (const int region)
 
constexpr static int to_region_enum (const int region)
 
constexpr static int from_intra_calorimeter_sampling_enum (const int sampling)
 
constexpr static int to_intra_calorimeter_sampling_enum (const int sampling)
 

Static Protected Attributes

constexpr static int s_subcalo_unknown = 999999
 
constexpr static int s_subcalo_unknown_replacement = 7
 
constexpr static int s_region_unknown = 999999
 
constexpr static int s_region_unknown_replacement = 7
 
constexpr static int s_sampling_unknown = 999999
 
constexpr static int s_sampling_unknown_replacement = 7
 

Detailed Description

Definition at line 19 of file ConstantInfoDefinitions.h.

Member Function Documentation

◆ from_intra_calorimeter_sampling_enum()

constexpr static int CaloRecGPU::ConstantEnumConversion::from_intra_calorimeter_sampling_enum ( const int  sampling)
inlinestaticconstexpr

Definition at line 90 of file ConstantInfoDefinitions.h.

91  {
92  if (sampling == s_sampling_unknown)
93  {
95  }
96  else
97  {
98  return sampling;
99  }
100  }

◆ from_region_enum()

constexpr static int CaloRecGPU::ConstantEnumConversion::from_region_enum ( const int  region)
inlinestaticconstexpr

Definition at line 59 of file ConstantInfoDefinitions.h.

60  {
61  if (region == s_region_unknown)
62  {
64  }
65  else
66  {
67  return region;
68  }
69  }

◆ from_subcalo_enum()

constexpr static int CaloRecGPU::ConstantEnumConversion::from_subcalo_enum ( const int  subcalo)
inlinestaticconstexpr

Definition at line 28 of file ConstantInfoDefinitions.h.

29  {
30  if (subcalo == s_subcalo_unknown)
31  {
33  }
34  else
35  {
36  return subcalo;
37  }
38  }

◆ to_intra_calorimeter_sampling_enum()

constexpr static int CaloRecGPU::ConstantEnumConversion::to_intra_calorimeter_sampling_enum ( const int  sampling)
inlinestaticconstexpr

Definition at line 102 of file ConstantInfoDefinitions.h.

103  {
104  if (sampling == s_sampling_unknown_replacement)
105  {
106  return s_sampling_unknown;
107  }
108  else
109  {
110  return sampling;
111  }
112  }

◆ to_region_enum()

constexpr static int CaloRecGPU::ConstantEnumConversion::to_region_enum ( const int  region)
inlinestaticconstexpr

Definition at line 71 of file ConstantInfoDefinitions.h.

72  {
73  if (region == s_region_unknown_replacement)
74  {
75  return s_region_unknown;
76  }
77  else
78  {
79  return region;
80  }
81  }

◆ to_subcalo_enum()

constexpr static int CaloRecGPU::ConstantEnumConversion::to_subcalo_enum ( const int  subcalo)
inlinestaticconstexpr

Definition at line 40 of file ConstantInfoDefinitions.h.

41  {
42  if (subcalo == s_subcalo_unknown_replacement)
43  {
44  return s_subcalo_unknown;
45  }
46  else
47  {
48  return subcalo;
49  }
50  }

Member Data Documentation

◆ s_region_unknown

constexpr static int CaloRecGPU::ConstantEnumConversion::s_region_unknown = 999999
staticconstexprprotected

Definition at line 54 of file ConstantInfoDefinitions.h.

◆ s_region_unknown_replacement

constexpr static int CaloRecGPU::ConstantEnumConversion::s_region_unknown_replacement = 7
staticconstexprprotected

Definition at line 55 of file ConstantInfoDefinitions.h.

◆ s_sampling_unknown

constexpr static int CaloRecGPU::ConstantEnumConversion::s_sampling_unknown = 999999
staticconstexprprotected

Definition at line 85 of file ConstantInfoDefinitions.h.

◆ s_sampling_unknown_replacement

constexpr static int CaloRecGPU::ConstantEnumConversion::s_sampling_unknown_replacement = 7
staticconstexprprotected

Definition at line 86 of file ConstantInfoDefinitions.h.

◆ s_subcalo_unknown

constexpr static int CaloRecGPU::ConstantEnumConversion::s_subcalo_unknown = 999999
staticconstexprprotected

Definition at line 23 of file ConstantInfoDefinitions.h.

◆ s_subcalo_unknown_replacement

constexpr static int CaloRecGPU::ConstantEnumConversion::s_subcalo_unknown_replacement = 7
staticconstexprprotected

Definition at line 24 of file ConstantInfoDefinitions.h.


The documentation for this class was generated from the following file:
CaloRecGPU::ConstantEnumConversion::s_region_unknown
constexpr static int s_region_unknown
Definition: ConstantInfoDefinitions.h:54
CaloRecGPU::ConstantEnumConversion::s_region_unknown_replacement
constexpr static int s_region_unknown_replacement
Definition: ConstantInfoDefinitions.h:55
CaloRecGPU::ConstantEnumConversion::s_sampling_unknown
constexpr static int s_sampling_unknown
Definition: ConstantInfoDefinitions.h:85
CaloRecGPU::ConstantEnumConversion::s_sampling_unknown_replacement
constexpr static int s_sampling_unknown_replacement
Definition: ConstantInfoDefinitions.h:86
CaloRecGPU::ConstantEnumConversion::s_subcalo_unknown
constexpr static int s_subcalo_unknown
Definition: ConstantInfoDefinitions.h:23
CaloRecGPU::ConstantEnumConversion::s_subcalo_unknown_replacement
constexpr static int s_subcalo_unknown_replacement
Definition: ConstantInfoDefinitions.h:24