#include <HGCalDDDConstants.h>
Public Types | |
typedef std::array < std::vector< int32_t >, 2 > | simrecovecs |
Public Member Functions | |
std::pair< int, int > | assignCell (float x, float y, int lay, int subSec, bool reco) const |
std::pair< int, int > | assignCellHexagon (float x, float y) const |
std::pair< int, int > | assignCellSquare (float x, float y, float h, float bl, float tl, float alpha, float cellSize) const |
double | cellSizeHex (int type) const |
std::pair< int, int > | findCell (int cell, int lay, int subSec, bool reco) const |
std::pair< int, int > | findCellSquare (int cell, float h, float bl, float tl, float alpha, float cellSize) const |
HGCalGeometryMode | geomMode () const |
std::pair< int, float > | getIndex (int lay, bool reco) const |
HGCalParameters::hgtrap | getModule (unsigned int k, bool hexType, bool reco) const |
std::vector < HGCalParameters::hgtrap > | getModules () const |
HGCalParameters::hgtrform | getTrForm (unsigned int k) const |
unsigned int | getTrFormN () const |
std::vector < HGCalParameters::hgtrform > | getTrForms () const |
HGCalDDDConstants (const HGCalParameters *hp, const std::string name) | |
bool | isValid (int lay, int mod, int cell, bool reco) const |
unsigned int | layers (bool reco) const |
unsigned int | layersInit (bool reco) const |
std::pair< float, float > | locateCell (int cell, int lay, int type, bool reco) const |
std::pair< float, float > | locateCellHex (int cell, int wafer, bool reco) const |
int | maxCells (bool reco) const |
int | maxCells (int lay, bool reco) const |
int | maxCellsSquare (float h, float bl, float tl, float alpha, float cellSize) const |
int | maxRows (int lay, bool reco) const |
int | modules (int lay, bool reco) const |
int | modulesInit (int lay, bool reco) const |
std::pair< int, int > | newCell (int cell, int layer, int sector, int subsector, int incrx, int incry, bool half) const |
std::pair< int, int > | newCell (int cell, int layer, int subsector, int incrz, bool half) const |
int | newCell (int kx, int ky, int lay, int subSec) const |
std::vector< int > | numberCells (int lay, bool reco) const |
int | numberCellsHexagon (int wafer) const |
std::vector< int > | numberCellsSquare (float h, float bl, float tl, float alpha, float cellSize) const |
int | sectors () const |
std::pair< int, int > | simToReco (int cell, int layer, int mod, bool half) const |
unsigned int | volumes () const |
int | waferFromCopy (int copy) const |
bool | waferInLayer (int wafer, int lay, bool reco) const |
std::pair< double, double > | waferPosition (int wafer) const |
int | wafers () const |
int | waferToCopy (int wafer) const |
int | waferTypeT (int wafer) const |
double | waferZ (int layer, bool reco) const |
~HGCalDDDConstants () | |
Private Member Functions | |
int | cellHex (double xx, double yy, const double &cellR, const std::vector< double > &posX, const std::vector< double > &posY) const |
void | getParameterSquare (int lay, int subSec, bool reco, float &h, float &bl, float &tl, float &alpha) const |
bool | waferInLayer (int wafer, int lay) const |
Private Attributes | |
const HGCalParameters * | hgpar_ |
simrecovecs | max_modules_layer_ |
HGCalGeometryMode | mode_ |
double | rmax_ |
std::array< uint32_t, 2 > | tot_layers_ |
int32_t | tot_wafers_ |
Static Private Attributes | |
static double | tan30deg_ = 0.5773502693 |
this class reads the constant section of the numbering xml-files of the high granulairy calorimeter
Definition at line 23 of file HGCalDDDConstants.h.
typedef std::array<std::vector<int32_t>, 2> HGCalDDDConstants::simrecovecs |
Definition at line 27 of file HGCalDDDConstants.h.
HGCalDDDConstants::HGCalDDDConstants | ( | const HGCalParameters * | hp, |
const std::string | name | ||
) |
Definition at line 20 of file HGCalDDDConstants.cc.
References funct::cos(), gather_cfg::cout, hgpar_, k_ScaleFromDDD, layers(), layersInit(), max_modules_layer_, maxCells(), mode_, HGCalParameters::mode_, modulesInit(), rmax_, sectors(), Square, tot_layers_, tot_wafers_, HGCalParameters::waferR_, and wafers().
HGCalDDDConstants::~HGCalDDDConstants | ( | ) |
Definition at line 71 of file HGCalDDDConstants.cc.
std::pair< int, int > HGCalDDDConstants::assignCell | ( | float | x, |
float | y, | ||
int | lay, | ||
int | subSec, | ||
bool | reco | ||
) | const |
Definition at line 73 of file HGCalDDDConstants.cc.
References alpha, assignCellHexagon(), assignCellSquare(), getIndex(), getParameterSquare(), h, i, cmsHarvester::index, k_ScaleFromDDD, mode_, dt_dqm_sourceclient_common_cff::reco, and Square.
Referenced by HGCNumberingScheme::assignCell(), HGCalGeometry::getClosestCell(), HGCNumberingScheme::getUnitID(), and newCell().
std::pair< int, int > HGCalDDDConstants::assignCellHexagon | ( | float | x, |
float | y | ||
) | const |
Definition at line 134 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, cellHex(), HGCalParameters::cellSize_, hgpar_, k_ScaleFromDDD, rmax_, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, and HGCalParameters::waferTypeT_.
Referenced by assignCell().
std::pair< int, int > HGCalDDDConstants::assignCellSquare | ( | float | x, |
float | y, | ||
float | h, | ||
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 91 of file HGCalDDDConstants.cc.
References a, b, h, and k_horizontalShift.
Referenced by assignCell().
|
private |
Definition at line 607 of file HGCalDDDConstants.cc.
References funct::abs(), relval_2017::k, pileupDistInMC::num, tan30deg_, and hlt_dqm_clientPB-live_cfg::xmax.
Referenced by assignCellHexagon().
double HGCalDDDConstants::cellSizeHex | ( | int | type | ) | const |
Definition at line 150 of file HGCalDDDConstants.cc.
References HGCalParameters::cellSize_, hgpar_, and k_ScaleFromDDD.
Referenced by HGCalGeometryLoader::build().
std::pair< int, int > HGCalDDDConstants::findCell | ( | int | cell, |
int | lay, | ||
int | subSec, | ||
bool | reco | ||
) | const |
Definition at line 164 of file HGCalDDDConstants.cc.
References alpha, findCellSquare(), getIndex(), getParameterSquare(), h, Hexagon, i, cmsHarvester::index, and mode_.
Referenced by locateCell(), and newCell().
std::pair< int, int > HGCalDDDConstants::findCellSquare | ( | int | cell, |
float | h, | ||
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 179 of file HGCalDDDConstants.cc.
References a, b, and k_horizontalShift.
Referenced by findCell(), and simToReco().
|
inline |
Definition at line 42 of file HGCalDDDConstants.h.
References mode_.
Referenced by HGCDigitizer::accumulate(), HGCalSimHitValidation::analyzeHits(), HGCalGeometry::getClosestCell(), HGCNumberingScheme::getUnitID(), and HGCalTopology::HGCalTopology().
std::pair< int, float > HGCalDDDConstants::getIndex | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 628 of file HGCalDDDConstants.cc.
References HGCalParameters::depthIndex_, HGCalParameters::depthLayerF_, hgpar_, HGCalParameters::layerIndex_, mode_, HGCalParameters::moduleCellR_, HGCalParameters::moduleCellS_, and Square.
Referenced by assignCell(), findCell(), locateCell(), maxCells(), maxRows(), modules(), modulesInit(), newCell(), numberCells(), simToReco(), waferInLayer(), and waferZ().
HGCalParameters::hgtrap HGCalDDDConstants::getModule | ( | unsigned int | k, |
bool | hexType, | ||
bool | reco | ||
) | const |
Definition at line 207 of file HGCalDDDConstants.cc.
References HGCalParameters::getModule(), hgpar_, reco::if(), and HGCalParameters::waferTypeL_.
Referenced by HGCalGeometryLoader::build(), and HGCalGeometry::getSummary().
std::vector< HGCalParameters::hgtrap > HGCalDDDConstants::getModules | ( | ) | const |
Definition at line 224 of file HGCalDDDConstants.cc.
References HGCalParameters::getModule(), hgpar_, relval_2017::k, and HGCalParameters::moduleLayR_.
|
private |
Definition at line 644 of file HGCalDDDConstants.cc.
References alpha, hgpar_, HGCalParameters::moduleAlphaR_, HGCalParameters::moduleAlphaS_, HGCalParameters::moduleBlR_, HGCalParameters::moduleBlS_, HGCalParameters::moduleHR_, HGCalParameters::moduleHS_, HGCalParameters::moduleTlR_, and HGCalParameters::moduleTlS_.
Referenced by assignCell(), findCell(), locateCell(), maxCells(), and numberCells().
|
inline |
Definition at line 80 of file HGCalDDDConstants.h.
References HGCalParameters::getTrForm(), and hgpar_.
Referenced by HGCalGeometryLoader::build(), and HGCalGeometry::getSummary().
|
inline |
Definition at line 79 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::trformIndex_.
Referenced by HGCalGeometryLoader::build(), and HGCalGeometry::getSummary().
std::vector< HGCalParameters::hgtrform > HGCalDDDConstants::getTrForms | ( | ) | const |
Definition at line 232 of file HGCalDDDConstants.cc.
References HGCalParameters::getTrForm(), hgpar_, relval_2017::k, and HGCalParameters::trformIndex_.
bool HGCalDDDConstants::isValid | ( | int | lay, |
int | mod, | ||
int | cell, | ||
bool | reco | ||
) | const |
Definition at line 240 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, HGCalParameters::copiesInLayers_, gather_cfg::cout, hgpar_, layers(), maxCells(), mod(), mode_, modmax, convertSQLiteXML::ok, sectors(), Square, HGCalParameters::waferCopy_, and HGCalParameters::waferTypeT_.
Referenced by HGCNumberingScheme::getUnitID(), core.AutoHandle.AutoHandle::ReallyLoad(), and HGCalTopology::valid().
unsigned int HGCalDDDConstants::layers | ( | bool | reco | ) | const |
Definition at line 156 of file HGCalDDDConstants.cc.
References tot_layers_.
Referenced by HGCalDigiClient::beginRun(), HGCalRecHitsClient::beginRun(), HGCalSimHitsClient::beginRun(), HGCalDigiValidation::dqmBeginRun(), HGCalRecHitValidation::dqmBeginRun(), HGCalSimHitValidation::dqmBeginRun(), HGCalDDDConstants(), HGCalTopology::HGCalTopology(), isValid(), maxCells(), newCell(), and wafers().
unsigned int HGCalDDDConstants::layersInit | ( | bool | reco | ) | const |
Definition at line 160 of file HGCalDDDConstants.cc.
References HGCalParameters::depthIndex_, hgpar_, and HGCalParameters::layerIndex_.
Referenced by HGCalDDDConstants().
std::pair< float, float > HGCalDDDConstants::locateCell | ( | int | cell, |
int | lay, | ||
int | type, | ||
bool | reco | ||
) | const |
Definition at line 278 of file HGCalDDDConstants.cc.
References alpha, HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, findCell(), getIndex(), getParameterSquare(), h, hgpar_, i, cmsHarvester::index, k_ScaleFromDDD, mode_, Square, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, HGCalParameters::waferTypeT_, x, and y.
Referenced by HGCalSimHitValidation::analyzeHits(), HGCalGeometry::getCorners(), HGCNumberingScheme::getLocalCoords(), HGCalGeometry::getPosition(), and newCell().
std::pair< float, float > HGCalDDDConstants::locateCellHex | ( | int | cell, |
int | wafer, | ||
bool | reco | ||
) | const |
Definition at line 313 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, hgpar_, k_ScaleFromDDD, HGCalParameters::waferTypeT_, x, and y.
Referenced by HGCalGeometry::getCorners(), and HGCalGeometry::getPosition().
int HGCalDDDConstants::maxCells | ( | bool | reco | ) | const |
Definition at line 330 of file HGCalDDDConstants.cc.
References HGCalParameters::depth_, hgpar_, i, HGCalParameters::layer_, and layers().
Referenced by HGCalDDDConstants(), HGCalTopology::HGCalTopology(), isValid(), newCell(), and HGCalGeometry::newCell().
int HGCalDDDConstants::maxCells | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 340 of file HGCalDDDConstants.cc.
References alpha, HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, getIndex(), getParameterSquare(), h, hgpar_, i, cmsHarvester::index, relval_2017::k, maxCellsSquare(), mode_, Square, waferInLayer(), and HGCalParameters::waferTypeT_.
int HGCalDDDConstants::maxCellsSquare | ( | float | h, |
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 362 of file HGCalDDDConstants.cc.
References a, b, and k_horizontalShift.
Referenced by maxCells().
int HGCalDDDConstants::maxRows | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 379 of file HGCalDDDConstants.cc.
References getIndex(), h, hgpar_, i, cmsHarvester::index, relval_2017::k, mode_, HGCalParameters::moduleHR_, HGCalParameters::moduleHS_, dt_dqm_sourceclient_common_cff::reco, Square, HGCalParameters::waferCopy_, and waferInLayer().
Referenced by newCell().
int HGCalDDDConstants::modules | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 399 of file HGCalDDDConstants.cc.
References plotBeamSpotDB::first, getIndex(), and max_modules_layer_.
Referenced by wafers().
int HGCalDDDConstants::modulesInit | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 404 of file HGCalDDDConstants.cc.
References getIndex(), hgpar_, cmsHarvester::index, relval_2017::k, waferInLayer(), and HGCalParameters::waferPosX_.
Referenced by HGCalDDDConstants().
std::pair< int, int > HGCalDDDConstants::newCell | ( | int | cell, |
int | layer, | ||
int | sector, | ||
int | subsector, | ||
int | incrx, | ||
int | incry, | ||
bool | half | ||
) | const |
Definition at line 414 of file HGCalDDDConstants.cc.
References findCell(), hgpar_, maxCells(), maxRows(), and HGCalParameters::nSectors_.
Referenced by HGCalTopology::changeXY(), and HGCalTopology::changeZ().
std::pair< int, int > HGCalDDDConstants::newCell | ( | int | cell, |
int | layer, | ||
int | subsector, | ||
int | incrz, | ||
bool | half | ||
) | const |
Definition at line 439 of file HGCalDDDConstants.cc.
References assignCell(), layers(), locateCell(), and create_public_lumi_plots::xy.
int HGCalDDDConstants::newCell | ( | int | kx, |
int | ky, | ||
int | lay, | ||
int | subSec | ||
) | const |
Definition at line 451 of file HGCalDDDConstants.cc.
References a, alpha, b, getIndex(), hgpar_, i, cmsHarvester::index, k_horizontalShift, maxCells(), HGCalParameters::moduleAlphaS_, HGCalParameters::moduleBlR_, HGCalParameters::moduleHR_, and HGCalParameters::moduleTlR_.
std::vector< int > HGCalDDDConstants::numberCells | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 469 of file HGCalDDDConstants.cc.
References alpha, HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, getIndex(), getParameterSquare(), h, hgpar_, i, cmsHarvester::index, relval_2017::k, mode_, numberCellsSquare(), Square, waferInLayer(), and HGCalParameters::waferTypeT_.
int HGCalDDDConstants::numberCellsHexagon | ( | int | wafer | ) | const |
Definition at line 505 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, hgpar_, and HGCalParameters::waferTypeT_.
Referenced by HGCalGeometry::newCell().
std::vector< int > HGCalDDDConstants::numberCellsSquare | ( | float | h, |
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 492 of file HGCalDDDConstants.cc.
References a, b, and k_horizontalShift.
Referenced by numberCells().
|
inline |
Definition at line 65 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::nSectors_.
Referenced by HGCalGeometryLoader::build(), HGCalGeometry::getSummary(), HGCalDDDConstants(), HGCalTopology::HGCalTopology(), and isValid().
std::pair< int, int > HGCalDDDConstants::simToReco | ( | int | cell, |
int | layer, | ||
int | mod, | ||
bool | half | ||
) | const |
Definition at line 517 of file HGCalDDDConstants.cc.
References a, b, HGCalParameters::cellFactor_, gather_cfg::cout, HLT_25ns10e33_v2_cff::depth, findCellSquare(), getIndex(), h, hgpar_, i, cmsHarvester::index, k_horizontalShift, HGCalParameters::layerGroup_, HGCalParameters::layerGroupM_, HGCalParameters::layerGroupO_, mod(), mode_, HGCalParameters::moduleAlphaS_, HGCalParameters::moduleBlS_, HGCalParameters::moduleHS_, HGCalParameters::moduleTlS_, Square, and HGCalParameters::waferTypeL_.
Referenced by HGCDigitizer::accumulate().
|
inline |
Definition at line 67 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::moduleLayR_.
Referenced by HGCalGeometryLoader::build(), and HGCalGeometry::getSummary().
int HGCalDDDConstants::waferFromCopy | ( | int | copy | ) | const |
Definition at line 560 of file HGCalDDDConstants.cc.
References hgpar_, relval_2017::k, and HGCalParameters::waferCopy_.
Referenced by HGCNumberingScheme::getUnitID().
bool HGCalDDDConstants::waferInLayer | ( | int | wafer, |
int | lay, | ||
bool | reco | ||
) | const |
Definition at line 572 of file HGCalDDDConstants.cc.
References getIndex().
Referenced by HGCalGeometryLoader::build(), HGCalGeometry::getSummary(), maxCells(), maxRows(), modulesInit(), and numberCells().
|
private |
Definition at line 661 of file HGCalDDDConstants.cc.
References hgpar_, recoMuon::in, rmax_, HGCalParameters::rMaxLayHex_, HGCalParameters::rMinLayHex_, findQualityFiles::rr, mathSSE::sqrt(), tan30deg_, HGCalParameters::waferPosX_, and HGCalParameters::waferPosY_.
std::pair< double, double > HGCalDDDConstants::waferPosition | ( | int | wafer | ) | const |
Definition at line 579 of file HGCalDDDConstants.cc.
References hgpar_, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, and create_public_lumi_plots::xy.
Referenced by HGCalGeometryLoader::build().
int HGCalDDDConstants::wafers | ( | ) | const |
Definition at line 597 of file HGCalDDDConstants.cc.
References HGCalParameters::depth_, hgpar_, i, layers(), and modules().
Referenced by HGCalTopology::allGeomModules(), and HGCalDDDConstants().
|
inline |
Definition at line 72 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::waferCopy_.
|
inline |
Definition at line 73 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::waferTypeT_.
Referenced by HGCalGeometryLoader::build(), and HGCalGeometry::getClosestCell().
double HGCalDDDConstants::waferZ | ( | int | layer, |
bool | reco | ||
) | const |
Definition at line 590 of file HGCalDDDConstants.cc.
References getIndex(), hgpar_, i, cmsHarvester::index, and HGCalParameters::zLayerHex_.
Referenced by HGCalSimHitValidation::analyzeHits().
|
private |
Definition at line 93 of file HGCalDDDConstants.h.
Referenced by assignCellHexagon(), cellSizeHex(), getIndex(), getModule(), getModules(), getParameterSquare(), getTrForm(), getTrFormN(), getTrForms(), HGCalDDDConstants(), isValid(), layersInit(), locateCell(), locateCellHex(), maxCells(), maxRows(), modulesInit(), newCell(), numberCells(), numberCellsHexagon(), sectors(), simToReco(), volumes(), waferFromCopy(), waferInLayer(), waferPosition(), wafers(), waferToCopy(), waferTypeT(), and waferZ().
|
private |
Definition at line 99 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and modules().
|
private |
Definition at line 96 of file HGCalDDDConstants.h.
Referenced by assignCell(), findCell(), geomMode(), getIndex(), HGCalDDDConstants(), isValid(), locateCell(), maxCells(), maxRows(), numberCells(), and simToReco().
|
private |
Definition at line 95 of file HGCalDDDConstants.h.
Referenced by assignCellHexagon(), HGCalDDDConstants(), and waferInLayer().
|
staticprivate |
Definition at line 94 of file HGCalDDDConstants.h.
Referenced by cellHex(), and waferInLayer().
|
private |
Definition at line 98 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and layers().
|
private |
Definition at line 97 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants().