#include <HGCalTestNumbering.h>
Public Member Functions | |
HGCalTestNumbering () | |
virtual | ~HGCalTestNumbering () |
Static Public Member Functions | |
static bool | isValidHexagon (int subdet, int z, int lay, int wafer, int celltyp, int cell) |
static bool | isValidSquare (int z, int lay, int sec, int subsec, int cell) |
static uint32_t | packHexagonIndex (int subdet, int z, int lay, int wafer, int celltyp, int cell) |
static uint32_t | packSquareIndex (int z, int lay, int sec, int subsec, int cell) |
static void | unpackHexagonIndex (const uint32_t &idx, int &subdet, int &z, int &lay, int &wafer, int &celltyp, int &cell) |
static void | unpackSquareIndex (const uint32_t &idx, int &z, int &lay, int &sec, int &subsec, int &cell) |
Static Public Attributes | |
static const int | kHGCalCellHMask = 0xFF |
static const int | kHGCalCellHOffset = 0 |
static const int | kHGCalCellSMask = 0xFFFF |
static const int | kHGCalCellSOffset = 0 |
static const int | kHGCalCellTypHMask = 0x1 |
static const int | kHGCalCellTypHOffset = 8 |
static const int | kHGCalLayerHMask = 0x7F |
static const int | kHGCalLayerHOffset = 19 |
static const int | kHGCalLayerSMask = 0x7F |
static const int | kHGCalLayerSOffset = 24 |
static const int | kHGCalSectorSMask = 0x7F |
static const int | kHGCalSectorSOffset = 16 |
static const int | kHGCalSubdetHMask = 0x7 |
static const int | kHGCalSubdetHOffset = 27 |
static const int | kHGCalSubSectorSMask = 0x1 |
static const int | kHGCalSubSectorSOffset = 23 |
static const int | kHGCalWaferHMask = 0x3FF |
static const int | kHGCalWaferHOffset = 9 |
static const int | kHGCalZsideHMask = 0x1 |
static const int | kHGCalZsideHOffset = 26 |
static const int | kHGCalZsideSMask = 0x1 |
static const int | kHGCalZsideSOffset = 31 |
Definition at line 10 of file HGCalTestNumbering.h.
|
inline |
Definition at line 36 of file HGCalTestNumbering.h.
|
inlinevirtual |
Definition at line 37 of file HGCalTestNumbering.h.
References training_settings::idx, isValidHexagon(), isValidSquare(), packHexagonIndex(), packSquareIndex(), unpackHexagonIndex(), unpackSquareIndex(), and z.
|
static |
Definition at line 83 of file HGCalTestNumbering.cc.
References gather_cfg::cout, kHGCalCellHMask, kHGCalCellTypHMask, kHGCalLayerSMask, kHGCalSubdetHMask, and kHGCalWaferHMask.
Referenced by packHexagonIndex(), and ~HGCalTestNumbering().
|
static |
Definition at line 64 of file HGCalTestNumbering.cc.
References gather_cfg::cout, kHGCalCellSMask, kHGCalLayerSMask, kHGCalSectorSMask, and kHGCalSubSectorSMask.
Referenced by packSquareIndex(), and ~HGCalTestNumbering().
|
static |
Definition at line 23 of file HGCalTestNumbering.cc.
References isValidHexagon(), kHGCalCellHMask, kHGCalCellHOffset, kHGCalCellTypHMask, kHGCalCellTypHOffset, kHGCalLayerHMask, kHGCalLayerHOffset, kHGCalSubdetHMask, kHGCalSubdetHOffset, kHGCalWaferHMask, kHGCalWaferHOffset, kHGCalZsideHMask, and kHGCalZsideHOffset.
Referenced by HGCalTBAnalyzer::analyzeSimHits(), HGCNumberingScheme::getUnitID(), and ~HGCalTestNumbering().
|
static |
Definition at line 6 of file HGCalTestNumbering.cc.
References isValidSquare(), kHGCalCellSMask, kHGCalCellSOffset, kHGCalLayerSMask, kHGCalLayerSOffset, kHGCalSectorSMask, kHGCalSectorSOffset, kHGCalSubSectorSMask, kHGCalSubSectorSOffset, kHGCalZsideSMask, and kHGCalZsideSOffset.
Referenced by HGCalSimHitValidation::analyzeHits(), HGCalSimHitValidation::defineGeometry(), HGCNumberingScheme::getUnitID(), and ~HGCalTestNumbering().
|
static |
Definition at line 53 of file HGCalTestNumbering.cc.
References kHGCalCellHMask, kHGCalCellHOffset, kHGCalCellTypHMask, kHGCalCellTypHOffset, kHGCalLayerHMask, kHGCalLayerHOffset, kHGCalSubdetHMask, kHGCalSubdetHOffset, kHGCalWaferHMask, kHGCalWaferHOffset, kHGCalZsideHMask, and kHGCalZsideHOffset.
Referenced by HGCGeometryValidation::analyze(), HGCalHitValidation::analyzeHGCalSimHit(), HGCalSimHitValidation::analyzeHits(), HGCalTBAnalyzer::analyzeSimHits(), CaloTruthAccumulator::fillSimHits(), HGCalTriggerBackend::HGCalTriggerSimCluster< FECODEC, DATA >::run(), HGCSD::setDetUnitId(), HGCalTriggerNtupleHGCDigis::simhits(), and ~HGCalTestNumbering().
|
static |
Definition at line 41 of file HGCalTestNumbering.cc.
References kHGCalCellSMask, kHGCalCellSOffset, kHGCalLayerSMask, kHGCalLayerSOffset, kHGCalSectorSMask, kHGCalSectorSOffset, kHGCalSubSectorSMask, kHGCalSubSectorSOffset, kHGCalZsideSMask, and kHGCalZsideSOffset.
Referenced by HGCalSimHitValidation::analyzeHits(), and ~HGCalTestNumbering().
|
static |
Definition at line 25 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 24 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 14 of file HGCalTestNumbering.h.
Referenced by isValidSquare(), packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 13 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 27 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 26 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 31 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 30 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 20 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), isValidSquare(), packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 19 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 16 of file HGCalTestNumbering.h.
Referenced by isValidSquare(), packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 15 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 35 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 34 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 18 of file HGCalTestNumbering.h.
Referenced by isValidSquare(), packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 17 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 29 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 28 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 33 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 32 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 22 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 21 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().