#include <EcalTrigTowerDetId.h>
Public Member Functions | |
uint32_t | denseIndex () const |
EcalTrigTowerDetId () | |
EcalTrigTowerDetId (uint32_t rawid) | |
EcalTrigTowerDetId (int zside, EcalSubdetector subdet, int i, int j, int mode=SUBDETIJMODE) | |
Constructor from signed ieta, iphi. More... | |
EcalTrigTowerDetId (const DetId &id) | |
int | hashedIndex () const |
get a compact index for arrays [TODO: NEEDS WORK] More... | |
int | iDCC () const |
get the ECAL DCC id - in the barrrel ism == iDCC More... | |
int | ieta () const |
get the tower ieta More... | |
int | ietaAbs () const |
get the absolute value of the tower ieta More... | |
int | iphi () const |
get the tower iphi More... | |
int | iquadrant () const |
int | iTT () const |
sequential index within one DCC More... | |
int | ix () const |
get the tower ix (Endcap case) */ More... | |
int | iy () const |
get the tower iy (Endcap case) */ More... | |
EcalTrigTowerDetId & | operator= (const DetId &id) |
EcalSubdetector | subDet () const |
get the subDetector associated to the Trigger Tower More... | |
int | zside () const |
get the z-side of the tower (1/-1) More... | |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Member Functions | |
static EcalTrigTowerDetId | detIdFromDenseIndex (uint32_t di) |
static bool | validDenseIndex (uint32_t din) |
static bool | validDetId (int iz, EcalSubdetector sd, int i, int j) |
check if a valid index combination More... | |
Static Public Attributes | |
static constexpr int | kEBHalfTowers = kEBTowersPerSM * 18 |
static constexpr int | kEBTotalTowers = kEBHalfTowers * 2 |
static const int | kEBTowersInEta = 17 |
static const int | kEBTowersInPhi = 4 |
static const int | kEBTowersPerSM = 68 |
static constexpr int | kEEInnerEta = 28 |
static constexpr int | kEEOuterEta = 18 |
static constexpr int | kEETotalTowers = kEETowersPerEndcap * 2 |
static constexpr int | kEETowersInEta = (kEEInnerEta - kEEOuterEta + 1) |
static constexpr int | kEETowersInPhiPerEndcap = 4 * kEETowersInPhiPerQuadrant |
static const int | kEETowersInPhiPerQuadrant = 18 |
static constexpr int | kEETowersPerEndcap = kEETowersInEta * kEETowersInPhiPerEndcap - 72 |
static constexpr int | kSizeForDenseIndexing = kEBTotalTowers + kEETotalTowers |
static const int | MAX_I = 127 |
static const int | MAX_J = 127 |
static const int | MIN_I = 1 |
static const int | MIN_J = 1 |
static const int | SUBDETDCCTTMODE = 1 |
static const int | SUBDETIJMODE = 0 |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
DetId for an Ecal Trigger tower
Definition at line 14 of file EcalTrigTowerDetId.h.
EcalTrigTowerDetId::EcalTrigTowerDetId | ( | ) |
Constructor of a null id
Definition at line 5 of file EcalTrigTowerDetId.cc.
Referenced by detIdFromDenseIndex().
EcalTrigTowerDetId::EcalTrigTowerDetId | ( | uint32_t | rawid | ) |
Constructor from a raw value
Definition at line 7 of file EcalTrigTowerDetId.cc.
EcalTrigTowerDetId::EcalTrigTowerDetId | ( | int | zside, |
EcalSubdetector | subdet, | ||
int | i, | ||
int | j, | ||
int | mode = SUBDETIJMODE |
||
) |
Constructor from signed ieta, iphi.
Definition at line 9 of file EcalTrigTowerDetId.cc.
References EcalBarrel, Exception, mps_fire::i, DetId::id_, dqmiolumiharvest::j, MAX_I, MAX_J, MIN_J, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, subDet(), SUBDETDCCTTMODE, SUBDETIJMODE, and zside().
EcalTrigTowerDetId::EcalTrigTowerDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 31 of file EcalTrigTowerDetId.cc.
References DetId::Ecal, EcalTriggerTower, Exception, and DetId::id_.
|
inline |
Definition at line 80 of file EcalTrigTowerDetId.h.
References hashedIndex().
|
static |
Definition at line 104 of file EcalTrigTowerDetId.cc.
References cms::cuda::assert(), EcalBarrel, EcalEndcap, EcalTrigTowerDetId(), mps_fire::i, dqmiolumiharvest::j, kEBHalfTowers, kEBTotalTowers, kEBTowersInPhi, kEBTowersPerSM, kEEOuterEta, kEETowersInPhiPerEndcap, kEETowersPerEndcap, and validDetId().
Referenced by EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), ecaldqm::TowerStatusTask::endLuminosityBlock(), EcalDAQTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), ecaldqm::TrigPrimClient::producePlots(), ecaldqm::SelectiveReadoutClient::producePlots(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::StatusManager::readFromObj(), ecaldqm::SelectiveReadoutTask::runOnDigis(), and ecaldqm::StatusManager::writeToObj().
int EcalTrigTowerDetId::hashedIndex | ( | ) | const |
get a compact index for arrays [TODO: NEEDS WORK]
Definition at line 93 of file EcalTrigTowerDetId.cc.
References EcalBarrel, iDCC(), ietaAbs(), iphi(), iTT(), kEBTotalTowers, kEBTowersPerSM, kEEOuterEta, kEETowersInPhiPerEndcap, kEETowersPerEndcap, subDet(), and zside().
Referenced by denseIndex(), popcon::EcalDAQHandler::getNewObjects(), popcon::EcalDCSHandler::getNewObjects(), ecaldqm::SelectiveReadoutTask::runOnDigis(), and ecaldqm::SelectiveReadoutTask::runOnSrFlags().
int EcalTrigTowerDetId::iDCC | ( | ) | const |
get the ECAL DCC id - in the barrrel ism == iDCC
Definition at line 47 of file EcalTrigTowerDetId.cc.
References EcalBarrel, Exception, l1ctLayer2EG_cff::id, iphi(), kEBTowersInPhi, subDet(), and zside().
Referenced by hashedIndex().
|
inline |
get the tower ieta
Definition at line 44 of file EcalTrigTowerDetId.h.
References ietaAbs(), and zside().
Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), TCCBlockFormatter::DigiToRaw(), ecaldqm::MESetProjection::fill(), ecaldqm::binning::findBinRCT_(), ecaldqm::binning::findBinSuperCrystal_(), ecaldqm::binning::findBinTriggerTower_(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetProjection::getBinError(), EcalDAQTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), ecaldqm::OccupancyClient::producePlots(), EcalEBPhase2TrigPrimAlgo::run(), EcalTrigPrimFunctionalAlgo::run_part2(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetProjection::setBinError(), and xuti::writeCell().
|
inline |
get the absolute value of the tower ieta
Definition at line 36 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), TCCBlockFormatter::DigiToRaw(), hashedIndex(), ieta(), iTT(), EcalTrigPrimFunctionalAlgo::run_part2(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
|
inline |
get the tower iphi
Definition at line 52 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), TCCBlockFormatter::DigiToRaw(), ecaldqm::binning::findBinRCT_(), ecaldqm::binning::findBinSuperCrystal_(), ecaldqm::binning::findBinTriggerTower_(), hashedIndex(), iDCC(), iquadrant(), iTT(), ecaldqm::phi(), EcalDAQTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), EcalEBPhase2TrigPrimAlgo::run(), EcalTrigPrimFunctionalAlgo::run_part2(), EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId(), and xuti::writeCell().
int EcalTrigTowerDetId::iquadrant | ( | ) | const |
Definition at line 79 of file EcalTrigTowerDetId.cc.
References EcalEndcap, Exception, createfilelist::int, iphi(), kEETowersInPhiPerQuadrant, and subDet().
Referenced by EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
int EcalTrigTowerDetId::iTT | ( | ) | const |
sequential index within one DCC
Definition at line 61 of file EcalTrigTowerDetId.cc.
References EcalBarrel, Exception, ietaAbs(), iphi(), kEBTowersInPhi, subDet(), and zside().
Referenced by hashedIndex(), ecaldqm::towerId(), and ecaldqm::ttId().
|
inline |
get the tower ix (Endcap case) */
Definition at line 62 of file EcalTrigTowerDetId.h.
References EcalEndcap, DetId::id_, and subDet().
|
inline |
get the tower iy (Endcap case) */
Definition at line 70 of file EcalTrigTowerDetId.h.
References EcalEndcap, DetId::id_, and subDet().
EcalTrigTowerDetId & EcalTrigTowerDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 38 of file EcalTrigTowerDetId.cc.
References DetId::Ecal, EcalTriggerTower, Exception, and DetId::id_.
|
inline |
get the subDetector associated to the Trigger Tower
Definition at line 33 of file EcalTrigTowerDetId.h.
References EcalBarrel, EcalEndcap, and DetId::id_.
Referenced by EcalTPGParamBuilder::analyze(), TCCBlockFormatter::DigiToRaw(), EcalTrigTowerDetId(), hashedIndex(), iDCC(), iquadrant(), iTT(), ix(), iy(), EcalDigiToRaw::produce(), ecaldqm::TrigPrimClient::producePlots(), EcalTrigPrimFunctionalAlgo::run_part2(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
|
inlinestatic |
Definition at line 82 of file EcalTrigTowerDetId.h.
References cropTnPTrees::din, and kSizeForDenseIndexing.
|
static |
check if a valid index combination
Definition at line 86 of file EcalTrigTowerDetId.cc.
References funct::abs(), EcalBarrel, EcalEndcap, mps_fire::i, dqmiolumiharvest::j, kEBTowersInEta, and kEETowersInPhiPerEndcap.
Referenced by detIdFromDenseIndex(), popcon::EcalDAQHandler::getNewObjects(), popcon::EcalDCSHandler::getNewObjects(), popcon::EcalDCSHandler::insertHVDataSetToOffline(), popcon::EcalDCSHandler::insertLVDataSetToOffline(), L1CaloEcalScaleConfigOnlineProd::newObject(), EcalTrivialConditionRetriever::produceEcalDAQTowerStatus(), EcalTrivialConditionRetriever::produceEcalDCSTowerStatus(), and EcalTrivialConditionRetriever::produceEcalDQMTowerStatus().
|
inline |
get the z-side of the tower (1/-1)
Definition at line 30 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalTrigTowerDetId(), hashedIndex(), iDCC(), ieta(), iTT(), EcalEBPhase2TrigPrimAlgo::run(), EcalTrigPrimFunctionalAlgo::run_part2(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), and EcalDeadCellTriggerPrimitiveFilter::setEvtTPstatus().
|
static |
Definition at line 111 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex().
|
static |
Definition at line 112 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), ecaldqm::TowerStatusTask::endLuminosityBlock(), hashedIndex(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), ecaldqm::StatusManager::readFromObj(), ecaldqm::SelectiveReadoutTask::runOnDigis(), ecaldqm::SelectiveReadoutTask::runOnSrFlags(), and ecaldqm::StatusManager::writeToObj().
|
static |
Definition at line 102 of file EcalTrigTowerDetId.h.
Referenced by validDetId().
|
static |
Definition at line 100 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), iDCC(), and iTT().
|
static |
Definition at line 101 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), EcalCondTowerObjectContainer< T >::EcalCondTowerObjectContainer(), EcalElectronicsMapper::fillMaps(), hashedIndex(), and EcalElectronicsMapper::resetPointers().
|
static |
Definition at line 110 of file EcalTrigTowerDetId.h.
|
static |
Definition at line 110 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), and hashedIndex().
|
static |
Definition at line 114 of file EcalTrigTowerDetId.h.
Referenced by EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::plot(), and EcalDAQTowerStatusXMLTranslator::plot().
|
static |
Definition at line 111 of file EcalTrigTowerDetId.h.
|
static |
Definition at line 110 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), hashedIndex(), and validDetId().
|
static |
Definition at line 104 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerConstituentsMap::changeTowerQuadrant(), iquadrant(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
|
static |
Definition at line 113 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), and hashedIndex().
|
static |
Definition at line 114 of file EcalTrigTowerDetId.h.
Referenced by ecaldqm::TrigPrimClient::producePlots(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::SelectiveReadoutClient::producePlots(), and validDenseIndex().
|
static |
Definition at line 97 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 98 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 95 of file EcalTrigTowerDetId.h.
|
static |
Definition at line 96 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 108 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 107 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId(), EcalElectronicsMapping::getTrigTowerDetId(), and EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection().