CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
HGCalTileIndex Namespace Reference

Functions

bool tileExist (const int32_t *hex, int32_t zside, int32_t phi)
 
int32_t tileIndex (int32_t layer, int32_t ring, int32_t phi)
 
int32_t tileLayer (int32_t index)
 
int32_t tilePack (int32_t ly, int32_t k1, int32_t k2)
 
int32_t tilePhi (int32_t index)
 
int32_t tileProperty (int32_t, int32_t)
 
int32_t tileRing (int32_t index)
 
int32_t tileSiPM (int32_t)
 
int32_t tileType (int32_t)
 
std::tuple< int32_t, int32_t,
int32_t > 
tileUnpack (int32_t index)
 

Function Documentation

bool HGCalTileIndex::tileExist ( const int32_t *  hex,
int32_t  zside,
int32_t  phi 
)

Definition at line 52 of file HGCalTileIndex.cc.

References findQualityFiles::jj, HGCalProperty::kHGCalTilePhis, HGCalProperty::kHGCalTilePhisBy12, HGCalProperty::kHGCalTilePhisBy2, HGCalProperty::kHGCalTilePhisBy3, convertSQLiteXML::ok, and PVValHelper::phi.

Referenced by HGCalDDDConstants::tileExist().

52  {
53  int32_t phi(iphi - 1);
54  if (zside > 0) {
58  }
60  int32_t iw = jj / HGCalProperty::kHGCalTilePhisBy12;
62  bool ok = (hex[iw] & (1 << ibit));
63  return ok;
64 }
constexpr int32_t kHGCalTilePhisBy3
Definition: HGCalProperty.h:47
constexpr int32_t kHGCalTilePhisBy12
Definition: HGCalProperty.h:48
int zside(DetId const &)
constexpr int32_t kHGCalTilePhis
Definition: HGCalProperty.h:45
constexpr int32_t kHGCalTilePhisBy2
Definition: HGCalProperty.h:46
int32_t HGCalTileIndex::tileIndex ( int32_t  layer,
int32_t  ring,
int32_t  phi 
)

Definition at line 4 of file HGCalTileIndex.cc.

References gpuClustering::id, HGCalProperty::kHGCalLayerMask, HGCalProperty::kHGCalLayerOffset, HGCalProperty::kHGCalPhiMask, HGCalProperty::kHGCalPhiOffset, HGCalProperty::kHGCalRingMask, and HGCalProperty::kHGCalRingOffset.

Referenced by HGCalDDDConstants::tileCount(), HGCalDDDConstants::tileExist(), and HGCalDDDConstants::tileType().

4  {
5  int32_t id(0);
9  return id;
10 }
uint16_t *__restrict__ id
constexpr std::array< uint8_t, layerIndexSize > layer
constexpr int32_t kHGCalRingMask
Definition: HGCalProperty.h:34
constexpr int32_t kHGCalPhiOffset
Definition: HGCalProperty.h:31
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:28
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:29
constexpr int32_t kHGCalPhiMask
Definition: HGCalProperty.h:32
constexpr int32_t kHGCalRingOffset
Definition: HGCalProperty.h:33
int32_t HGCalTileIndex::tileLayer ( int32_t  index)

Definition at line 12 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalLayerMask, and HGCalProperty::kHGCalLayerOffset.

12  {
14 }
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:28
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:29
int32_t HGCalTileIndex::tilePack ( int32_t  ly,
int32_t  k1,
int32_t  k2 
)

Definition at line 37 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalTilePack.

37  {
38  return (
39  ((ly % HGCalProperty::kHGCalTilePack) * HGCalProperty::kHGCalTilePack + (k1 % HGCalProperty::kHGCalTilePack)) *
40  HGCalProperty::kHGCalTilePack +
41  (k2 % HGCalProperty::kHGCalTilePack));
42 }
constexpr int32_t kHGCalTilePack
Definition: HGCalProperty.h:43
int32_t HGCalTileIndex::tilePhi ( int32_t  index)

Definition at line 20 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalPhiMask, and HGCalProperty::kHGCalPhiOffset.

20  {
22 }
constexpr int32_t kHGCalPhiOffset
Definition: HGCalProperty.h:31
constexpr int32_t kHGCalPhiMask
Definition: HGCalProperty.h:32
int32_t HGCalTileIndex::tileProperty ( int32_t  type,
int32_t  sipm 
)

Definition at line 24 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalFactor, HGCalProperty::kHGCalOffsetSiPM, and HGCalProperty::kHGCalOffsetType.

24  {
26  ((sipm % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetSiPM));
27 }
constexpr int32_t kHGCalOffsetSiPM
Definition: HGCalProperty.h:42
constexpr int32_t kHGCalFactor
Definition: HGCalProperty.h:36
constexpr int32_t kHGCalOffsetType
Definition: HGCalProperty.h:41
int32_t HGCalTileIndex::tileRing ( int32_t  index)

Definition at line 16 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalRingMask, and HGCalProperty::kHGCalRingOffset.

16  {
18 }
constexpr int32_t kHGCalRingMask
Definition: HGCalProperty.h:34
constexpr int32_t kHGCalRingOffset
Definition: HGCalProperty.h:33
int32_t HGCalTileIndex::tileSiPM ( int32_t  property)

Definition at line 33 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalFactor, and HGCalProperty::kHGCalOffsetSiPM.

33  {
35 }
constexpr int32_t kHGCalOffsetSiPM
Definition: HGCalProperty.h:42
constexpr int32_t kHGCalFactor
Definition: HGCalProperty.h:36
int32_t HGCalTileIndex::tileType ( int32_t  property)

Definition at line 29 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalFactor, and HGCalProperty::kHGCalOffsetType.

29  {
31 }
constexpr int32_t kHGCalFactor
Definition: HGCalProperty.h:36
constexpr int32_t kHGCalOffsetType
Definition: HGCalProperty.h:41
std::tuple< int32_t, int32_t, int32_t > HGCalTileIndex::tileUnpack ( int32_t  index)