#include <EcalTrigTowerDetId.h>
Public Types | |
enum | { kEETowersInPhiPerEndcap = 4* kEETowersInPhiPerQuadrant, kEEOuterEta = 18, kEEInnerEta = 28, kEETowersInEta = ( kEEInnerEta - kEEOuterEta + 1 ), kEBHalfTowers = kEBTowersPerSM*18, kEBTotalTowers = kEBHalfTowers*2, kEETowersPerEndcap = kEETowersInEta*kEETowersInPhiPerEndcap - 72, kEETotalTowers = kEETowersPerEndcap*2, kSizeForDenseIndexing = kEBTotalTowers + kEETotalTowers } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5 } |
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... | |
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 | |
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 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 const int | kEBTowersInEta = 17 |
static const int | kEBTowersInPhi = 4 |
static const int | kEBTowersPerSM = 68 |
static const int | kEETowersInPhiPerQuadrant = 18 |
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 | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
DetId for an Ecal Trigger tower
Definition at line 16 of file EcalTrigTowerDetId.h.
anonymous enum |
Enumerator | |
---|---|
kEETowersInPhiPerEndcap | |
kEEOuterEta | |
kEEInnerEta | |
kEETowersInEta | |
kEBHalfTowers | |
kEBTotalTowers | |
kEETowersPerEndcap | |
kEETotalTowers | |
kSizeForDenseIndexing |
Definition at line 125 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 | ) |
EcalTrigTowerDetId::EcalTrigTowerDetId | ( | int | zside, |
EcalSubdetector | subdet, | ||
int | i, | ||
int | j, | ||
int | mode = SUBDETIJMODE |
||
) |
Constructor from signed ieta, iphi.
Definition at line 12 of file EcalTrigTowerDetId.cc.
References EcalBarrel, edm::hlt::Exception, i, DetId::id_, j, MAX_I, MAX_J, MIN_J, SUBDETDCCTTMODE, and SUBDETIJMODE.
EcalTrigTowerDetId::EcalTrigTowerDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 37 of file EcalTrigTowerDetId.cc.
References DetId::det(), DetId::Ecal, EcalTriggerTower, edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
inline |
Definition at line 91 of file EcalTrigTowerDetId.h.
References hashedIndex().
|
static |
Definition at line 130 of file EcalTrigTowerDetId.cc.
References assert(), EcalBarrel, EcalEndcap, EcalTrigTowerDetId(), i, j, kEBHalfTowers, kEBTotalTowers, kEBTowersInPhi, kEBTowersPerSM, kEEOuterEta, kEETowersInPhiPerEndcap, kEETowersPerEndcap, sd, and validDetId().
Referenced by EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), ecaldqm::TowerStatusTask::endLuminosityBlock(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), cond::PayLoadInspector< DataT >::plot(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::TrigPrimClient::producePlots(), ecaldqm::SelectiveReadoutClient::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 117 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(), EcalBarrelRecHitsMaker::init(), EcalBarrelRecHitsMaker::loadEcalBarrelRecHits(), EcalBarrelRecHitsMaker::loadPCaloHits(), ecaldqm::SelectiveReadoutTask::runOnDigis(), ecaldqm::SelectiveReadoutTask::runOnSrFlags(), and EcalEndcapRecHitsMaker::TThashedIndexforEE().
int EcalTrigTowerDetId::iDCC | ( | ) | const |
get the ECAL DCC id - in the barrrel ism == iDCC
Definition at line 53 of file EcalTrigTowerDetId.cc.
References EcalBarrel, edm::hlt::Exception, iphi(), kEBTowersInPhi, subDet(), and zside().
Referenced by hashedIndex().
|
inline |
get the tower ieta
Definition at line 48 of file EcalTrigTowerDetId.h.
References ietaAbs(), and zside().
Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), ecaldqm::binning::channelName(), EcalTrigPrimCompactColl::compressedEt(), EcalSelectiveReadoutValidation::dccCh(), TCCBlockFormatter::DigiToRaw(), EcalTPGTowerStatusXMLTranslator::dumpXML(), ecaldqm::MESetProjection::fill(), ecaldqm::binning::findBinSuperCrystal_(), ecaldqm::binning::findBinTriggerTower_(), EcalTrigPrimCompactColl::fineGrain(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetProjection::getBinError(), EcalSimRawData::getSrfs(), EcalSelectiveReadout::getTowerInterest(), EcalSimRawData::getTp(), EcalTPGTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), cond::PayLoadInspector< DataT >::plot(), EcalSelectiveReadoutProducer::printSrFlags(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), ecaldqm::OccupancyClient::producePlots(), EcalTrigPrimCompactColl::raw(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetProjection::setBinError(), EcalSelectiveReadoutValidation::setTtEtSums(), EcalSelectiveReadoutSuppressor::setTtFlags(), EcalTrigPrimCompactColl::sFGVB(), EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection(), EcalTrigPrimCompactColl::ttFlag(), and xuti::writeCell().
|
inline |
get the absolute value of the tower ieta
Definition at line 39 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::dccId(), TCCBlockFormatter::DigiToRaw(), hashedIndex(), ieta(), iTT(), EcalTrigPrimFunctionalAlgo::run_part2(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
|
inline |
get the tower iphi
Definition at line 57 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), ecaldqm::binning::channelName(), EcalTrigPrimCompactColl::compressedEt(), EcalSelectiveReadoutValidation::dccCh(), TCCBlockFormatter::DigiToRaw(), EcalTPGTowerStatusXMLTranslator::dumpXML(), ecaldqm::binning::findBinSuperCrystal_(), ecaldqm::binning::findBinTriggerTower_(), EcalTrigPrimCompactColl::fineGrain(), EcalSimRawData::getSrfs(), EcalSelectiveReadout::getTowerInterest(), EcalSimRawData::getTp(), hashedIndex(), iDCC(), iquadrant(), iTT(), ecaldqm::phi(), EcalTPGTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), cond::PayLoadInspector< DataT >::plot(), EcalSelectiveReadoutProducer::printSrFlags(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), EcalTrigPrimCompactColl::raw(), EcalTrigPrimFunctionalAlgo::run_part2(), EcalSelectiveReadoutValidation::setTtEtSums(), EcalSelectiveReadoutSuppressor::setTtFlags(), EcalTrigPrimCompactColl::sFGVB(), EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection(), EcalTrigPrimCompactColl::ttFlag(), EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId(), and xuti::writeCell().
int EcalTrigTowerDetId::iquadrant | ( | ) | const |
Definition at line 88 of file EcalTrigTowerDetId.cc.
References EcalEndcap, edm::hlt::Exception, iphi(), kEETowersInPhiPerQuadrant, and subDet().
Referenced by EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
int EcalTrigTowerDetId::iTT | ( | ) | const |
sequential index within one DCC
Definition at line 68 of file EcalTrigTowerDetId.cc.
References EcalBarrel, edm::hlt::Exception, ietaAbs(), iphi(), kEBTowersInPhi, subDet(), and zside().
Referenced by hashedIndex(), ecaldqm::towerId(), and ecaldqm::ttId().
EcalTrigTowerDetId & EcalTrigTowerDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 44 of file EcalTrigTowerDetId.cc.
References DetId::det(), DetId::Ecal, EcalTriggerTower, edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
inline |
get the subDetector associated to the Trigger Tower
Definition at line 36 of file EcalTrigTowerDetId.h.
References EcalBarrel, EcalEndcap, and DetId::id_.
Referenced by EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), EcalTPGParamBuilder::analyze(), TCCBlockFormatter::DigiToRaw(), EcalTPGScale::getTPGInADC(), EcalTPGScale::getTPGInGeV(), hashedIndex(), iDCC(), iquadrant(), iTT(), EcalDigiToRaw::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
|
inlinestatic |
|
static |
check if a valid index combination
Definition at line 97 of file EcalTrigTowerDetId.cc.
References funct::abs(), EcalBarrel, EcalEndcap, kEBTowersInEta, kEEInnerEta, kEEOuterEta, 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 33 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), hashedIndex(), iDCC(), ieta(), iTT(), EcalTrigPrimFunctionalAlgo::run_part2(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), and EcalDeadCellTriggerPrimitiveFilter::setEvtTPstatus().
|
static |
Definition at line 117 of file EcalTrigTowerDetId.h.
Referenced by validDetId().
|
static |
Definition at line 115 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), iDCC(), and iTT().
|
static |
Definition at line 116 of file EcalTrigTowerDetId.h.
Referenced by detIdFromDenseIndex(), EcalCondTowerObjectContainer< EcalDAQStatusCode >::EcalCondTowerObjectContainer(), EcalElectronicsMapper::fillMaps(), hashedIndex(), and EcalElectronicsMapper::resetPointers().
|
static |
Definition at line 119 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerConstituentsMap::changeTowerQuadrant(), iquadrant(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
|
static |
Definition at line 112 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 113 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 110 of file EcalTrigTowerDetId.h.
|
static |
Definition at line 111 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 123 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId().
|
static |
Definition at line 122 of file EcalTrigTowerDetId.h.
Referenced by EcalTrigTowerDetId(), EcalElectronicsMapping::getTrigTowerDetId(), and EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection().