#include <HGCalDDDConstants.h>
Public Member Functions | |
std::pair< int, int > | assignCell (float x, float y, int lay, int subSec, bool reco) const |
std::array< int, 5 > | assignCellHex (float x, float y, int lay, bool reco) const |
std::array< int, 3 > | assignCellTrap (float x, float y, float z, int lay, bool reco) const |
bool | cellInLayer (int waferU, int waferV, int cellU, int cellV, int lay, bool reco) const |
double | cellSizeHex (int type) const |
double | cellThickness (int layer, int waferU, int waferV) const |
double | distFromEdgeHex (double x, double y, double z) const |
double | distFromEdgeTrap (double x, double y, double z) const |
void | etaPhiFromPosition (const double x, const double y, const double z, const int layer, int &ieta, int &iphi, int &type, double &wt) const |
int | firstLayer () const |
HGCalGeometryMode::GeometryMode | geomMode () const |
int | getLayer (double z, bool reco) const |
HGCalParameters::hgtrap | getModule (unsigned int k, bool hexType, bool reco) const |
std::vector< HGCalParameters::hgtrap > | getModules () const |
const HGCalParameters * | getParameter () const |
HGCalParameters::hgtrform | getTrForm (unsigned int k) const |
unsigned int | getTrFormN () const |
std::vector< HGCalParameters::hgtrform > | getTrForms () const |
int | getTypeHex (int layer, int waferU, int waferV) const |
int | getTypeTrap (int layer) const |
HGCalDDDConstants (const HGCalParameters *hp, const std::string &name) | |
bool | isHalfCell (int waferType, int cell) const |
bool | isValidHex (int lay, int mod, int cell, bool reco) const |
bool | isValidHex8 (int lay, int modU, int modV, int cellU, int cellV) const |
bool | isValidTrap (int lay, int ieta, int iphi) const |
int | layerIndex (int lay, bool reco) const |
unsigned int | layers (bool reco) const |
unsigned int | layersInit (bool reco) const |
int | levelTop (int ind=0) const |
std::pair< float, float > | locateCell (int cell, int lay, int type, bool reco) const |
std::pair< float, float > | locateCell (int lay, int waferU, int waferV, int cellU, int cellV, bool reco, bool all, bool debug=false) const |
std::pair< float, float > | locateCellHex (int cell, int wafer, bool reco) const |
std::pair< float, float > | locateCellTrap (int lay, int ieta, int iphi, bool reco) const |
int | maxCells (bool reco) const |
int | maxCells (int lay, bool reco) const |
int | maxCellUV () const |
int | maxModules () const |
int | maxMoudlesPerLayer () const |
int | maxRows (int lay, bool reco) const |
double | minSlope () const |
int | modules (int lay, bool reco) const |
int | modulesInit (int lay, bool reco) const |
double | mouseBite (bool reco) const |
int | numberCells (bool reco) const |
std::vector< int > | numberCells (int lay, bool reco) const |
int | numberCellsHexagon (int wafer) const |
int | numberCellsHexagon (int lay, int waferU, int waferV, bool flag) const |
std::pair< double, double > | rangeR (double z, bool reco) const |
std::pair< double, double > | rangeZ (bool reco) const |
std::pair< int, int > | rowColumnWafer (const int wafer) const |
int | sectors () const |
std::pair< int, int > | simToReco (int cell, int layer, int mod, bool half) const |
unsigned int | volumes () const |
int | waferCount (const int type) const |
int | waferFromCopy (int copy) const |
void | waferFromPosition (const double x, const double y, int &wafer, int &icell, int &celltyp) const |
void | waferFromPosition (const double x, const double y, const int layer, int &waferU, int &waferV, int &cellU, int &cellV, int &celltype, double &wt, bool debug=false) const |
bool | waferFullInLayer (int wafer, int lay, bool reco) const |
bool | waferInLayer (int wafer, int lay, bool reco) const |
int | waferMax () const |
int | waferMin () const |
std::pair< double, double > | waferPosition (int wafer, bool reco) const |
std::pair< double, double > | waferPosition (int waferU, int waferV, bool reco) const |
int | wafers () const |
int | wafers (int layer, int type) const |
double | waferSepar (bool reco) const |
double | waferSize (bool reco) const |
int | waferToCopy (int wafer) const |
int | waferType (DetId const &id) const |
int | waferTypeL (int wafer) const |
int | waferTypeT (int wafer) const |
int | waferUVMax () const |
double | waferZ (int layer, bool reco) const |
~HGCalDDDConstants () | |
Private Types | |
typedef std::array< int, 3 > | HGCWaferParam |
typedef std::array< std::vector< int32_t >, 2 > | Simrecovecs |
Private Member Functions | |
int | cellHex (double xx, double yy, const double &cellR, const std::vector< double > &posX, const std::vector< double > &posY) const |
void | cellHex (double xloc, double yloc, int cellType, int &cellU, int &cellV, bool debug=false) const |
std::pair< int, float > | getIndex (int lay, bool reco) const |
bool | isValidCell (int layindex, int wafer, int cell) const |
bool | waferInLayerTest (int wafer, int lay, bool full) const |
Private Attributes | |
const float | dPhiMin = 0.02 |
double | hexside_ |
const HGCalParameters * | hgpar_ |
const double | k_horizontalShift = 1.0 |
Simrecovecs | max_modules_layer_ |
int32_t | maxWafersPerLayer_ |
HGCalGeometryMode::GeometryMode | mode_ |
int32_t | modHalf_ |
double | rmax_ |
const double | sqrt3_ |
std::array< uint32_t, 2 > | tot_layers_ |
int32_t | tot_wafers_ |
std::unordered_map< int32_t, bool > | waferIn_ |
std::map< int, HGCWaferParam > | waferLayer_ |
std::array< int, 4 > | waferMax_ |
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 24 of file HGCalDDDConstants.h.
|
private |
Definition at line 140 of file HGCalDDDConstants.h.
|
private |
Definition at line 139 of file HGCalDDDConstants.h.
HGCalDDDConstants::HGCalDDDConstants | ( | const HGCalParameters * | hp, |
const std::string & | name | ||
) |
Definition at line 25 of file HGCalDDDConstants.cc.
References HGCalParameters::cellSize_, funct::cos(), getIndex(), getTrForm(), getTrFormN(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalGeometryMode::HexagonFull, hexside_, hgpar_, mps_fire::i, HGCalParameters::k_ScaleFromDDD, HGCalParameters::hgtrform::lay, layers(), layersInit(), SiStripPI::max, max_modules_layer_, maxCells(), maxWafersPerLayer_, HGCalParameters::mode_, mode_, modHalf_, modulesInit(), rmax_, sectors(), tan30deg_, tot_layers_, tot_wafers_, HGCalParameters::waferCopy_, waferIn_, HGCalWaferIndex::waferIndex(), waferInLayer(), waferLayer_, waferMax_, HGCalParameters::waferR_, wafers(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
HGCalDDDConstants::~HGCalDDDConstants | ( | ) |
Definition at line 119 of file HGCalDDDConstants.cc.
std::pair< int, int > HGCalDDDConstants::assignCell | ( | float | x, |
float | y, | ||
int | lay, | ||
int | subSec, | ||
bool | reco | ||
) | const |
Definition at line 121 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, cellHex(), HGCalParameters::cellSize_, getIndex(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgpar_, HGCalParameters::k_ScaleFromDDD, mode_, trackingPlots::reco, rmax_, findQualityFiles::size, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, HGCalParameters::waferTypeT_, geometryCSVtoXML::xx, and geometryCSVtoXML::yy.
Referenced by HGCNumberingScheme::assignCell(), and HGCalGeometry::getClosestCell().
std::array< int, 5 > HGCalDDDConstants::assignCellHex | ( | float | x, |
float | y, | ||
int | lay, | ||
bool | reco | ||
) | const |
Definition at line 157 of file HGCalDDDConstants.cc.
References HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalParameters::k_ScaleToDDD, mode_, trackingPlots::reco, waferFromPosition(), waferType(), geometryCSVtoXML::xx, and geometryCSVtoXML::yy.
Referenced by HGCalGeometry::getClosestCell().
std::array< int, 3 > HGCalDDDConstants::assignCellTrap | ( | float | x, |
float | y, | ||
float | z, | ||
int | lay, | ||
bool | reco | ||
) | const |
Definition at line 170 of file HGCalDDDConstants.cc.
References getIndex(), hgpar_, createfilelist::int, HGCalParameters::iradMaxBH_, HGCalParameters::iradMinBH_, HGCalParameters::k_ScaleFromDDD, M_PI, SiStripPI::max, min(), phi, alignCSCRings::r, HGCalParameters::radiusLayer_, HGCalParameters::scintType(), mathSSE::sqrt(), and geometryCSVtoXML::xx.
Referenced by HGCalGeometry::getClosestCell(), and HGCalNumberingScheme::getUnitID().
|
private |
Definition at line 1136 of file HGCalDDDConstants.cc.
References funct::abs(), PVValHelper::dx, PVValHelper::dy, gen::k, pileupDistInMC::num, tan30deg_, and TrackerOfflineValidation_Dqm_cff::xmax.
Referenced by assignCell(), waferFromPosition(), and waferUVMax().
|
private |
Definition at line 1157 of file HGCalDDDConstants.cc.
References funct::abs(), debug, runEdmFileComparison::found, hgpar_, SiStripPI::max, min(), N, HGCalParameters::nCellsCoarse_, HGCalParameters::nCellsFine_, rmax_, edm::shift, and sqrt3_.
bool HGCalDDDConstants::cellInLayer | ( | int | waferU, |
int | waferV, | ||
int | cellU, | ||
int | cellV, | ||
int | lay, | ||
bool | reco | ||
) | const |
Definition at line 199 of file HGCalDDDConstants.cc.
References getIndex(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalGeometryMode::HexagonFull, hgpar_, locateCell(), mode_, HGCalParameters::rMinLayHex_, mathSSE::sqrt(), and geometryCSVtoXML::xy.
Referenced by HGCalGeometry::newCell().
double HGCalDDDConstants::cellSizeHex | ( | int | type | ) | const |
Definition at line 241 of file HGCalDDDConstants.cc.
References HGCalParameters::cellSize_, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, hgpar_, HGCalParameters::k_ScaleFromDDD, and mode_.
Referenced by HGCalGeometryLoader::build(), and hgcal::RecHitTools::getRadiusToSide().
double HGCalDDDConstants::cellThickness | ( | int | layer, |
int | waferU, | ||
int | waferV | ||
) | const |
Definition at line 222 of file HGCalDDDConstants.cc.
References HGCalParameters::cellThickness_, HGCalGeometryMode::Hexagon, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalGeometryMode::HexagonFull, hgpar_, maxType, minType, mode_, HGCalParameters::typesInLayers_, HGCalWaferIndex::waferIndex(), and HGCalParameters::waferTypeL_.
Referenced by hgcal::RecHitTools::getSiThickness().
double HGCalDDDConstants::distFromEdgeHex | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
Definition at line 249 of file HGCalDDDConstants.cc.
References funct::abs(), PVValHelper::dx, PVValHelper::dy, hexside_, hgpar_, createfilelist::int, gen::k, HGCalParameters::k_ScaleFromDDD, HGCalParameters::k_ScaleToDDD, rmax_, sqrt3_, tan30deg_, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, x, geometryCSVtoXML::xx, y, and geometryCSVtoXML::yy.
Referenced by HFNoseSD::isItinFidVolume(), and HGCalSD::isItinFidVolume().
double HGCalDDDConstants::distFromEdgeTrap | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
Definition at line 294 of file HGCalDDDConstants.cc.
References funct::abs(), getLayer(), hgpar_, createfilelist::int, HGCalParameters::iradMaxBH_, HGCalParameters::iradMinBH_, HGCalParameters::k_ScaleFromDDD, HGCalParameters::k_ScaleToDDD, layerIndex(), M_PI, SiStripPI::max, min(), phi, alignCSCRings::r, HGCalParameters::radiusLayer_, HGCalParameters::scintCellSize(), HGCalParameters::scintType(), mathSSE::sqrt(), and geometryCSVtoXML::xx.
Referenced by HGCScintSD::isItinFidVolume().
void HGCalDDDConstants::etaPhiFromPosition | ( | const double | x, |
const double | y, | ||
const double | z, | ||
const int | layer, | ||
int & | ieta, | ||
int & | iphi, | ||
int & | type, | ||
double & | wt | ||
) | const |
|
inline |
Definition at line 47 of file HGCalDDDConstants.h.
References HGCalParameters::firstLayer_, and hgpar_.
Referenced by HGCalRecHitValidation::dqmBeginRun(), HGCalDigiValidation::dqmBeginRun(), HGCalSimHitValidation::dqmBeginRun(), HGCalTriggerGeometryV9Imp1::fillInvalidTriggerCells(), and HGCalTopology::HGCalTopology().
|
inline |
Definition at line 48 of file HGCalDDDConstants.h.
References getLayer(), getModule(), getModules(), gen::k, and mode_.
Referenced by HGCalSimHitValidation::analyzeHits(), HGCNumberingScheme::getUnitID(), HGCalTopology::HGCalTopology(), HGCMouseBite::HGCMouseBite(), HGCScintSD::update(), HFNoseSD::update(), HGCalSD::update(), HGCSD::update(), and SimG4HGCalValidation::update().
|
private |
Definition at line 1213 of file HGCalDDDConstants.cc.
References HGCalGeometryMode::Hexagon, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalGeometryMode::HexagonFull, hgpar_, layerIndex(), mode_, HGCalParameters::moduleCellR_, HGCalParameters::moduleCellS_, and HGCalParameters::scintCellSize().
Referenced by assignCell(), assignCellTrap(), cellInLayer(), HGCalDDDConstants(), isValidTrap(), locateCell(), locateCellTrap(), maxCells(), maxRows(), modules(), modulesInit(), numberCells(), simToReco(), waferFullInLayer(), waferInLayer(), wafers(), waferUVMax(), and waferZ().
int HGCalDDDConstants::getLayer | ( | double | z, |
bool | reco | ||
) | const |
Definition at line 332 of file HGCalDDDConstants.cc.
References funct::abs(), HGCalParameters::firstLayer_, HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgpar_, gen::k, HGCalParameters::k_ScaleFromDDD, HGCalParameters::layerGroup_, layerIndex(), mode_, trackingPlots::reco, HGCalParameters::zLayerHex_, and geometryCSVtoXML::zz.
Referenced by distFromEdgeTrap(), geomMode(), and HGCalGeometry::getClosestCell().
HGCalParameters::hgtrap HGCalDDDConstants::getModule | ( | unsigned int | k, |
bool | hexType, | ||
bool | reco | ||
) | const |
Definition at line 351 of file HGCalDDDConstants.cc.
References HGCalParameters::getModule(), hgpar_, findQualityFiles::size, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, and HGCalParameters::waferTypeL_.
Referenced by HGCalGeometryLoader::build(), geomMode(), and HGCalGeometry::getSummary().
std::vector< HGCalParameters::hgtrap > HGCalDDDConstants::getModules | ( | ) | const |
Definition at line 373 of file HGCalDDDConstants.cc.
References HGCalParameters::getModule(), hgpar_, gen::k, and HGCalParameters::moduleLayR_.
Referenced by geomMode().
|
inline |
Definition at line 52 of file HGCalDDDConstants.h.
References hgpar_.
Referenced by HGCalGeometryLoader::build(), and HGCalGeometry::getSummary().
|
inline |
Definition at line 53 of file HGCalDDDConstants.h.
References HGCalParameters::getTrForm(), and hgpar_.
Referenced by HGCalGeometryLoader::build(), HGCalGeometry::getSummary(), and HGCalDDDConstants().
|
inline |
Definition at line 54 of file HGCalDDDConstants.h.
References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), debug, getTrForms(), getTypeHex(), getTypeTrap(), hgpar_, isHalfCell(), isValidHex(), isValidHex8(), isValidTrap(), layerIndex(), layers(), layersInit(), locateCell(), locateCellHex(), locateCellTrap(), mod(), HGCalParameters::trformIndex_, and waferType().
Referenced by HGCalGeometryLoader::build(), HGCalGeometry::getSummary(), and HGCalDDDConstants().
std::vector< HGCalParameters::hgtrform > HGCalDDDConstants::getTrForms | ( | ) | const |
Definition at line 381 of file HGCalDDDConstants.cc.
References HGCalParameters::getTrForm(), hgpar_, gen::k, and HGCalParameters::trformIndex_.
Referenced by HGCalTrackCollectionProducer::beginLuminosityBlock(), and getTrFormN().
int HGCalDDDConstants::getTypeHex | ( | int | layer, |
int | waferU, | ||
int | waferV | ||
) | const |
Definition at line 398 of file HGCalDDDConstants.cc.
References HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, hgpar_, mode_, HGCalParameters::typesInLayers_, HGCalWaferIndex::waferIndex(), and HGCalParameters::waferTypeL_.
Referenced by HGCalGeometryLoader::build(), HGCalTriggerGeometryV9Imp1::detIdWaferType(), and getTrFormN().
int HGCalDDDConstants::getTypeTrap | ( | int | layer | ) | const |
Definition at line 389 of file HGCalDDDConstants.cc.
References hgpar_, mode_, HGCalParameters::scintType(), and HGCalGeometryMode::Trapezoid.
Referenced by HGCalTriggerGeometryV9Imp1::fillInvalidTriggerCells(), HGCalTriggerGeometryV9Imp1::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getNeighborsFromTriggerCell(), and getTrFormN().
bool HGCalDDDConstants::isHalfCell | ( | int | waferType, |
int | cell | ||
) | const |
Definition at line 410 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseHalf_, HGCalParameters::cellFineHalf_, and hgpar_.
Referenced by getTrFormN(), and hgcal::RecHitTools::isHalfCell().
|
private |
Definition at line 1232 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, hgpar_, createfilelist::int, mps_fire::result, HGCalParameters::rMaxLayHex_, HGCalParameters::rMinLayHex_, findQualityFiles::rr, mathSSE::sqrt(), HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, HGCalParameters::waferTypeT_, x, and y.
Referenced by isValidHex(), and waferUVMax().
bool HGCalDDDConstants::isValidHex | ( | int | lay, |
int | mod, | ||
int | cell, | ||
bool | reco | ||
) | const |
Definition at line 415 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, HGCalParameters::copiesInLayers_, HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgpar_, createfilelist::int, isValidCell(), layers(), maxCells(), mod(), mode_, mps_fire::result, findQualityFiles::size, HGCalParameters::waferCopy_, and HGCalParameters::waferTypeT_.
Referenced by getTrFormN(), HGCNumberingScheme::getUnitID(), and HGCalTopology::valid().
bool HGCalDDDConstants::isValidHex8 | ( | int | lay, |
int | modU, | ||
int | modV, | ||
int | cellU, | ||
int | cellV | ||
) | const |
Definition at line 465 of file HGCalDDDConstants.cc.
References hgpar_, N, HGCalParameters::nCellsCoarse_, HGCalParameters::nCellsFine_, HGCalParameters::typesInLayers_, waferIn_, HGCalWaferIndex::waferIndex(), and HGCalParameters::waferTypeL_.
Referenced by getTrFormN(), and HGCalTopology::valid().
bool HGCalDDDConstants::isValidTrap | ( | int | lay, |
int | ieta, | ||
int | iphi | ||
) | const |
Definition at line 482 of file HGCalDDDConstants.cc.
References getIndex(), hgpar_, and HGCalParameters::iradMinBH_.
Referenced by getTrFormN(), and HGCalTopology::valid().
int HGCalDDDConstants::layerIndex | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 495 of file HGCalDDDConstants.cc.
References HGCalParameters::depthIndex_, HGCalParameters::depthLayerF_, HGCalParameters::firstLayer_, HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgpar_, HGCalParameters::layerIndex_, and mode_.
Referenced by HGCalGeometryLoader::build(), distFromEdgeTrap(), getIndex(), getLayer(), HGCalGeometry::getSummary(), and getTrFormN().
unsigned int HGCalDDDConstants::layers | ( | bool | reco | ) | const |
Definition at line 491 of file HGCalDDDConstants.cc.
References createfilelist::int, and tot_layers_.
Referenced by HGCalTBAnalyzer::analyze(), HGCalDigiClient::beginRun(), HGCalRecHitsClient::beginRun(), HGCalSimHitsClient::beginRun(), HGCalTimingAnalyzer::beginRun(), HGCalTBAnalyzer::beginRun(), HGCalRecHitValidation::dqmBeginRun(), HGCalDigiValidation::dqmBeginRun(), HGCalSimHitValidation::dqmBeginRun(), HGCalTriggerTools::eventSetup(), HGCalTriggerGeometryHexImp2::fillInvalidTriggerCells(), HGCalTriggerGeometryHexLayerBasedImp1::fillInvalidTriggerCells(), HGCalTriggerGeometryV9Imp1::fillInvalidTriggerCells(), getTrFormN(), HGCalDDDConstants(), HGCalTopology::HGCalTopology(), HGCalTriggerGeometryHexLayerBasedImp1::initialize(), HGCalTriggerGeometryV9Imp1::initialize(), isValidHex(), maxCells(), SimG4HGCalValidation::update(), and wafers().
unsigned int HGCalDDDConstants::layersInit | ( | bool | reco | ) | const |
Definition at line 507 of file HGCalDDDConstants.cc.
References HGCalParameters::depthIndex_, hgpar_, and HGCalParameters::layerIndex_.
Referenced by getTrFormN(), and HGCalDDDConstants().
|
inline |
Definition at line 74 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::levelT_.
Referenced by HGCScintSD::update(), HGCalSD::update(), HFNoseSD::update(), HGCSD::update(), and SimG4HGCalValidation::update().
std::pair< float, float > HGCalDDDConstants::locateCell | ( | int | cell, |
int | lay, | ||
int | type, | ||
bool | reco | ||
) | const |
Definition at line 511 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, getIndex(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgpar_, mps_fire::i, HGCalParameters::k_ScaleToDDD, mode_, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, HGCalParameters::waferTypeT_, x, and y.
Referenced by HGCalSimHitValidation::analyzeHits(), HGCalTBAnalyzer::analyzeSimHits(), cellInLayer(), HGCalNumberingScheme::checkPosition(), HGCalGeometry::get8Corners(), HGCalGeometry::getCorners(), HGCNumberingScheme::getLocalCoords(), HGCalGeometry::getPosition(), and getTrFormN().
std::pair< float, float > HGCalDDDConstants::locateCell | ( | int | lay, |
int | waferU, | ||
int | waferV, | ||
int | cellU, | ||
int | cellV, | ||
bool | reco, | ||
bool | all, | ||
bool | debug = false |
||
) | const |
Definition at line 537 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseIndex_, HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineIndex_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, debug, hgpar_, HGCalParameters::k_ScaleToDDD, HGCalParameters::typesInLayers_, HGCalWaferIndex::waferIndex(), waferPosition(), HGCalParameters::waferTypeL_, x, geometryCSVtoXML::xy, and y.
std::pair< float, float > HGCalDDDConstants::locateCellHex | ( | int | cell, |
int | wafer, | ||
bool | reco | ||
) | const |
Definition at line 601 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, hgpar_, HGCalParameters::k_ScaleToDDD, HGCalParameters::waferTypeT_, x, and y.
Referenced by HGCalGeometry::get8Corners(), HGCalGeometry::getCorners(), HGCalGeometry::getPosition(), and getTrFormN().
std::pair< float, float > HGCalDDDConstants::locateCellTrap | ( | int | lay, |
int | ieta, | ||
int | iphi, | ||
bool | reco | ||
) | const |
Definition at line 618 of file HGCalDDDConstants.cc.
References funct::abs(), funct::cos(), getIndex(), hgpar_, HGCalParameters::k_ScaleToDDD, SiStripPI::max, min(), phi, alignCSCRings::r, HGCalParameters::radiusLayer_, rangeR(), HGCalParameters::scintType(), funct::sin(), x, y, z, and HGCalParameters::zLayerHex_.
Referenced by HGCalSimHitValidation::analyzeHits(), HGCalGeometryLoader::build(), HGCalNumberingScheme::checkPosition(), HGCalGeometry::get8Corners(), HGCalGeometry::getCorners(), and getTrFormN().
int HGCalDDDConstants::maxCells | ( | bool | reco | ) | const |
Definition at line 643 of file HGCalDDDConstants.cc.
References HGCalParameters::depth_, hgpar_, mps_fire::i, HGCalParameters::layer_, and layers().
Referenced by HGCalDDDConstants(), HGCalTopology::HGCalTopology(), isValidHex(), and maxCellUV().
int HGCalDDDConstants::maxCells | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 653 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, HGCalParameters::defineFull_, HGCalParameters::firstLayer_, getIndex(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalGeometryMode::HexagonFull, hgpar_, gen::k, SiStripPI::max, mode_, N, HGCalParameters::nCellsCoarse_, HGCalParameters::nCellsFine_, HGCalParameters::scintCells(), HGCalGeometryMode::Trapezoid, HGCalParameters::typesInLayers_, HGCalParameters::waferCopy_, HGCalWaferIndex::waferIndex(), waferInLayerTest(), HGCalParameters::waferTypeL_, HGCalParameters::waferTypeT_, HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
|
inline |
Definition at line 75 of file HGCalDDDConstants.h.
References hgpar_, maxCells(), mode_, HGCalParameters::nCellsFine_, and HGCalGeometryMode::Trapezoid.
Referenced by HGCalTopology::HGCalTopology().
|
inline |
|
inline |
int HGCalDDDConstants::maxRows | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 688 of file HGCalDDDConstants.cc.
References HGCalParameters::defineFull_, getIndex(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalGeometryMode::HexagonFull, hgpar_, mps_fire::i, gen::k, mode_, HGCalParameters::waferCopy_, waferInLayerTest(), and HGCalParameters::waferUVMaxLayer_.
Referenced by maxMoudlesPerLayer().
|
inline |
Definition at line 83 of file HGCalDDDConstants.h.
References RemoveAddSevLevel::flag, hgpar_, modules(), modulesInit(), mouseBite(), numberCells(), numberCellsHexagon(), rangeR(), rangeZ(), rowColumnWafer(), and HGCalParameters::slopeMin_.
Referenced by HGCScintSD::update(), HGCalSD::update(), HFNoseSD::update(), and HGCSD::update().
int HGCalDDDConstants::modules | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 709 of file HGCalDDDConstants.cc.
References plotBeamSpotDB::first, getIndex(), createfilelist::int, and max_modules_layer_.
Referenced by minSlope(), and wafers().
int HGCalDDDConstants::modulesInit | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 714 of file HGCalDDDConstants.cc.
References HGCalParameters::defineFull_, HGCalParameters::firstModule_, getIndex(), hgpar_, gen::k, HGCalParameters::lastModule_, mode_, HGCalGeometryMode::Trapezoid, waferInLayerTest(), and HGCalParameters::waferPosX_.
Referenced by HGCalDDDConstants(), and minSlope().
double HGCalDDDConstants::mouseBite | ( | bool | reco | ) | const |
Definition at line 728 of file HGCalDDDConstants.cc.
References hgpar_, HGCalParameters::k_ScaleToDDD, and HGCalParameters::mouseBite_.
Referenced by minSlope(), HGCalSD::update(), and HFNoseSD::update().
int HGCalDDDConstants::numberCells | ( | bool | reco | ) | const |
Definition at line 733 of file HGCalDDDConstants.cc.
References HGCalParameters::depth_, hgpar_, gen::k, HGCalParameters::layer_, and trackingPlots::reco.
Referenced by HGCalTopology::allGeomModules(), and minSlope().
std::vector< int > HGCalDDDConstants::numberCells | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 744 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, HGCalParameters::defineFull_, HGCalParameters::firstModule_, getIndex(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgpar_, mps_fire::i, gen::k, mode_, numberCellsHexagon(), HGCalParameters::scintCells(), HGCalGeometryMode::Trapezoid, HGCalParameters::waferCopy_, waferInLayerTest(), HGCalParameters::waferTypeT_, HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
int HGCalDDDConstants::numberCellsHexagon | ( | int | wafer | ) | const |
Definition at line 778 of file HGCalDDDConstants.cc.
References HGCalParameters::cellCoarseX_, HGCalParameters::cellFineX_, hgpar_, and HGCalParameters::waferTypeT_.
Referenced by HGCalTriggerGeometryHexImp1::fillMaps(), minSlope(), HGCalGeometry::newCell(), and numberCells().
int HGCalDDDConstants::numberCellsHexagon | ( | int | lay, |
int | waferU, | ||
int | waferV, | ||
bool | flag | ||
) | const |
Definition at line 790 of file HGCalDDDConstants.cc.
References hgpar_, N, HGCalParameters::nCellsCoarse_, HGCalParameters::nCellsFine_, HGCalParameters::typesInLayers_, HGCalWaferIndex::waferIndex(), and HGCalParameters::waferTypeL_.
std::pair< double, double > HGCalDDDConstants::rangeR | ( | double | z, |
bool | reco | ||
) | const |
Definition at line 800 of file HGCalDDDConstants.cc.
References funct::abs(), HGCalParameters::detectorType_, HGCalParameters::firstLayer_, HGCalParameters::firstMixedLayer_, hgpar_, HGCalParameters::k_ScaleFromDDD, HGCalParameters::k_ScaleToDDD, HGCalGeomTools::radius(), HGCalParameters::radiusMixBoundary_, HGCalParameters::rMaxFront_, HGCalParameters::rMinFront_, HGCalParameters::slopeMin_, HGCalParameters::slopeTop_, HGCalParameters::zFrontMin_, HGCalParameters::zFrontTop_, HGCalParameters::zLayerHex_, and geometryCSVtoXML::zz.
Referenced by HGCalNumberingScheme::checkPosition(), HGCDigitizer::checkPosition(), locateCellTrap(), and minSlope().
std::pair< double, double > HGCalDDDConstants::rangeZ | ( | bool | reco | ) | const |
Definition at line 835 of file HGCalDDDConstants.cc.
References hgpar_, HGCalParameters::k_ScaleToDDD, HGCalParameters::waferThick_, and HGCalParameters::zLayerHex_.
Referenced by HGCalNumberingScheme::checkPosition(), HGCDigitizer::checkPosition(), and minSlope().
std::pair< int, int > HGCalDDDConstants::rowColumnWafer | ( | const int | wafer | ) | const |
Definition at line 850 of file HGCalDDDConstants.cc.
References cuy::col, popcon2dropbox::copy(), hgpar_, and HGCalParameters::waferCopy_.
Referenced by minSlope().
|
inline |
Definition at line 95 of file HGCalDDDConstants.h.
References hgpar_, HGCalParameters::nSectors_, and simToReco().
Referenced by HGCalGeometryLoader::build(), HGCalGeometry::getSummary(), HGCalDDDConstants(), and HGCalTopology::HGCalTopology().
std::pair< int, int > HGCalDDDConstants::simToReco | ( | int | cell, |
int | layer, | ||
int | mod, | ||
bool | half | ||
) | const |
Definition at line 862 of file HGCalDDDConstants.cc.
References egammaForCoreTracking_cff::depth, getIndex(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgpar_, mps_fire::i, HGCalParameters::layerGroup_, HGCalParameters::layerGroupM_, HGCalParameters::layerGroupO_, mod(), mode_, findQualityFiles::size, and HGCalParameters::waferTypeL_.
Referenced by HGCalTimingAnalyzer::analyzeSimHits(), HGCalTBAnalyzer::analyzeSimHits(), CaloParticleDebugger::fillSimHits(), CaloTruthAccumulator::fillSimHits(), HGCalTriggerBackend::HGCalTriggerSimCluster< FECODEC, DATA >::run(), sectors(), HGCalTriggerNtupleHGCTriggerCells::simhits(), and HGCalTriggerNtupleHGCDigis::simhits().
|
inline |
Definition at line 97 of file HGCalDDDConstants.h.
References popcon2dropbox::copy(), debug, hgpar_, HGCalParameters::moduleLayR_, waferFromCopy(), waferFromPosition(), waferFullInLayer(), and waferInLayer().
Referenced by HGCalGeometryLoader::build().
|
inline |
int HGCalDDDConstants::waferFromCopy | ( | int | copy | ) | const |
Definition at line 897 of file HGCalDDDConstants.cc.
References hgpar_, gen::k, mps_fire::result, and HGCalParameters::waferCopy_.
Referenced by HGCNumberingScheme::getUnitID(), and volumes().
void HGCalDDDConstants::waferFromPosition | ( | const double | x, |
const double | y, | ||
int & | wafer, | ||
int & | icell, | ||
int & | celltyp | ||
) | const |
Definition at line 920 of file HGCalDDDConstants.cc.
References funct::abs(), HGCalParameters::cellCoarseX_, HGCalParameters::cellCoarseY_, HGCalParameters::cellFineX_, HGCalParameters::cellFineY_, cellHex(), HGCalParameters::cellSize_, PVValHelper::dx, PVValHelper::dy, hexside_, hgpar_, createfilelist::int, gen::k, HGCalParameters::k_ScaleFromDDD, rmax_, tan30deg_, HGCalParameters::waferCopy_, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, HGCalParameters::waferTypeT_, x, geometryCSVtoXML::xx, y, and geometryCSVtoXML::yy.
Referenced by assignCellHex(), HGCalNumberingScheme::checkPosition(), HFNoseNumberingScheme::getUnitID(), HGCNumberingScheme::getUnitID(), HGCalNumberingScheme::getUnitID(), and volumes().
void HGCalDDDConstants::waferFromPosition | ( | const double | x, |
const double | y, | ||
const int | layer, | ||
int & | waferU, | ||
int & | waferV, | ||
int & | cellU, | ||
int & | cellV, | ||
int & | celltype, | ||
double & | wt, | ||
bool | debug = false |
||
) | const |
Definition at line 962 of file HGCalDDDConstants.cc.
References funct::abs(), cellHex(), HGCalParameters::cellThickness_, debug, PVValHelper::dx, PVValHelper::dy, EDM_ML_DEBUG, hexside_, hgpar_, gen::k, HGCalParameters::k_ScaleFromDDD, HGCalParameters::nCellsFine_, rmax_, tan30deg_, HGCalParameters::typesInLayers_, HGCalParameters::waferCopy_, HGCalWaferIndex::waferIndex(), HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, HGCalParameters::waferThick_, HGCalParameters::waferTypeL_, HGCalWaferIndex::waferU(), HGCalParameters::waferUVMax_, HGCalWaferIndex::waferV(), globals_cff::x1, geometryCSVtoXML::xx, and geometryCSVtoXML::yy.
bool HGCalDDDConstants::waferFullInLayer | ( | int | wafer, |
int | lay, | ||
bool | reco | ||
) | const |
Definition at line 1046 of file HGCalDDDConstants.cc.
References getIndex(), and waferInLayerTest().
Referenced by volumes().
bool HGCalDDDConstants::waferInLayer | ( | int | wafer, |
int | lay, | ||
bool | reco | ||
) | const |
Definition at line 1039 of file HGCalDDDConstants.cc.
References HGCalParameters::defineFull_, getIndex(), hgpar_, and waferInLayerTest().
Referenced by HGCalGeometryLoader::build(), HGCalGeometry::getSummary(), HGCalDDDConstants(), and volumes().
|
private |
Definition at line 1261 of file HGCalDDDConstants.cc.
References hexside_, hgpar_, recoMuon::in, gen::k, HGCalParameters::k_CornerSize, rmax_, HGCalParameters::rMaxLayHex_, HGCalParameters::rMinLayHex_, mathSSE::sqrt(), HGCalParameters::waferPosX_, and HGCalParameters::waferPosY_.
Referenced by maxCells(), maxRows(), modulesInit(), numberCells(), waferFullInLayer(), waferInLayer(), and waferUVMax().
|
inline |
|
inline |
std::pair< double, double > HGCalDDDConstants::waferPosition | ( | int | wafer, |
bool | reco | ||
) | const |
Definition at line 1052 of file HGCalDDDConstants.cc.
References hgpar_, HGCalParameters::k_ScaleToDDD, HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, geometryCSVtoXML::xx, and geometryCSVtoXML::yy.
Referenced by HGCalGeometryLoader::build(), HGCMouseBite::exclude(), locateCell(), and waferMin().
std::pair< double, double > HGCalDDDConstants::waferPosition | ( | int | waferU, |
int | waferV, | ||
bool | reco | ||
) | const |
Definition at line 1067 of file HGCalDDDConstants.cc.
References hgpar_, HGCalParameters::k_ScaleToDDD, HGCalWaferIndex::waferIndex(), HGCalParameters::waferPosX_, HGCalParameters::waferPosY_, HGCalParameters::wafersInLayers_, geometryCSVtoXML::xx, and geometryCSVtoXML::yy.
int HGCalDDDConstants::wafers | ( | ) | const |
Definition at line 1106 of file HGCalDDDConstants.cc.
References HGCalParameters::depth_, hgpar_, mps_fire::i, createfilelist::int, layers(), mode_, HGCalParameters::moduleLayR_, modules(), and HGCalGeometryMode::Trapezoid.
Referenced by HGCalTopology::allGeomModules(), HGCalDDDConstants(), and waferSize().
int HGCalDDDConstants::wafers | ( | int | layer, |
int | type | ||
) | const |
Definition at line 1120 of file HGCalDDDConstants.cc.
References HGCalParameters::firstModule_, getIndex(), hgpar_, HGCalParameters::lastModule_, mode_, HGCalGeometryMode::Trapezoid, and waferLayer_.
|
inline |
Definition at line 114 of file HGCalDDDConstants.h.
References hgpar_, HGCalParameters::k_ScaleToDDD, and HGCalParameters::sensorSeparation_.
|
inline |
Definition at line 115 of file HGCalDDDConstants.h.
References hgpar_, HGCalParameters::k_ScaleToDDD, wafers(), and HGCalParameters::waferSize_.
Referenced by HFNoseSD::update(), and HGCalSD::update().
|
inline |
Definition at line 118 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::waferCopy_.
int HGCalDDDConstants::waferType | ( | DetId const & | id | ) | const |
Definition at line 1085 of file HGCalDDDConstants.cc.
References DetId::Forward, HGCalGeometryMode::Hexagon, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, HGCalGeometryMode::HexagonFull, mode_, HGCSiliconDetId::type(), HFNoseDetId::type(), and waferTypeL().
Referenced by hgc_digi_utils::addCellMetadata(), assignCellHex(), getTrFormN(), and HGCalUncalibRecHitRecWeightsAlgo< HGCDataFrame >::makeRecHit().
|
inline |
Definition at line 122 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::waferTypeL_.
Referenced by HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalTriggerCellThresholdCodecImpl::triggerCellSums(), HGCalTriggerCellBestChoiceCodecImpl::triggerCellSums(), and waferType().
|
inline |
Definition at line 120 of file HGCalDDDConstants.h.
References hgpar_, and HGCalParameters::waferTypeT_.
Referenced by HGCalGeometryLoader::build(), HGCalTriggerGeometryHexImp2::detIdWaferType(), HGCalTriggerGeometryHexLayerBasedImp1::detIdWaferType(), HGCalTriggerGeometryHexImp1::fillMaps(), HGCalGeometry::getClosestCell(), and hgcal::RecHitTools::isHalfCell().
|
inline |
Definition at line 124 of file HGCalDDDConstants.h.
References cellHex(), debug, full, getIndex(), hgpar_, isValidCell(), RecoTauValidation_cfi::posX, RecoTauValidation_cfi::posY, waferInLayerTest(), HGCalParameters::waferUVMax_, waferZ(), geometryCSVtoXML::xx, and geometryCSVtoXML::yy.
Referenced by HGCalTopology::HGCalTopology().
double HGCalDDDConstants::waferZ | ( | int | layer, |
bool | reco | ||
) | const |
Definition at line 1099 of file HGCalDDDConstants.cc.
References getIndex(), hgpar_, HGCalParameters::k_ScaleToDDD, and HGCalParameters::zLayerHex_.
Referenced by HGCalSimHitValidation::analyzeHits(), HGCalTBAnalyzer::analyzeRecHits(), HGCalTBAnalyzer::analyzeSimHits(), HGCalNumberingScheme::checkPosition(), HGCalTriggerTools::getLayerZ(), hgcal::RecHitTools::getPositionLayer(), and waferUVMax().
|
private |
Definition at line 138 of file HGCalDDDConstants.h.
|
private |
Definition at line 144 of file HGCalDDDConstants.h.
Referenced by distFromEdgeHex(), HGCalDDDConstants(), waferFromPosition(), and waferInLayerTest().
|
private |
Definition at line 141 of file HGCalDDDConstants.h.
Referenced by assignCell(), assignCellTrap(), cellHex(), cellInLayer(), cellSizeHex(), cellThickness(), distFromEdgeHex(), distFromEdgeTrap(), firstLayer(), getIndex(), getLayer(), getModule(), getModules(), getParameter(), getTrForm(), getTrFormN(), getTrForms(), getTypeHex(), getTypeTrap(), HGCalDDDConstants(), isHalfCell(), isValidCell(), isValidHex(), isValidHex8(), isValidTrap(), layerIndex(), layersInit(), levelTop(), locateCell(), locateCellHex(), locateCellTrap(), maxCells(), maxCellUV(), maxRows(), minSlope(), modulesInit(), mouseBite(), numberCells(), numberCellsHexagon(), rangeR(), rangeZ(), rowColumnWafer(), sectors(), simToReco(), volumes(), waferFromCopy(), waferFromPosition(), waferInLayer(), waferInLayerTest(), waferPosition(), wafers(), waferSepar(), waferSize(), waferToCopy(), waferTypeL(), waferTypeT(), waferUVMax(), and waferZ().
|
private |
Definition at line 137 of file HGCalDDDConstants.h.
|
private |
Definition at line 148 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and modules().
|
private |
Definition at line 149 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and maxMoudlesPerLayer().
|
private |
Definition at line 145 of file HGCalDDDConstants.h.
Referenced by assignCell(), assignCellHex(), cellInLayer(), cellSizeHex(), cellThickness(), geomMode(), getIndex(), getLayer(), getTypeHex(), getTypeTrap(), HGCalDDDConstants(), isValidHex(), layerIndex(), locateCell(), maxCells(), maxCellUV(), maxRows(), modulesInit(), numberCells(), simToReco(), wafers(), and waferType().
|
private |
Definition at line 146 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and maxModules().
|
private |
Definition at line 144 of file HGCalDDDConstants.h.
Referenced by assignCell(), cellHex(), distFromEdgeHex(), HGCalDDDConstants(), waferFromPosition(), and waferInLayerTest().
|
private |
Definition at line 143 of file HGCalDDDConstants.h.
Referenced by cellHex(), and distFromEdgeHex().
|
staticprivate |
Definition at line 142 of file HGCalDDDConstants.h.
Referenced by cellHex(), distFromEdgeHex(), HGCalDDDConstants(), and waferFromPosition().
|
private |
Definition at line 147 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and layers().
|
private |
Definition at line 146 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants().
|
private |
Definition at line 152 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and isValidHex8().
|
private |
Definition at line 150 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), and wafers().
|
private |
Definition at line 151 of file HGCalDDDConstants.h.
Referenced by HGCalDDDConstants(), waferCount(), waferMax(), and waferMin().