#include <HGCalDDDConstants.h>
Classes | |
struct | hgtrap |
struct | hgtrform |
Public Member Functions | |
std::pair< int, int > | assignCell (float x, float y, int lay, int subSec, bool reco) const |
std::pair< int, int > | assignCell (float x, float y, float h, float bl, float tl, float alpha, float cellSize) const |
std::pair< int, int > | findCell (int cell, int lay, int subSec, bool reco) const |
std::pair< int, int > | findCell (int cell, float h, float bl, float tl, float alpha, float cellSize) const |
std::vector< hgtrap > ::const_iterator | getFirstModule (bool reco=false) const |
std::vector< hgtrform > ::const_iterator | getFirstTrForm () const |
std::vector< hgtrap > ::const_iterator | getLastModule (bool reco=false) const |
std::vector< hgtrform > ::const_iterator | getLastTrForm () const |
HGCalDDDConstants (const DDCompactView &cpv, std::string &name) | |
bool | isValid (int lay, int mod, int cell, bool reco) const |
unsigned int | layers (bool reco) const |
std::pair< float, float > | locateCell (int cell, int lay, int subSec, bool reco) const |
int | maxCells (bool reco) const |
int | maxCells (int lay, bool reco) const |
int | maxCells (float h, float bl, float tl, float alpha, float cellSize) const |
int | maxRows (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 |
std::vector< int > | numberCells (float h, float bl, float tl, float alpha, float cellSize) const |
int | sectors () const |
std::pair< int, int > | simToReco (int cell, int layer, bool half) const |
~HGCalDDDConstants () | |
Private Member Functions | |
std::vector< double > | getDDDArray (const std::string &, const DDsvalues_type &, int &) const |
std::pair< int, float > | getIndex (int lay, bool reco) const |
void | initialize (const DDCompactView &cpv, std::string name) |
void | loadGeometry (const DDFilteredView &fv, const std::string &tag) |
void | loadSpecPars (const DDFilteredView &fv) |
Private Attributes | |
std::vector< int > | cellFactor_ |
std::vector< double > | cellSize_ |
std::vector< int > | depth_ |
std::vector< int > | depthIndex |
std::vector< int > | layer_ |
std::vector< int > | layerGroup_ |
std::vector< int > | layerIndex |
std::vector< hgtrap > | moduler_ |
std::vector< hgtrap > | modules_ |
int | nCells |
int | nLayers |
int | nSectors |
std::vector< hgtrform > | trform_ |
this class reads the constant section of the numbering xml-files of the high granulairy calorimeter
Definition at line 24 of file HGCalDDDConstants.h.
HGCalDDDConstants::HGCalDDDConstants | ( | const DDCompactView & | cpv, |
std::string & | name | ||
) |
Definition at line 19 of file HGCalDDDConstants.cc.
References gather_cfg::cout, initialize(), layers(), maxCells(), and sectors().
HGCalDDDConstants::~HGCalDDDConstants | ( | ) |
Definition at line 30 of file HGCalDDDConstants.cc.
std::pair< int, int > HGCalDDDConstants::assignCell | ( | float | x, |
float | y, | ||
int | lay, | ||
int | subSec, | ||
bool | reco | ||
) | const |
Definition at line 32 of file HGCalDDDConstants.cc.
References alpha, getIndex(), h, i, cmsHarvester::index, moduler_, and modules_.
Referenced by HGCNumberingScheme::assignCell(), HGCalGeometry::getClosestCell(), HGCNumberingScheme::getUnitID(), and newCell().
std::pair< int, int > HGCalDDDConstants::assignCell | ( | float | x, |
float | y, | ||
float | h, | ||
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 60 of file HGCalDDDConstants.cc.
References a, b, h, and k_horizontalShift.
std::pair< int, int > HGCalDDDConstants::findCell | ( | int | cell, |
int | lay, | ||
int | subSec, | ||
bool | reco | ||
) | const |
Definition at line 103 of file HGCalDDDConstants.cc.
References alpha, getIndex(), h, i, cmsHarvester::index, moduler_, and modules_.
Referenced by locateCell(), newCell(), and simToReco().
std::pair< int, int > HGCalDDDConstants::findCell | ( | int | cell, |
float | h, | ||
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 125 of file HGCalDDDConstants.cc.
References a, b, and k_horizontalShift.
|
private |
Definition at line 597 of file HGCalDDDConstants.cc.
References DDfetch(), DDValue::doubles(), Exception, and relativeConstraints::value.
Referenced by loadSpecPars().
|
inline |
Definition at line 73 of file HGCalDDDConstants.h.
References moduler_, modules_, and dt_dqm_sourceclient_common_cff::reco.
Referenced by HGCalGeometryLoader::build().
|
inline |
Definition at line 75 of file HGCalDDDConstants.h.
References trform_.
Referenced by HGCalGeometryLoader::build().
|
private |
Definition at line 633 of file HGCalDDDConstants.cc.
References depthIndex, i, layerIndex, moduler_, and modules_.
Referenced by assignCell(), findCell(), locateCell(), maxCells(), maxRows(), newCell(), numberCells(), and simToReco().
|
inline |
Definition at line 74 of file HGCalDDDConstants.h.
References moduler_, modules_, and dt_dqm_sourceclient_common_cff::reco.
Referenced by HGCalGeometryLoader::build().
|
inline |
Definition at line 76 of file HGCalDDDConstants.h.
References trform_.
Referenced by HGCalGeometryLoader::build().
|
private |
Definition at line 377 of file HGCalDDDConstants.cc.
References DDFilteredView::addFilter(), equals, alcazmumu_cfi::filter, DDFilteredView::firstChild(), loadGeometry(), loadSpecPars(), mergeVDriftHistosByStation::name, nCells, nSectors, convertSQLiteXML::ok, DDSpecificsFilter::setCriteria(), AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by HGCalDDDConstants().
bool HGCalDDDConstants::isValid | ( | int | lay, |
int | mod, | ||
int | cell, | ||
bool | reco | ||
) | const |
Definition at line 152 of file HGCalDDDConstants.cc.
References gather_cfg::cout, layers(), maxCells(), convertSQLiteXML::ok, and sectors().
Referenced by HGCNumberingScheme::getUnitID(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
Definition at line 54 of file HGCalDDDConstants.h.
References depthIndex, and layerIndex.
Referenced by HGCalDDDConstants(), HGCalTopology::HGCalTopology(), isValid(), maxCells(), and newCell().
|
private |
Definition at line 399 of file HGCalDDDConstants.cc.
References DDTrap::alpha1(), cellFactor_, HGCalDDDConstants::hgtrap::cellSize, cellSize_, filterCSVwithJSON::copy, DDFilteredView::copyNumbers(), gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, depth_, depthIndex, Exception, spr::find(), plotBeamSpotDB::first, DDTrap::halfZ(), AnalysisDataFormats_SUSYBSMObjects::hr, i, relval_steps::k, k_ScaleFromDDD, layer_, layerGroup_, layerIndex, DDFilteredView::logicalPart(), moduler_, modules_, mergeVDriftHistosByStation::name, DDBase< N, C >::name(), DDFilteredView::next(), nSectors, idealTransformation::rotation, DDFilteredView::rotation(), DDLogicalPart::solid(), AlCaHLTBitMon_QueryRunRegistry::string, DDFilteredView::translation(), trform_, x, DDTrap::x1(), DDTrap::x2(), y, DDTrap::y1(), DDTrap::y2(), and z.
Referenced by initialize().
|
private |
Definition at line 555 of file HGCalDDDConstants.cc.
References cellFactor_, cellSize_, gather_cfg::cout, dbl_to_int(), getDDDArray(), i, layerGroup_, DDFilteredView::mergedSpecifics(), and nCells.
Referenced by initialize().
std::pair< float, float > HGCalDDDConstants::locateCell | ( | int | cell, |
int | lay, | ||
int | subSec, | ||
bool | reco | ||
) | const |
Definition at line 168 of file HGCalDDDConstants.cc.
References alpha, findCell(), getIndex(), h, i, cmsHarvester::index, moduler_, modules_, x, and y.
Referenced by HGCalGeometry::getCorners(), HGCNumberingScheme::getLocalCoords(), HGCalGeometry::getPosition(), and newCell().
int HGCalDDDConstants::maxCells | ( | bool | reco | ) | const |
Definition at line 197 of file HGCalDDDConstants.cc.
References depth_, i, layer_, and layers().
Referenced by HGCalDDDConstants(), HGCalTopology::HGCalTopology(), isValid(), maxCells(), HGCalGeometry::newCell(), and newCell().
int HGCalDDDConstants::maxCells | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 207 of file HGCalDDDConstants.cc.
References alpha, getIndex(), h, i, cmsHarvester::index, maxCells(), moduler_, and modules_.
int HGCalDDDConstants::maxCells | ( | float | h, |
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 227 of file HGCalDDDConstants.cc.
References a, b, and k_horizontalShift.
int HGCalDDDConstants::maxRows | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 245 of file HGCalDDDConstants.cc.
References getIndex(), h, i, cmsHarvester::index, moduler_, modules_, and dt_dqm_sourceclient_common_cff::reco.
Referenced by newCell().
std::pair< int, int > HGCalDDDConstants::newCell | ( | int | cell, |
int | layer, | ||
int | sector, | ||
int | subsector, | ||
int | incrx, | ||
int | incry, | ||
bool | half | ||
) | const |
Definition at line 255 of file HGCalDDDConstants.cc.
References findCell(), maxCells(), maxRows(), and 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 280 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 292 of file HGCalDDDConstants.cc.
References a, alpha, b, getIndex(), h, i, cmsHarvester::index, k_horizontalShift, maxCells(), moduler_, and modules_.
std::vector< int > HGCalDDDConstants::numberCells | ( | int | lay, |
bool | reco | ||
) | const |
Definition at line 310 of file HGCalDDDConstants.cc.
References alpha, getIndex(), h, i, cmsHarvester::index, moduler_, and modules_.
std::vector< int > HGCalDDDConstants::numberCells | ( | float | h, |
float | bl, | ||
float | tl, | ||
float | alpha, | ||
float | cellSize | ||
) | const |
Definition at line 334 of file HGCalDDDConstants.cc.
References a, b, and k_horizontalShift.
|
inline |
Definition at line 70 of file HGCalDDDConstants.h.
References nSectors.
Referenced by HGCalDDDConstants(), HGCalTopology::HGCalTopology(), and isValid().
std::pair< int, int > HGCalDDDConstants::simToReco | ( | int | cell, |
int | layer, | ||
bool | half | ||
) | const |
Definition at line 347 of file HGCalDDDConstants.cc.
References a, alpha, b, cellFactor_, gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, findCell(), getIndex(), h, i, cmsHarvester::index, k_horizontalShift, layerGroup_, and modules_.
Referenced by HGCDigitizer::accumulate().
|
private |
Definition at line 91 of file HGCalDDDConstants.h.
Referenced by loadGeometry(), loadSpecPars(), and simToReco().
|
private |
Definition at line 87 of file HGCalDDDConstants.h.
Referenced by loadGeometry(), and loadSpecPars().
|
private |
Definition at line 91 of file HGCalDDDConstants.h.
Referenced by loadGeometry(), and maxCells().
|
private |
Definition at line 91 of file HGCalDDDConstants.h.
Referenced by getIndex(), layers(), and loadGeometry().
|
private |
Definition at line 90 of file HGCalDDDConstants.h.
Referenced by loadGeometry(), and maxCells().
|
private |
Definition at line 91 of file HGCalDDDConstants.h.
Referenced by loadGeometry(), loadSpecPars(), and simToReco().
|
private |
Definition at line 90 of file HGCalDDDConstants.h.
Referenced by getIndex(), layers(), and loadGeometry().
|
private |
Definition at line 88 of file HGCalDDDConstants.h.
Referenced by assignCell(), findCell(), getFirstModule(), getIndex(), getLastModule(), loadGeometry(), locateCell(), maxCells(), maxRows(), newCell(), and numberCells().
|
private |
Definition at line 88 of file HGCalDDDConstants.h.
Referenced by assignCell(), findCell(), getFirstModule(), getIndex(), getLastModule(), loadGeometry(), locateCell(), maxCells(), maxRows(), newCell(), numberCells(), and simToReco().
|
private |
Definition at line 86 of file HGCalDDDConstants.h.
Referenced by initialize(), and loadSpecPars().
|
private |
Definition at line 86 of file HGCalDDDConstants.h.
|
private |
Definition at line 86 of file HGCalDDDConstants.h.
Referenced by initialize(), loadGeometry(), newCell(), and sectors().
|
private |
Definition at line 89 of file HGCalDDDConstants.h.
Referenced by getFirstTrForm(), getLastTrForm(), and loadGeometry().