ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Static Private Attributes | List of all members
CaloRecGPU::OtherCellInfo Class Reference

#include <ConstantInfoDefinitions.h>

Collaboration diagram for CaloRecGPU::OtherCellInfo:

Public Types

using carrier = unsigned int
 

Public Member Functions

constexpr operator carrier () const
 
constexpr OtherCellInfo (const carrier v)
 
constexpr OtherCellInfooperator= (const carrier v)
 
constexpr carrier sampling () const
 
constexpr carrier intra_calorimeter_sampling () const
 
constexpr carrier subcalo () const
 
constexpr carrier region () const
 
constexpr bool is_HECIW_or_FCal () const
 
constexpr bool is_PS () const
 
constexpr OtherCellInfo (const carrier sampling, const carrier intra_calo_sampling, const carrier subcalo, const carrier region, const bool PS, const bool HECIW_or_FCal)
 

Public Attributes

carrier value
 

Static Private Attributes

static constexpr carrier s_sampling_mask = 0x0000001FU
 
static constexpr carrier s_intra_sampling_mask = 0x000000E0U
 
static constexpr carrier s_subcalo_mask = 0x00000700U
 
static constexpr carrier s_region_mask = 0x00003800U
 
static constexpr carrier s_is_PS_flag = 0x00004000U
 
static constexpr carrier s_is_HECIW_FCal_flag = 0x00008000U
 
static constexpr carrier s_sampling_offset = 0
 
static constexpr carrier s_intra_sampling_offset = 5
 
static constexpr carrier s_subcalo_offset = 8
 
static constexpr carrier s_region_offset = 11
 
static constexpr carrier s_bits_used
 
static constexpr carrier s_bits_unused = ~s_bits_used
 

Detailed Description

Packs the calo sampling, the intra-calorimeter sampling, the subcalo, the region and whether the cell should have its neighbours limited according to the PS and HEICW and FCal options.

Possibly extensible with more information, as we have 16 bits still free...

Definition at line 124 of file ConstantInfoDefinitions.h.

Member Typedef Documentation

◆ carrier

using CaloRecGPU::OtherCellInfo::carrier = unsigned int

Definition at line 126 of file ConstantInfoDefinitions.h.

Constructor & Destructor Documentation

◆ OtherCellInfo() [1/2]

constexpr CaloRecGPU::OtherCellInfo::OtherCellInfo ( const carrier  v)
inlineconstexpr

Definition at line 161 of file ConstantInfoDefinitions.h.

161  : value(v)
162  {
163  }

◆ OtherCellInfo() [2/2]

constexpr CaloRecGPU::OtherCellInfo::OtherCellInfo ( const carrier  sampling,
const carrier  intra_calo_sampling,
const carrier  subcalo,
const carrier  region,
const bool  PS,
const bool  HECIW_or_FCal 
)
inlineconstexpr

Definition at line 201 of file ConstantInfoDefinitions.h.

206  :
207  value(0)
208  {
209  value = ( sampling << s_sampling_offset ) |
210  ( intra_calo_sampling << s_intra_sampling_offset ) |
211  ( subcalo << s_subcalo_offset ) |
212  ( region << s_region_offset ) |
213  ( s_is_PS_flag * PS ) |
214  ( s_is_HECIW_FCal_flag * HECIW_or_FCal );
215  }

Member Function Documentation

◆ intra_calorimeter_sampling()

constexpr carrier CaloRecGPU::OtherCellInfo::intra_calorimeter_sampling ( ) const
inlineconstexpr

Definition at line 176 of file ConstantInfoDefinitions.h.

177  {
179  }

◆ is_HECIW_or_FCal()

constexpr bool CaloRecGPU::OtherCellInfo::is_HECIW_or_FCal ( ) const
inlineconstexpr

Definition at line 191 of file ConstantInfoDefinitions.h.

192  {
193  return value & s_is_HECIW_FCal_flag;
194  }

◆ is_PS()

constexpr bool CaloRecGPU::OtherCellInfo::is_PS ( ) const
inlineconstexpr

Definition at line 196 of file ConstantInfoDefinitions.h.

197  {
198  return value & s_is_PS_flag;
199  }

◆ operator carrier()

constexpr CaloRecGPU::OtherCellInfo::operator carrier ( ) const
inlineconstexpr

Definition at line 156 of file ConstantInfoDefinitions.h.

157  {
158  return value;
159  }

◆ operator=()

constexpr OtherCellInfo& CaloRecGPU::OtherCellInfo::operator= ( const carrier  v)
inlineconstexpr

Definition at line 165 of file ConstantInfoDefinitions.h.

166  {
167  value = v;
168  return (*this);
169  }

◆ region()

constexpr carrier CaloRecGPU::OtherCellInfo::region ( ) const
inlineconstexpr

Definition at line 186 of file ConstantInfoDefinitions.h.

187  {
188  return (value & s_region_mask) >> s_region_offset;
189  }

◆ sampling()

constexpr carrier CaloRecGPU::OtherCellInfo::sampling ( ) const
inlineconstexpr

Definition at line 171 of file ConstantInfoDefinitions.h.

172  {
174  }

◆ subcalo()

constexpr carrier CaloRecGPU::OtherCellInfo::subcalo ( ) const
inlineconstexpr

Definition at line 181 of file ConstantInfoDefinitions.h.

182  {
183  return (value & s_subcalo_mask) >> s_subcalo_offset;
184  }

Member Data Documentation

◆ s_bits_unused

constexpr carrier CaloRecGPU::OtherCellInfo::s_bits_unused = ~s_bits_used
staticconstexprprivate

Definition at line 152 of file ConstantInfoDefinitions.h.

◆ s_bits_used

constexpr carrier CaloRecGPU::OtherCellInfo::s_bits_used
staticconstexprprivate

◆ s_intra_sampling_mask

constexpr carrier CaloRecGPU::OtherCellInfo::s_intra_sampling_mask = 0x000000E0U
staticconstexprprivate

Definition at line 133 of file ConstantInfoDefinitions.h.

◆ s_intra_sampling_offset

constexpr carrier CaloRecGPU::OtherCellInfo::s_intra_sampling_offset = 5
staticconstexprprivate

Definition at line 141 of file ConstantInfoDefinitions.h.

◆ s_is_HECIW_FCal_flag

constexpr carrier CaloRecGPU::OtherCellInfo::s_is_HECIW_FCal_flag = 0x00008000U
staticconstexprprivate

Definition at line 138 of file ConstantInfoDefinitions.h.

◆ s_is_PS_flag

constexpr carrier CaloRecGPU::OtherCellInfo::s_is_PS_flag = 0x00004000U
staticconstexprprivate

Definition at line 137 of file ConstantInfoDefinitions.h.

◆ s_region_mask

constexpr carrier CaloRecGPU::OtherCellInfo::s_region_mask = 0x00003800U
staticconstexprprivate

Definition at line 135 of file ConstantInfoDefinitions.h.

◆ s_region_offset

constexpr carrier CaloRecGPU::OtherCellInfo::s_region_offset = 11
staticconstexprprivate

Definition at line 143 of file ConstantInfoDefinitions.h.

◆ s_sampling_mask

constexpr carrier CaloRecGPU::OtherCellInfo::s_sampling_mask = 0x0000001FU
staticconstexprprivate

Definition at line 132 of file ConstantInfoDefinitions.h.

◆ s_sampling_offset

constexpr carrier CaloRecGPU::OtherCellInfo::s_sampling_offset = 0
staticconstexprprivate

Definition at line 140 of file ConstantInfoDefinitions.h.

◆ s_subcalo_mask

constexpr carrier CaloRecGPU::OtherCellInfo::s_subcalo_mask = 0x00000700U
staticconstexprprivate

Definition at line 134 of file ConstantInfoDefinitions.h.

◆ s_subcalo_offset

constexpr carrier CaloRecGPU::OtherCellInfo::s_subcalo_offset = 8
staticconstexprprivate

Definition at line 142 of file ConstantInfoDefinitions.h.

◆ value

carrier CaloRecGPU::OtherCellInfo::value

Definition at line 128 of file ConstantInfoDefinitions.h.


The documentation for this class was generated from the following file:
CaloRecGPU::OtherCellInfo::subcalo
constexpr carrier subcalo() const
Definition: ConstantInfoDefinitions.h:181
CaloRecGPU::OtherCellInfo::s_is_PS_flag
static constexpr carrier s_is_PS_flag
Definition: ConstantInfoDefinitions.h:137
CaloRecGPU::OtherCellInfo::s_region_offset
static constexpr carrier s_region_offset
Definition: ConstantInfoDefinitions.h:143
CaloRecGPU::OtherCellInfo::s_sampling_offset
static constexpr carrier s_sampling_offset
Definition: ConstantInfoDefinitions.h:140
Ringer::PS
@ PS
Definition: CaloRingsDefs.h:46
CaloRecGPU::OtherCellInfo::s_region_mask
static constexpr carrier s_region_mask
Definition: ConstantInfoDefinitions.h:135
CaloRecGPU::OtherCellInfo::s_subcalo_offset
static constexpr carrier s_subcalo_offset
Definition: ConstantInfoDefinitions.h:142
CaloRecGPU::OtherCellInfo::s_sampling_mask
static constexpr carrier s_sampling_mask
Definition: ConstantInfoDefinitions.h:132
python.PyAthena.v
v
Definition: PyAthena.py:154
CaloRecGPU::OtherCellInfo::value
carrier value
Definition: ConstantInfoDefinitions.h:128
CaloRecGPU::OtherCellInfo::s_subcalo_mask
static constexpr carrier s_subcalo_mask
Definition: ConstantInfoDefinitions.h:134
CaloRecGPU::OtherCellInfo::sampling
constexpr carrier sampling() const
Definition: ConstantInfoDefinitions.h:171
CaloRecGPU::OtherCellInfo::s_intra_sampling_offset
static constexpr carrier s_intra_sampling_offset
Definition: ConstantInfoDefinitions.h:141
CaloRecGPU::OtherCellInfo::region
constexpr carrier region() const
Definition: ConstantInfoDefinitions.h:186
CaloRecGPU::OtherCellInfo::s_intra_sampling_mask
static constexpr carrier s_intra_sampling_mask
Definition: ConstantInfoDefinitions.h:133
CaloRecGPU::OtherCellInfo::s_is_HECIW_FCal_flag
static constexpr carrier s_is_HECIW_FCal_flag
Definition: ConstantInfoDefinitions.h:138