CMS 3D CMS Logo

Functions
HGCalTileIndex Namespace Reference

Functions

int32_t tileCassette (int32_t, int32_t, int32_t, int32_t)
 
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

◆ tileCassette()

int32_t HGCalTileIndex::tileCassette ( int32_t  iphi,
int32_t  phiOffset,
int32_t  nphiCassette,
int32_t  cassettes 
)

Definition at line 24 of file HGCalTileIndex.cc.

References LEDCalibrationChannels::iphi, and gmt_cfi::phiOffset.

Referenced by HGCalDDDConstants::assignCellTrap(), HGCalDDDConstants::cassetteTile(), and HGCalDDDConstants::locateCellTrap().

24  {
25  int32_t cassette(0);
26  if (nphiCassette > 1) {
27  cassette = (iphi - phiOffset) / nphiCassette;
28  if (cassette < 0)
29  cassette += cassettes;
30  else if (cassette >= cassettes)
31  cassette = cassettes - 1;
32  }
33  return (cassette + 1);
34 }
phiOffset
Definition: gmt_cfi.py:37

◆ tileExist()

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

Definition at line 64 of file HGCalTileIndex.cc.

References LEDCalibrationChannels::iphi, findQualityFiles::jj, HGCalProperty::kHGCalTilePhis, HGCalProperty::kHGCalTilePhisBy12, HGCalProperty::kHGCalTilePhisBy2, HGCalProperty::kHGCalTilePhisBy3, convertSQLiteXML::ok, PVValHelper::phi, and ecaldqm::zside().

Referenced by HGCalDDDConstants::tileExist().

64  {
65  int32_t phi(iphi - 1);
66  if (zside > 0) {
70  }
74  bool ok = (hex[iw] & (1 << ibit));
75  return ok;
76 }
constexpr int32_t kHGCalTilePhisBy3
Definition: HGCalProperty.h:50
constexpr int32_t kHGCalTilePhisBy12
Definition: HGCalProperty.h:51
int zside(DetId const &)
constexpr int32_t kHGCalTilePhis
Definition: HGCalProperty.h:48
constexpr int32_t kHGCalTilePhisBy2
Definition: HGCalProperty.h:49

◆ tileIndex()

int32_t HGCalTileIndex::tileIndex ( int32_t  layer,
int32_t  ring,
int32_t  phi 
)

Definition at line 4 of file HGCalTileIndex.cc.

References l1ctLayer2EG_cff::id, HGCalProperty::kHGCalLayerMask, HGCalProperty::kHGCalLayerOffset, HGCalProperty::kHGCalPhiMask, HGCalProperty::kHGCalPhiOffset, HGCalProperty::kHGCalRingMask, HGCalProperty::kHGCalRingOffset, pixelTopology::layer, PVValHelper::phi, and relativeConstraints::ring.

Referenced by HGCalTestScintHits::analyze(), HGCalNumberingScheme::getUnitID(), HGCalNumberingScheme::HGCalNumberingScheme(), HGCScintSD::HGCScintSD(), HGCScintSD::setDetUnitId(), HGCalDDDConstants::tileCount(), HGCalDDDConstants::tileExist(), HGCalDDDConstants::tileInfo(), and HGCalDDDConstants::tileType().

4  {
5  int32_t id(0);
9  return id;
10 }
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
constexpr int32_t kHGCalRingMask
Definition: HGCalProperty.h:35
constexpr int32_t kHGCalPhiOffset
Definition: HGCalProperty.h:32
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:29
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:30
constexpr int32_t kHGCalPhiMask
Definition: HGCalProperty.h:33
constexpr int32_t kHGCalRingOffset
Definition: HGCalProperty.h:34

◆ tileLayer()

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:29
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:30

◆ tilePack()

int32_t HGCalTileIndex::tilePack ( int32_t  ly,
int32_t  k1,
int32_t  k2 
)

Definition at line 49 of file HGCalTileIndex.cc.

References HGCalProperty::kHGCalTilePack.

◆ tilePhi()

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:32
constexpr int32_t kHGCalPhiMask
Definition: HGCalProperty.h:33

◆ tileProperty()

int32_t HGCalTileIndex::tileProperty ( int32_t  type,
int32_t  sipm 
)

◆ tileRing()

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:35
constexpr int32_t kHGCalRingOffset
Definition: HGCalProperty.h:34

◆ tileSiPM()

int32_t HGCalTileIndex::tileSiPM ( int32_t  property)

Definition at line 45 of file HGCalTileIndex.cc.

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

45  {
47 }
constexpr int32_t kHGCalOffsetSiPM
Definition: HGCalProperty.h:45
constexpr int32_t kHGCalFactor
Definition: HGCalProperty.h:37

◆ tileType()

int32_t HGCalTileIndex::tileType ( int32_t  property)

Definition at line 41 of file HGCalTileIndex.cc.

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

41  {
43 }
constexpr int32_t kHGCalFactor
Definition: HGCalProperty.h:37
constexpr int32_t kHGCalOffsetType
Definition: HGCalProperty.h:44

◆ tileUnpack()

std::tuple< int32_t, int32_t, int32_t > HGCalTileIndex::tileUnpack ( int32_t  index)