#include <EEDetId.h>
Public Types | |
enum | { Subdet =EcalEndcap } |
enum | { kEEhalf = 7324, kSizeForDenseIndexing = 2*kEEhalf } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5 } |
Public Member Functions | |
uint32_t | denseIndex () const |
EEDetId () | |
EEDetId (uint32_t rawid) | |
EEDetId (int crystal_ix, int crystal_iy, int iz) | |
EEDetId (int i, int j, int iz, int mode) | |
EEDetId (const DetId &id) | |
int | hashedIndex () const |
int | ic () const |
int | iPhiOuterRing () const |
int | iquadrant () const |
int | isc () const |
int | ix () const |
int | iy () const |
EEDetId | offsetBy (int nrStepsX, int nrStepsY) const |
EEDetId & | operator= (const DetId &id) |
bool | positiveZ () const |
EcalScDetId | sc () const |
EEDetId | switchZSide () const |
int | zside () const |
Public Member Functions inherited from DetId | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Member Functions | |
static EEDetId | detIdFromDenseIndex (uint32_t din) |
static int | distanceX (const EEDetId &a, const EEDetId &b) |
static int | distanceY (const EEDetId &a, const EEDetId &b) |
static bool | fastValidDetId (int crystal_ix, int crystal_iy) |
static EEDetId | idOuterRing (int iPhi, int zEnd) |
static int | isc (int iscCol, int iscRow) |
static bool | isNextToBoundary (EEDetId id) |
static bool | isNextToDBoundary (EEDetId id) |
static bool | isNextToRingBoundary (EEDetId id) |
static DetId | offsetBy (const DetId startId, int nrStepsX, int nrStepsY) |
static bool | slowValidDetId (int crystal_ix, int crystal_iy) |
static EcalSubdetector | subdet () |
static DetId | switchZSide (const DetId startId) |
static EEDetId | unhashIndex (int hi) |
static bool | validDenseIndex (uint32_t din) |
static bool | validDetId (int crystal_ix, int crystal_iy, int iz) |
static bool | validHashIndex (int i) |
Static Public Attributes | |
static const int | ICR_MAX =25 |
static const int | ICR_MIN =1 |
static const int | ISC_MAX =316 |
static const int | ISC_MIN =1 |
static const int | IX_MAX =100 |
static const int | IX_MIN =1 |
static const int | IY_MAX =100 |
static const int | IY_MIN =1 |
static const int | XYMODE = 0 |
static const int | SCCRYSTALMODE = 1 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Private Member Functions | |
bool | isOuterRing () const |
int | ix (int iSC, int iCrys) const |
int | ixQuadrantOne () const |
int | iy (int iSC, int iCrys) const |
int | iyQuadrantOne () const |
Static Private Member Functions | |
static bool | isOuterRingXY (int ax, int ay) |
Static Private Attributes | |
static const int | iYoffset [nCols+1] = { 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0 } |
static const unsigned short | kdi [2 *IY_MAX] |
static const unsigned short | kxf [2 *IY_MAX] |
static const int | nCols = 10 |
static const int | nCrys = 5 |
static const int | QuadColLimits [nCols+1] = { 0, 8,17,27,36,45,54,62,70,76,79 } |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
anonymous enum |
Enumerator | |
---|---|
Subdet |
Sudetector type. Here it is ECAL endcap. |
Definition at line 17 of file EEDetId.h.
anonymous enum |
Enumerator | |
---|---|
kEEhalf |
Number of crystals per Dee |
kSizeForDenseIndexing |
Number of dense crystal indices, that is number of crystals per endcap. |
Definition at line 326 of file EEDetId.h.
|
inline |
Constructor of a null id
Definition at line 25 of file EEDetId.h.
Referenced by idOuterRing(), offsetBy(), switchZSide(), and unhashIndex().
|
inline |
|
inline |
Constructor from crystal ix,iy,iz (iz=+1/-1) (mode = XYMODE) or from sc,cr,iz (mode = SCCRYSTALMODE).
ix runs from 1 to 100 along x-axis of standard CMS coordinates
iy runs from 1 to 100 along y-axis of standard CMS coordinates
iz is -1 for EE- and +1 for EE+
For isc see isc(), for ic see ic()
i | ix or isc index |
j | iy or isc index |
iz | iz/zside index: -1 for EE-, +1 for EE+ |
mode | pass XYMODE if i j refer to ix, iy, SCCRYSTALMODE if thery refer to isc, ic |
Definition at line 45 of file EEDetId.h.
References DetId::id_.
EEDetId::EEDetId | ( | int | i, |
int | j, | ||
int | iz, | ||
int | mode | ||
) |
Definition at line 56 of file EEDetId.cc.
References edm::hlt::Exception, DetId::id_, ix(), iy(), SCCRYSTALMODE, validDetId(), and XYMODE.
|
inline |
|
inline |
Same as hashedIndex()
Definition at line 192 of file EEDetId.h.
References hashedIndex().
Referenced by cond::PayLoadInspector< DataT >::plot().
|
inlinestatic |
Converts a hashed/dense index as defined in hashedIndex() and denseIndex() methods to a det id.
din | hashed/dense index |
Definition at line 220 of file EEDetId.h.
References unhashIndex().
Referenced by CaloGenericDetId::CaloGenericDetId(), EEHitResponse::EEHitResponse(), EcalEndcapGeometry::initializeParms(), cond::PayLoadInspector< DataT >::plot(), and EcalTPSkimmer::produce().
Returns the distance along x-axis in crystal units between two EEDetId
a | det id of first crystal |
b | det id of second crystal |
Definition at line 577 of file EEDetId.cc.
References funct::abs(), and ix().
Referenced by PFPhotonClusters::FillClusterShape().
Returns the distance along y-axis in crystal units between two EEDetId
a | det id of first crystal |
b | det id of second crystal |
Definition at line 582 of file EEDetId.cc.
References funct::abs(), and iy().
Referenced by PFPhotonClusters::FillClusterShape().
|
inlinestatic |
check if ix and iy is in a "ring" inscribed in EE if is inside is valid for sure if not the slow version shall be called
Definition at line 262 of file EEDetId.h.
References f, alignCSCRings::r, x, and detailsBasic3DVector::y.
Referenced by validDetId().
|
inline |
Gets a compact index for arrays
Definition at line 182 of file EEDetId.h.
References ix(), iy(), kdi, kEEhalf, kxf, and positiveZ().
Referenced by EcalGetLaserData::analyze(), EcalPulseShapeGrapher::analyze(), EcalURecHitHists::analyze(), CaloGeometryHelper::buildCrystalArray(), CaloGeometryHelper::buildNeighbourArray(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), denseIndex(), ecalEnergyInCone(), PFECALHashNavigator::ecalNeighbArray(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalLaserDbService::getLaserCorrection(), CaloGeometryHelper::getNeighbours(), popcon::EcalLaser_weekly_Linearization_Check::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsH2(), popcon::EcalPedestalsHandler::getNewObjectsP5(), ecalpyutils::hashedIndexEE(), EcalEndcapRecHitsMaker::init(), popcon::EcalChannelStatusHandler::laserAnalysis(), CaloGeometryHelper::move(), PFECALHashNavigator::move(), popcon::EcalChannelStatusHandler::pedAnalysis(), AlCaIsoTracksProducer::produce(), EcalUncalibRecHitWorkerRatio::run(), EcalUncalibRecHitWorkerWeights::run(), EcalUncalibRecHitWorkerGlobal::run(), EcalUncalibRecHitWorkerMultiFit::run(), EcalGeomPhiSymHelper::setup(), and EcalEndcapRecHitsMaker::towerOf().
int EEDetId::ic | ( | ) | const |
Gets crystal number inside SuperCrystal. Crystal numbering withing a supercrystal in each quadrant:
* A y * (Q2) | (Q1) * 25 20 15 10 5 | 5 10 15 20 25 * 24 19 14 9 4 | 4 9 14 19 24 * 23 18 13 8 3 | 3 8 13 18 23 * 22 17 12 7 2 | 2 7 12 17 22 * 21 16 11 6 1 | 1 6 11 16 21 * | * ----------------------o---------------------------> x * | * 21 16 11 6 1 | 1 6 11 16 21 * 22 17 12 7 2 | 2 7 12 17 22 * 23 18 13 8 3 | 3 8 13 18 23 * 24 19 14 9 4 | 4 9 14 19 24 * 25 20 15 10 5 | 5 10 15 20 25 * (Q3) (Q4) *
Definition at line 324 of file EEDetId.cc.
References iquadrant(), ixQuadrantOne(), iyQuadrantOne(), and nCrys.
Referenced by EcalURecHitHists::analyze(), DetIdInfo::info(), and fireworks::info().
|
static |
Definition at line 435 of file EEDetId.cc.
References EEDetId(), IX_MAX, and IY_MAX.
Referenced by EcalBarrelGeometry::getClosestEndcapCells().
int EEDetId::iPhiOuterRing | ( | ) | const |
Definition at line 388 of file EEDetId.cc.
References funct::abs(), create_public_lumi_plots::ax, iquadrant(), isOuterRing(), ix(), IX_MAX, iy(), and IY_MAX.
Referenced by spr::simpleMove(), and PFECALHashNavigator::stdsimplemove().
int EEDetId::iquadrant | ( | ) | const |
Gets the quadrant of the DetId. Quadrant number definition, x and y in std CMS coordinates, for EE+:
* A y * | * Q2 | Q1 * | * ----------o---------> x * | * Q3 | Q4 * | *
Definition at line 264 of file EEDetId.cc.
Referenced by EcalTrigTowerConstituentsMap::changeEEDetIdQuadrantAndZ(), EcalBarrelGeometry::getClosestEndcapCells(), ic(), DetIdInfo::info(), fireworks::info(), iPhiOuterRing(), ixQuadrantOne(), iyQuadrantOne(), and EcalTrigTowerConstituentsMap::wrapEEDetId().
int EEDetId::isc | ( | ) | const |
Gets the SuperCrystal number within the endcap. This number runs from 1 to 316, numbers 70 149 228 307 are not used.
BEWARE: This number is not consistent with indices used in constructor: see details below.
Numbering in quadrant 1 of EE+ is the following
* 08 17 27 * 07 16 26 36 45 54 * 06 15 25 35 44 53 62 * 05 14 24 34 43 52 61 69 * 04 13 23 33 42 51 60 68 76 * 03 12 22 32 41 50 59 67 75 * 02 11 21 31 40 49 58 66 74 * 01 10 20 30 39 48 57 65 73 79 * 09 19 29 38 47 56 64 72 78 * 18 28 37 46 55 63 71 77 * * == THERE IS NO INDEX 70! == *
Quadrant 2 indices are deduced by a symetry about y-axis and by adding an offset of 79.
Quadrant 3 and 4 indices are deduced from quadrant 1 and 2 by a symetry about x-axis and adding an offset. Quadrant N starts with index 1 + (N-1)*79.
EE- indices are deduced from EE+ by a symetry about (x,y)-plane (mirrored view). It is inconsistent with indices used in constructor EEDetId(int, int,int) in SCCRYSTALMODE. Indices of constructor uses a symetry along y-axis: in principal it considers the isc as a local index. The discrepancy is most probably due to a bug in the implementation of this isc() method.
Definition at line 285 of file EEDetId.cc.
References ix(), iy(), and nCrys.
Referenced by CaloGeometryHelper::borderCrossing(), DetIdInfo::info(), fireworks::info(), and EcalEndcapRecHitsMaker::SChashedIndex().
|
static |
Gives supercrystal index from endcap supercrystal x and y indexes.
iscCol | supercrystal column number: supecrystal x-index for EE+ |
iscRow,: | supecrystal y-index |
Definition at line 292 of file EEDetId.cc.
References ISC_MAX, iYoffset, and QuadColLimits.
|
static |
Definition at line 361 of file EEDetId.cc.
References isNextToDBoundary(), and isNextToRingBoundary().
Referenced by isNextToBoundary().
|
static |
Definition at line 367 of file EEDetId.cc.
Referenced by PhotonIsolationCalculator::classify(), GsfElectronAlgo::createElectron(), and isNextToBoundary().
|
static |
Definition at line 375 of file EEDetId.cc.
References i, ix(), iy(), j, validDetId(), and zside().
Referenced by PhotonIsolationCalculator::classify(), GsfElectronAlgo::createElectron(), EcalCleaningAlgo::isNearCrack(), isNextToBoundary(), EcalDeadChannelRecoveryNN< EEDetId >::makeNxNMatrice_RelDC(), InterestingDetIdFromSuperClusterProducer::produce(), and InterestingDetIdCollectionProducer::produce().
|
private |
Definition at line 520 of file EEDetId.cc.
References create_public_lumi_plots::ax, isOuterRingXY(), ix(), IX_MAX, iy(), and IY_MAX.
Referenced by iPhiOuterRing().
|
staticprivate |
|
inline |
Gets the crystal x-index.
Definition at line 76 of file EEDetId.h.
References DetId::id_.
Referenced by FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), JetToDigiDump::analyze(), DQMSourceEleCalib::analyze(), EcalEndcapDigisValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), HLTAlCaMonPi0::analyze(), PhiSymmetryCalibration::analyze(), DQMSourcePi0::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), HLTAlCa::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), EcnaAnalyzer::analyze(), EcalSelectiveReadoutValidation::analyzeEE(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), HLTRegionalEcalResonanceFilter::calcShowerShape(), HLTEcalResonanceFilter::calcShowerShape(), EcalTrigTowerConstituentsMap::changeEEDetIdQuadrantAndZ(), ecaldqm::binning::channelName(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), ecaldqm::crystalID(), distanceX(), popcon::EcalLaserHandler::dumpEndcapPayload(), InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), EEDetId(), PhiSymmetryCalibration_step2::endJob(), PhiSymmetryCalibration_step2_SM::endJob(), ElectronCalibrationUniv::endJob(), EcalEleCalibLooper::endOfLoop(), ZeeCalibration::endOfLoop(), AlCaElectronsTest::fillAroundEndcap(), DQMSourceEleCalib::fillAroundEndcap(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEEMap(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), EcalEndcapGeometry::getClosestCell(), EcalBarrelGeometry::getClosestEndcapCells(), EcalElectronicsMapping::getDCCandSC(), EcalElectronicsMapping::getEcalScDetId(), EcalElectronicsMapping::getLMNumber(), EcalClusterToolsT< noZS >::getNormedIX(), EcalRingCalibrationTools::getRingIndex(), hashedIndex(), ecalpyutils::hashedIndexToXY(), DetIdInfo::info(), fireworks::info(), EcalRingCalibrationTools::initializeFromGeometry(), EcalEndcapGeometry::initializeParms(), iPhiOuterRing(), iquadrant(), isc(), ecaldqm::isForward(), isNextToRingBoundary(), isOuterRing(), ixQuadrantOne(), popcon::EcalChannelStatusHandler::laserAnalysis(), EcalClusterLocal::localCoordsEE(), EcalDisplaysByEvent::makeHistos(), EcalDeadChannelRecoveryNN< EEDetId >::makeNxNMatrice_RelDC(), popcon::EcalChannelStatusHandler::nBadLaserModules(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EEDetIdSorter::operator()(), popcon::EcalChannelStatusHandler::pedAnalysis(), PFPhotonClusters::PFCrystalCoor(), ecaldqm::phi(), cond::PayLoadInspector< DataT >::plot(), AlCaIsoTracksProducer::produce(), EcalRecHitWorkerRecover::run(), sc(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), EcalGeomPhiSymHelper::setup(), EcalSelectiveReadoutValidation::superCrystalOf(), switchZSide(), unhashIndex(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), EcalTrigTowerConstituentsMap::wrapEEDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), and calibXMLwriter::writeLine().
|
private |
Definition at line 117 of file EEDetId.cc.
References cppFunctionSkipper::exception, nCols, and QuadColLimits.
|
private |
|
inline |
Get the crystal y-index
Definition at line 82 of file EEDetId.h.
References DetId::id_.
Referenced by JetToDigiDump::analyze(), DQMSourceEleCalib::analyze(), EcalEndcapDigisValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), HLTAlCaMonPi0::analyze(), PhiSymmetryCalibration::analyze(), DQMSourcePi0::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), HLTAlCa::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), EcalSelectiveReadoutValidation::analyzeEE(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), HLTEcalResonanceFilter::calcShowerShape(), HLTRegionalEcalResonanceFilter::calcShowerShape(), EcalTrigTowerConstituentsMap::changeEEDetIdQuadrantAndZ(), ecaldqm::binning::channelName(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), ecaldqm::crystalID(), distanceY(), popcon::EcalLaserHandler::dumpEndcapPayload(), InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), EEDetId(), PhiSymmetryCalibration_step2_SM::endJob(), PhiSymmetryCalibration_step2::endJob(), ElectronCalibrationUniv::endJob(), EcalEleCalibLooper::endOfLoop(), ZeeCalibration::endOfLoop(), AlCaElectronsTest::fillAroundEndcap(), DQMSourceEleCalib::fillAroundEndcap(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEEMap(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), EcalEndcapGeometry::getClosestCell(), EcalBarrelGeometry::getClosestEndcapCells(), EcalElectronicsMapping::getEcalScDetId(), EcalClusterToolsT< noZS >::getNormedIY(), EcalRingCalibrationTools::getRingIndex(), hashedIndex(), ecalpyutils::hashedIndexToXY(), DetIdInfo::info(), fireworks::info(), EcalRingCalibrationTools::initializeFromGeometry(), EcalEndcapGeometry::initializeParms(), iPhiOuterRing(), iquadrant(), isc(), ecaldqm::isForward(), isNextToRingBoundary(), isOuterRing(), iyQuadrantOne(), popcon::EcalChannelStatusHandler::laserAnalysis(), EcalClusterLocal::localCoordsEE(), EcalDisplaysByEvent::makeHistos(), EcalDeadChannelRecoveryNN< EEDetId >::makeNxNMatrice_RelDC(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EEDetIdSorter::operator()(), popcon::EcalChannelStatusHandler::pedAnalysis(), PFPhotonClusters::PFCrystalCoor(), ecaldqm::phi(), cond::PayLoadInspector< DataT >::plot(), AlCaIsoTracksProducer::produce(), EcalRecHitWorkerRecover::run(), sc(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), EcalGeomPhiSymHelper::setup(), EcalSelectiveReadoutValidation::superCrystalOf(), switchZSide(), unhashIndex(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), EcalTrigTowerConstituentsMap::wrapEEDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), and calibXMLwriter::writeLine().
|
private |
Definition at line 181 of file EEDetId.cc.
References cppFunctionSkipper::exception, iYoffset, nCols, and QuadColLimits.
|
private |
EEDetId EEDetId::offsetBy | ( | int | nrStepsX, |
int | nrStepsY | ||
) | const |
returns a new EEDetId offset by nrStepsX and nrStepsY (can be negative), returns EEDetId(0) if invalid
Definition at line 474 of file EEDetId.cc.
References EEDetId(), ix(), iy(), validDetId(), and zside().
Referenced by EcalTools::deadNeighbour(), EcalCleaningAlgo::neighbours(), offsetBy(), and EcalTools::recHitE().
following are static member functions of the above two functions which take and return a DetId, returns DetId(0) if invalid
Definition at line 498 of file EEDetId.cc.
References DetId::det(), DetId::DetId(), DetId::Ecal, EcalEndcap, offsetBy(), DetId::rawId(), and DetId::subdetId().
Assignment operator
id | source det id |
Definition at line 60 of file EEDetId.h.
References DetId::id_.
|
inline |
Checks if crystal is in EE+
Definition at line 173 of file EEDetId.h.
References DetId::id_.
Referenced by ecaldqm::crystalID(), and hashedIndex().
|
inline |
Gets the DetId of the supercrystal the crystal belong to.
cms::Exception | if the crystal det id is invalid |
Definition at line 88 of file EEDetId.h.
References ix(), iy(), and zside().
Referenced by ecaldqm::MESet::maskMatches(), ecaldqm::SummaryClient::producePlots(), and ecaldqm::SelectiveReadoutTask::runOnDigis().
|
static |
Definition at line 546 of file EEDetId.cc.
Referenced by validDetId().
|
inlinestatic |
Gets the subdetector
Definition at line 65 of file EEDetId.h.
References EcalEndcap.
EEDetId EEDetId::switchZSide | ( | ) | const |
returns a new EEDetId swapped (same iX, iY) to the other endcap, returns EEDetId(0) if invalid (shouldnt happen)
Definition at line 487 of file EEDetId.cc.
References EEDetId(), ix(), iy(), validDetId(), and zside().
Referenced by ecaldqm::TimingClient::producePlots(), and switchZSide().
Definition at line 509 of file EEDetId.cc.
References DetId::det(), DetId::DetId(), DetId::Ecal, EcalEndcap, DetId::rawId(), DetId::subdetId(), and switchZSide().
|
static |
Gets a DetId from a compact index for arrays. Converse of hashedIndex() method.
hi | dense/hashed index |
Definition at line 99 of file EEDetId.cc.
References EEDetId(), cuy::ii, ix(), iy(), IY_MAX, kdi, kEEhalf, kxf, and validHashIndex().
Referenced by detIdFromDenseIndex(), popcon::EcalLaserHandler::dumpEndcapPayload(), EcalChannelStatusXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), EcalElectronicsMappingBuilder::FillFromDatabase(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), popcon::EcalLaser_weekly_Handler::getNewObjects(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), ecalpyutils::hashedIndexToXY(), CalorimetryManager::loadFromEcalEndcap(), main(), popcon::EcalLaserHandler::notifyProblems(), printStatusRecords(), StoreEcalCondition::readEcalChannelStatusFromFile(), ecaldqm::StatusManager::readFromObj(), ecaldqm::StatusManager::readFromStream(), and ecaldqm::StatusManager::writeToObj().
|
inlinestatic |
Checks validity of a dense/hashed index
din | dense/hashed index as returned by hashedIndex() or denseIndex() method |
Definition at line 213 of file EEDetId.h.
References validHashIndex().
Referenced by EcalTPSkimmer::produce(), and ecaldqm::StatusManager::readFromStream().
|
inlinestatic |
Checks validity of a crystal (x,y.z) index triplet.
crystal_ix | crystal x-index |
crystal_iy | crystal y-index |
iz | crystal z-index |
Definition at line 248 of file EEDetId.h.
References funct::abs(), fastValidDetId(), IX_MAX, IX_MIN, IY_MAX, IY_MIN, and slowValidDetId().
Referenced by EcalGetLaserData::analyze(), EcalCosmicsHists::analyze(), EnergyResolutionVsLumi::calcmuTot(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), EcalEndcapHardcodedTopology::decrementIx(), EcalEndcapTopology::decrementIx(), EcalEndcapHardcodedTopology::decrementIy(), EcalEndcapTopology::decrementIy(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), EcalEleCalibLooper::EcalEleCalibLooper(), EEDetId(), EcalEleCalibLooper::EERegionDefinition(), InvRingCalib::EERingDef(), ZeeCalibration::endOfJob(), EcalSimHitsValidProducer::energyInEEMatrix(), EcalEndcapSimHitsValidation::energyInMatrixEE(), spr::extraIds(), PhiSymmetryCalibration_step2::fillConstantsHistos(), PhiSymmetryCalibration_step2_SM::fillConstantsHistos(), MatrixFillMap::fillEEMap(), EcalSimHitsValidProducer::fillEEMatrix(), EcalEndcapSimHitsValidation::fillEEMatrix(), EcalRecHitsValidation::findEndcapMatrix(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes(), EcalEndcapGeometry::getCells(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), EcalEndcapGeometry::getClosestCell(), EcalBarrelGeometry::getClosestEndcapCells(), EcalElectronicsMapping::getDCCandSC(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalEndcapSimHitsValidation::getIdsAroundMax(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalIntercalibHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsH2(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalEndcapNumberingScheme::getUnitID(), EcalEndcapGeometry::gId(), ecalpyutils::hashedIndexEE(), EcalEndcapHardcodedTopology::incrementIx(), EcalEndcapTopology::incrementIx(), EcalEndcapHardcodedTopology::incrementIy(), EcalEndcapTopology::incrementIy(), PhotonFixCMS::initialise(), isNextToRingBoundary(), ecaldqm::binning::isValidIdBin(), popcon::EcalChannelStatusHandler::laserAnalysis(), popcon::EcalChannelStatusHandler::laserMasking(), ecaldqm::MESet::maskMatches(), popcon::EcalChannelStatusHandler::nBadLaserModules(), offsetBy(), popcon::EcalChannelStatusHandler::pedAnalysis(), popcon::EcalChannelStatusHandler::pedMasking(), popcon::EcalChannelStatusHandler::pedOnlineMasking(), popcon::EcalChannelStatusHandler::physicsMasking(), cond::PayLoadInspector< DataT >::plot(), CaloMiscalibMapEcal::print(), EcalRecHitProducer::produce(), EcalDetIdToBeRecoveredProducer::produce(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), EcalRecHitWorkerRecover::run(), EcalSelectiveReadout::runSelectiveReadout0(), ecaldqm::scConstituents(), cond::PayLoadInspector< DataT >::summary(), switchZSide(), and CaloGenericDetId::validDetId().
|
inlinestatic |
Checks if a hashed/dense index is valid
i | hashed/dense index |
Definition at line 239 of file EEDetId.h.
References kSizeForDenseIndexing.
Referenced by EcalChannelStatusXMLTranslator::dumpXML(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), main(), unhashIndex(), and validDenseIndex().
|
inline |
Gets the z-side of the crystal (1/-1)
Definition at line 70 of file EEDetId.h.
References DetId::id_.
Referenced by FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), EcalPreshowerRecHitsValidation::analyze(), EcalEndcapDigisValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), PhiSymmetryCalibration::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), EcalSelectiveReadoutValidation::analyzeEE(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), ecaldqm::crystalID(), popcon::EcalLaserHandler::dumpEndcapPayload(), InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), InvRingCalib::EERegId(), InvRingCalib::EERegionDef(), InvRingCalib::EERingDef(), PhiSymmetryCalibration_step2::endJob(), PhiSymmetryCalibration_step2_SM::endJob(), ElectronCalibrationUniv::endJob(), EcalEleCalibLooper::endOfLoop(), ZeeCalibration::endOfLoop(), MatrixFillMap::fillEEMap(), ECALRecHitAnalyzer::FillGeometry(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), EcalEndcapGeometry::getClosestCell(), EcalElectronicsMapping::getEcalScDetId(), EcalRingCalibrationTools::getRingIndex(), ecalpyutils::hashedIndexToXY(), EcalRingCalibrationTools::initializeFromGeometry(), isNextToRingBoundary(), popcon::EcalChannelStatusHandler::laserAnalysis(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EEDetIdSorter::operator()(), popcon::EcalChannelStatusHandler::pedAnalysis(), cond::PayLoadInspector< DataT >::plot(), ecaldqm::TimingClient::producePlots(), EcalRecHitWorkerRecover::run(), sc(), EcalEndcapRecHitsMaker::SChashedIndex(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), EcalGeomPhiSymHelper::setup(), EcalSelectiveReadoutValidation::superCrystalOf(), switchZSide(), EcalTrigTowerConstituentsMap::towerOf(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), and calibXMLwriter::writeLine().
|
static |
|
static |
|
static |
|
static |
|
static |
Upper bound of EE crystal y-index
Definition at line 302 of file EEDetId.h.
Referenced by EcalGetLaserData::analyze(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), EnergyResolutionVsLumi::calcmuTot(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), idOuterRing(), EcalRingCalibrationTools::initializeFromGeometry(), iPhiOuterRing(), isOuterRing(), cond::PayLoadInspector< DataT >::plot(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), cond::PayLoadInspector< DataT >::summary(), and validDetId().
|
static |
Lower bound of EE crystal x-index
Definition at line 294 of file EEDetId.h.
Referenced by EcalGetLaserData::analyze(), EnergyResolutionVsLumi::calcmuTot(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), and validDetId().
|
static |
Upper bound of EE crystal y-index
Definition at line 306 of file EEDetId.h.
Referenced by EcalGetLaserData::analyze(), EnergyResolutionVsLumi::calcmuTot(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), idOuterRing(), EcalRingCalibrationTools::initializeFromGeometry(), iPhiOuterRing(), isOuterRing(), cond::PayLoadInspector< DataT >::plot(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), cond::PayLoadInspector< DataT >::summary(), unhashIndex(), and validDetId().
|
static |
Lower bound of EE crystal y-index
Definition at line 298 of file EEDetId.h.
Referenced by EcalGetLaserData::analyze(), EnergyResolutionVsLumi::calcmuTot(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), and validDetId().
|
staticprivate |
|
staticprivate |
Definition at line 357 of file EEDetId.h.
Referenced by hashedIndex(), and unhashIndex().
|
staticprivate |
Definition at line 356 of file EEDetId.h.
Referenced by hashedIndex(), and unhashIndex().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Definition at line 340 of file EEDetId.h.
Referenced by EEDetId(), and EcalEndcapNumberingScheme::getUnitID().
|
static |
function modes for EEDetId(int, int, int, int) constructor
Definition at line 339 of file EEDetId.h.
Referenced by EcalTPGParamBuilder::analyze(), EcalTrigTowerConstituentsMap::changeEEDetIdQuadrantAndZ(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EEDetId(), InvRingCalib::EERingDef(), MatrixFillMap::fillEEMap(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), EcalElectronicsMapping::getDCCandSC(), EcalTrivialConditionRetriever::getMappingFromConfiguration(), EcalMappingElectronicsHandler::getNewObjects(), popcon::EcalLaser_weekly_Linearization_Check::getNewObjects(), popcon::EcalTPGLinConstHandler::getNewObjects(), popcon::EcalTPGPedestalsHandler::getNewObjects(), cond::PayLoadInspector< DataT >::plot(), and EcalTrigTowerConstituentsMap::wrapEEDetId().