#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 9 of file HGCalTestNumbering.h.
|
inline |
Definition at line 34 of file HGCalTestNumbering.h.
|
inlinevirtual |
Definition at line 35 of file HGCalTestNumbering.h.
|
static |
Definition at line 68 of file HGCalTestNumbering.cc.
References kHGCalCellHMask, kHGCalCellTypHMask, kHGCalLayerSMask, kHGCalSubdetHMask, and kHGCalWaferHMask.
Referenced by packHexagonIndex().
|
static |
Definition at line 56 of file HGCalTestNumbering.cc.
References gather_cfg::cout, kHGCalCellSMask, kHGCalLayerSMask, kHGCalSectorSMask, kHGCalSubSectorSMask, and fileinputsource_cfi::sec.
Referenced by packSquareIndex().
|
static |
Definition at line 22 of file HGCalTestNumbering.cc.
References isValidHexagon(), kHGCalCellHMask, kHGCalCellHOffset, kHGCalCellTypHMask, kHGCalCellTypHOffset, kHGCalLayerHMask, kHGCalLayerHOffset, kHGCalSubdetHMask, kHGCalSubdetHOffset, kHGCalWaferHMask, kHGCalWaferHOffset, kHGCalZsideHMask, and kHGCalZsideHOffset.
Referenced by HGCalTBAnalyzer::analyzeSimHits(), and HGCNumberingScheme::getUnitID().
|
static |
Definition at line 5 of file HGCalTestNumbering.cc.
References isValidSquare(), kHGCalCellSMask, kHGCalCellSOffset, kHGCalLayerSMask, kHGCalLayerSOffset, kHGCalSectorSMask, kHGCalSectorSOffset, kHGCalSubSectorSMask, kHGCalSubSectorSOffset, kHGCalZsideSMask, kHGCalZsideSOffset, and fileinputsource_cfi::sec.
Referenced by HGCalSimHitValidation::analyzeHits(), and HGCalSimHitValidation::defineGeometry().
|
static |
Definition at line 46 of file HGCalTestNumbering.cc.
References heavyIonCSV_trainingSettings::idx, kHGCalCellHMask, kHGCalCellHOffset, kHGCalCellTypHMask, kHGCalCellTypHOffset, kHGCalLayerHMask, kHGCalLayerHOffset, kHGCalSubdetHMask, kHGCalSubdetHOffset, kHGCalWaferHMask, kHGCalWaferHOffset, kHGCalZsideHMask, and kHGCalZsideHOffset.
Referenced by HGCGeometryValidation::analyze(), HGCalHitValidation::analyzeHGCalSimHit(), HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), HGCalTimingAnalyzer::analyzeSimHits(), HGCalTBAnalyzer::analyzeSimHits(), CaloParticleDebugger::fillSimHits(), CaloTruthAccumulator::fillSimHits(), HGCNumberingScheme::getUnitID(), HGCSD::setDetUnitId(), and HGCalTriggerTools::simToReco().
|
static |
Definition at line 38 of file HGCalTestNumbering.cc.
References heavyIonCSV_trainingSettings::idx, kHGCalCellSMask, kHGCalCellSOffset, kHGCalLayerSMask, kHGCalLayerSOffset, kHGCalSectorSMask, kHGCalSectorSOffset, kHGCalSubSectorSMask, kHGCalSubSectorSOffset, kHGCalZsideSMask, kHGCalZsideSOffset, and fileinputsource_cfi::sec.
Referenced by HGCalSimHitValidation::analyzeHits().
|
static |
Definition at line 23 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 22 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 12 of file HGCalTestNumbering.h.
Referenced by isValidSquare(), packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 11 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().
|
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 29 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 28 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 18 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), isValidSquare(), packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 17 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().
|
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 33 of file HGCalTestNumbering.h.
Referenced by isValidHexagon(), packHexagonIndex(), and unpackHexagonIndex().
|
static |
Definition at line 32 of file HGCalTestNumbering.h.
Referenced by packHexagonIndex(), and unpackHexagonIndex().
|
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 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 packSquareIndex(), and unpackSquareIndex().
|
static |
Definition at line 19 of file HGCalTestNumbering.h.
Referenced by packSquareIndex(), and unpackSquareIndex().