#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, Forward =6, VeryForward =7, HGCalEE =8, HGCalHSi =9, HGCalHSc =10 } |
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, Exception, mps_fire::i, DetId::id_, 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, 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 EcalBarrel, EcalEndcap, EcalTrigTowerDetId(), mps_fire::i, kEBHalfTowers, kEBTotalTowers, kEBTowersInPhi, kEBTowersPerSM, kEEOuterEta, kEETowersInPhiPerEndcap, kEETowersPerEndcap, sd, and validDetId().
Referenced by EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), ecaldqm::TowerStatusTask::endLuminosityBlock(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::SelectiveReadoutClient::producePlots(), ecaldqm::TrigPrimClient::producePlots(), ecaldqm::StatusManager::readFromObj(), ecaldqm::SelectiveReadoutTask::runOnDigis(), validDenseIndex(), 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(), iphi(), ecaldqm::SelectiveReadoutTask::runOnDigis(), and ecaldqm::SelectiveReadoutTask::runOnSrFlags().
int EcalTrigTowerDetId::iDCC | ( | ) | const |
get the ECAL DCC id - in the barrrel ism == iDCC
Definition at line 53 of file EcalTrigTowerDetId.cc.
References EcalBarrel, Exception, triggerObjects_cff::id, iphi(), kEBTowersInPhi, subDet(), and zside().
Referenced by hashedIndex(), and validDenseIndex().
|
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(), EcalSelectiveReadoutValidation::analyzeEB(), ecaldqm::binning::channelName(), EcalTrigPrimCompactColl::compressedEt(), EcalSelectiveReadoutValidation::dccCh(), TCCBlockFormatter::DigiToRaw(), EcalTPGTowerStatusXMLTranslator::dumpXML(), ecaldqm::MESetProjection::fill(), ecaldqm::binning::findBinRCT_(), 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(), 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 hashedIndex(), DetId::id_, and iquadrant().
Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), ecaldqm::binning::channelName(), EcalTrigPrimCompactColl::compressedEt(), EcalSelectiveReadoutValidation::dccCh(), TCCBlockFormatter::DigiToRaw(), EcalTPGTowerStatusXMLTranslator::dumpXML(), ecaldqm::binning::findBinRCT_(), ecaldqm::binning::findBinSuperCrystal_(), ecaldqm::binning::findBinTriggerTower_(), EcalTrigPrimCompactColl::fineGrain(), EcalSimRawData::getSrfs(), EcalSelectiveReadout::getTowerInterest(), EcalSimRawData::getTp(), hashedIndex(), iDCC(), iquadrant(), iTT(), ecaldqm::phi(), EcalTPGTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::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, Exception, createfilelist::int, iphi(), kEETowersInPhiPerQuadrant, and subDet().
Referenced by iphi(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
int EcalTrigTowerDetId::iTT | ( | ) | const |
sequential index within one DCC
Definition at line 68 of file EcalTrigTowerDetId.cc.
References EcalBarrel, Exception, ietaAbs(), iphi(), kEBTowersInPhi, subDet(), and zside().
Referenced by hashedIndex(), ecaldqm::towerId(), ecaldqm::ttId(), and validDenseIndex().
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, 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(), ecaldqm::TrigPrimClient::producePlots(), EcalTrigPrimFunctionalAlgo::run_part2(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().
|
inlinestatic |
Definition at line 93 of file EcalTrigTowerDetId.h.
References detIdFromDenseIndex(), iDCC(), iTT(), kSizeForDenseIndexing, sd, and validDetId().
|
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(), EcalTrivialConditionRetriever::produceEcalDQMTowerStatus(), and validDenseIndex().
|
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().