#include <HGCalTowerMap.h>
Public Member Functions | |
void | addTower (int iEta, int iPhi, const l1t::HGCalTower &tower) |
const vector< double > & | etaBins () const |
HGCalTowerMap () | |
HGCalTowerMap (int nEtaBins, int nPhiBins) | |
HGCalTowerMap (const std::vector< double > &etaBins, const std::vector< double > &phiBins) | |
int | iEta (const double eta) const |
int | iPhi (const double phi) const |
int | layer () const |
int | nEtaBins () const |
int | nPhiBins () const |
HGCalTowerMap & | operator+= (const HGCalTowerMap &map) |
const vector< double > & | phiBins () const |
void | setLayer (const unsigned layer) |
const l1t::HGCalTower & | tower (int iEta, int iPhi) const |
~HGCalTowerMap () | |
Private Member Functions | |
int | bin_id (int iEta, int iPhi) const |
Private Attributes | |
vector< double > | etaBins_ |
unsigned | layer_ |
int | nEtaBins_ |
int | nPhiBins_ |
vector< double > | phiBins_ |
std::unordered_map< int, l1t::HGCalTower > | towerMap_ |
Static Private Attributes | |
static double | kEtaMax_ = 3. |
static double | kEtaMaxLoose_ = 3.085 |
static double | kEtaMin_ = 1.479 |
static double | kEtaMinLoose_ = 1.401 |
static double | kPhiMax_ = +M_PI |
static double | kPhiMin_ = -M_PI |
Definition at line 14 of file HGCalTowerMap.h.
|
inline |
Definition at line 18 of file HGCalTowerMap.h.
References etaBins(), nEtaBins(), nPhiBins(), phiBins(), and ~HGCalTowerMap().
HGCalTowerMap::HGCalTowerMap | ( | int | nEtaBins, |
int | nPhiBins | ||
) |
Definition at line 16 of file HGCalTowerMap.cc.
References stringResolutionProvider_cfi::bin, bin_id(), etaBins_, mps_fire::i, iEta(), iPhi(), kEtaMax_, kEtaMin_, kPhiMax_, kPhiMin_, nEtaBins(), nEtaBins_, nPhiBins(), nPhiBins_, phiBins_, l1t::L1Candidate::setHwEta(), l1t::L1Candidate::setHwPhi(), tower(), and towerMap_.
HGCalTowerMap::HGCalTowerMap | ( | const std::vector< double > & | etaBins, |
const std::vector< double > & | phiBins | ||
) |
Definition at line 46 of file HGCalTowerMap.cc.
References stringResolutionProvider_cfi::bin, bin_id(), etaBins(), etaBins_, iEta(), iPhi(), nEtaBins_, nPhiBins_, phiBins(), phiBins_, l1t::L1Candidate::setHwEta(), l1t::L1Candidate::setHwPhi(), tower(), and towerMap_.
HGCalTowerMap::~HGCalTowerMap | ( | ) |
|
inline |
Definition at line 40 of file HGCalTowerMap.h.
References bin_id(), tower(), and towerMap_.
|
private |
Definition at line 138 of file HGCalTowerMap.cc.
References Exception, iPhi(), nEtaBins_, nPhiBins_, and edm::errors::StdException.
Referenced by addTower(), HGCalTowerMap(), operator+=(), and tower().
|
inline |
Definition at line 31 of file HGCalTowerMap.h.
References etaBins_.
Referenced by HGCalTowerMap(), and operator+=().
int HGCalTowerMap::iEta | ( | const double | eta | ) | const |
Definition at line 74 of file HGCalTowerMap.cc.
References PVValHelper::eta, etaBins_, mps_fire::i, kEtaMax_, kEtaMaxLoose_, kEtaMin_, kEtaMinLoose_, and nEtaBins_.
Referenced by HGCalTowerMap(), operator+=(), and tower().
int HGCalTowerMap::iPhi | ( | const double | phi | ) | const |
Definition at line 102 of file HGCalTowerMap.cc.
References mps_fire::i, normalizedPhi(), nPhiBins_, and phiBins_.
Referenced by bin_id(), HGCalTowerMap(), operator+=(), and tower().
|
inline |
Definition at line 37 of file HGCalTowerMap.h.
References layer_, genParticles_cff::map, and operator+=().
Referenced by geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and setLayer().
|
inline |
Definition at line 29 of file HGCalTowerMap.h.
References nEtaBins_.
Referenced by HGCalTowerMap3DImpl::buildTowerMap3D(), and HGCalTowerMap().
|
inline |
Definition at line 30 of file HGCalTowerMap.h.
References nPhiBins_.
Referenced by HGCalTowerMap3DImpl::buildTowerMap3D(), and HGCalTowerMap().
HGCalTowerMap & HGCalTowerMap::operator+= | ( | const HGCalTowerMap & | map | ) |
Definition at line 118 of file HGCalTowerMap.cc.
References bin_id(), etaBins(), etaBins_, Exception, iEta(), iPhi(), nEtaBins_, nPhiBins_, phiBins(), phiBins_, edm::errors::StdException, tower(), and towerMap_.
Referenced by layer().
|
inline |
Definition at line 32 of file HGCalTowerMap.h.
References phiBins_.
Referenced by HGCalTowerMap(), and operator+=().
|
inline |
|
inline |
Definition at line 33 of file HGCalTowerMap.h.
References bin_id(), PVValHelper::eta, iEta(), iPhi(), and towerMap_.
Referenced by addTower(), HGCalTowerMap3DImpl::buildTowerMap3D(), HGCalTowerMap(), and operator+=().
|
private |
Definition at line 53 of file HGCalTowerMap.h.
Referenced by etaBins(), HGCalTowerMap(), iEta(), and operator+=().
|
staticprivate |
Definition at line 45 of file HGCalTowerMap.h.
Referenced by HGCalTowerMap(), and iEta().
|
staticprivate |
Definition at line 47 of file HGCalTowerMap.h.
Referenced by iEta().
|
staticprivate |
Definition at line 44 of file HGCalTowerMap.h.
Referenced by HGCalTowerMap(), and iEta().
|
staticprivate |
Definition at line 46 of file HGCalTowerMap.h.
Referenced by iEta().
|
staticprivate |
Definition at line 49 of file HGCalTowerMap.h.
Referenced by HGCalTowerMap().
|
staticprivate |
Definition at line 48 of file HGCalTowerMap.h.
Referenced by HGCalTowerMap().
|
private |
Definition at line 56 of file HGCalTowerMap.h.
Referenced by layer(), and setLayer().
|
private |
Definition at line 51 of file HGCalTowerMap.h.
Referenced by bin_id(), HGCalTowerMap(), iEta(), nEtaBins(), and operator+=().
|
private |
Definition at line 52 of file HGCalTowerMap.h.
Referenced by bin_id(), HGCalTowerMap(), iPhi(), nPhiBins(), and operator+=().
|
private |
Definition at line 54 of file HGCalTowerMap.h.
Referenced by HGCalTowerMap(), iPhi(), operator+=(), and phiBins().
|
private |
Definition at line 55 of file HGCalTowerMap.h.
Referenced by addTower(), HGCalTowerMap(), operator+=(), and tower().