20 if (i!=
m_items.end()) tid=i->tower;
48 throw cms::Exception(
"CaloTowers") <<
"Cell with id " << std::hex << cell.
rawId() << std::dec <<
" is already mapped to a CaloTower " <<
m_items.find(cell)->tower << std::endl;
58 std::vector<DetId> items;
67 std::multimap<CaloTowerDetId,DetId>::const_iterator
j;
68 std::pair<std::multimap<CaloTowerDetId,DetId>::const_iterator,std::multimap<CaloTowerDetId,DetId>::const_iterator> range=
m_reverseItems.equal_range(
id);
69 for (j=range.first; j!=range.second; j++)
70 items.push_back(j->second);
79 for (
int i=0;
i<nd;
i++)
86 for (
int i=0;
i<nd;
i++)
93 for (
int i=0;
i<nd;
i++)
101 for (
int i=0;
i<nd;
i++)
103 if (
id.ietaAbs() == 30) {
104 ieta = 29*
id.zside();
106 for (
int i=0;
i<nd;
i++)
114 if (hid.
zside() == -1) {
121 for (
int ie=etaMin; ie<=
etaMax; ie++)
123 items.push_back(
EBDetId(ie,ip));
void useStandardHE(bool use=true)
add standard (hardcoded) HE items?
CaloTowerConstituentsMap()
HcalSubdetector subdet() const
get the subdetector
std::multimap< CaloTowerDetId, DetId > m_reverseItems
int tower_ieta() const
get the HCAL/trigger ieta of this crystal
int zside() const
get the z-side of the cell (1/-1)
int tower_iphi() const
get the HCAL/trigger iphi of this crystal
int crystal_iphi_low() const
get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) ...
std::vector< T >::const_iterator const_iterator
void useStandardEB(bool use=true)
add standard (hardcoded) EB items?
void sort()
done adding to the association
void useStandardHB(bool use=true)
add standard (hardcoded) HB items?
std::vector< DetId > constituentsOf(const CaloTowerDetId &id) const
Get the constituent detids for this tower id ( not yet implemented )
uint32_t rawId() const
get the raw id
CaloTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
int crystal_ieta_low() const
get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) ...
int ieta() const
get the cell ieta
void depthBinInformation(HcalSubdetector subdet, int etaRing, int &nDepthBins, int &startingBin) const
finds the number of depth bins and which is the number to start with
void assign(const DetId &cell, const CaloTowerDetId &tower)
set the association between a DetId and a tower
int ietaAbs() const
get the absolute value of the cell ieta
int iphi() const
get the cell iphi
void useStandardHO(bool use=true)
add standard (hardcoded) HO items?
int crystal_ieta_high() const
get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) ...
bool null() const
is this a null id ?
static const int MAX_IETA
perl if(1 lt scalar(@::datatypes))
int crystal_iphi_high() const
get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) ...
void useStandardHF(bool use=true)
add standard (hardcoded) HF items?
edm::SortedCollection< MapItem > m_items