CMS 3D CMS Logo

Functions
ecal::reconstruction Namespace Reference

Functions

__device__ uint32_t hashedIndexEB (uint32_t id)
 
__device__ uint32_t hashedIndexEE (uint32_t id)
 
__device__ int laser_monitoring_region_EB (uint32_t id)
 
__device__ int laser_monitoring_region_EE (uint32_t id)
 

Function Documentation

◆ hashedIndexEB()

__device__ uint32_t ecal::reconstruction::hashedIndexEB ( uint32_t  id)

Definition at line 99 of file KernelHelpers.dev.cc.

References Reference_intrackfit_cff::barrel, ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::ietaAbs(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::iphi(), EBDetId::MAX_IETA, EBDetId::MAX_IPHI, and ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::positiveZ().

Referenced by ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_prep_1d_and_initialize::operator()(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_minimize::operator()(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_prep_2d::operator()(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_time_computation_init::operator()(), and ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_time_correction_and_finalize::operator()().

99  {
100  using namespace internal::barrel;
101  return (EBDetId::MAX_IETA + (positiveZ(id) ? ietaAbs(id) - 1 : -ietaAbs(id))) * EBDetId::MAX_IPHI + iphi(id) - 1;
102  }
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iphi(uint32_t id)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ietaAbs(uint32_t id)
ALPAKA_FN_ACC ALPAKA_FN_INLINE bool positiveZ(uint32_t id)
static const int MAX_IPHI
Definition: EBDetId.h:137
static const int MAX_IETA
Definition: EBDetId.h:136

◆ hashedIndexEE()

__device__ uint32_t ecal::reconstruction::hashedIndexEE ( uint32_t  id)

Definition at line 227 of file KernelHelpers.dev.cc.

References makeMuonMisalignmentScenario::endcap, ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::ix(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::iy(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::kdi, EEDetId::kEEhalf, ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::kxf, and ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::positiveZ().

Referenced by ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_prep_1d_and_initialize::operator()(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_minimize::operator()(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_prep_2d::operator()(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_time_computation_init::operator()(), and ALPAKA_ACCELERATOR_NAMESPACE::ecal::multifit::Kernel_time_correction_and_finalize::operator()().

227  {
228  using namespace internal::endcap;
229 
230  const uint32_t jx(ix(id));
231  const uint32_t jd(2 * (iy(id) - 1) + (jx - 1) / 50);
232  return ((positiveZ(id) ? EEDetId::kEEhalf : 0) + kdi[jd] + jx - kxf[jd]);
233  }
static constexpr int kEEhalf
Definition: EEDetId.h:324
ALPAKA_FN_ACC ALPAKA_FN_INLINE bool positiveZ(uint32_t id)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
ALPAKA_STATIC_ACC_MEM_CONSTANT const unsigned short kdi[]
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
ALPAKA_STATIC_ACC_MEM_CONSTANT const unsigned short kxf[]

◆ laser_monitoring_region_EB()

__device__ int ecal::reconstruction::laser_monitoring_region_EB ( uint32_t  id)

◆ laser_monitoring_region_EE()

__device__ int ecal::reconstruction::laser_monitoring_region_EE ( uint32_t  id)