#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 } |
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, 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, 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 ecaldqm::TowerStatusTask::endLuminosityBlock(), and ecaldqm::SelectiveReadoutClient::producePlots().
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().
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, 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 EcalTrigPrimCompactColl::compressedEt(), EcalTrigPrimCompactColl::fineGrain(), EcalTrigPrimCompactColl::raw(), EcalTrigPrimCompactColl::sFGVB(), EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection(), and EcalTrigPrimCompactColl::ttFlag().
|
inline |
get the absolute value of the tower ieta
Definition at line 39 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by TPGCheck::analyze(), hashedIndex(), ieta(), and iTT().
|
inline |
get the tower iphi
Definition at line 57 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by EcalTrigPrimCompactColl::compressedEt(), EcalTrigPrimCompactColl::fineGrain(), hashedIndex(), iDCC(), iquadrant(), iTT(), EcalTrigPrimCompactColl::raw(), EcalTrigPrimCompactColl::sFGVB(), EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection(), and EcalTrigPrimCompactColl::ttFlag().
int EcalTrigTowerDetId::iquadrant | ( | ) | const |
Definition at line 88 of file EcalTrigTowerDetId.cc.
References EcalEndcap, Exception, iphi(), kEETowersInPhiPerQuadrant, and subDet().
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().
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 TPGCheck::analyze(), EcalTPGScale::getTPGInADC(), EcalTPGScale::getTPGInGeV(), hashedIndex(), iDCC(), iquadrant(), and iTT().
|
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().
|
inline |
get the z-side of the tower (1/-1)
Definition at line 33 of file EcalTrigTowerDetId.h.
References DetId::id_.
Referenced by hashedIndex(), iDCC(), ieta(), and iTT().
|
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(), and hashedIndex().
|
static |
Definition at line 119 of file EcalTrigTowerDetId.h.
Referenced by iquadrant().
|
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(), and EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection().