#include <EcalTBCrystalMap.h>
Definition at line 17 of file EcalTBCrystalMap.h.
EcalTBCrystalMap::EcalTBCrystalMap |
( |
std::string const & |
MapFileName | ) |
|
EcalTBCrystalMap::~EcalTBCrystalMap |
( |
| ) |
|
int EcalTBCrystalMap::CrystalIndex |
( |
double |
thisEta, |
|
|
double |
thisPhi |
|
) |
| |
Definition at line 27 of file EcalTBCrystalMap.cc.
References map_.
28 int thisCrysIndex = 0;
30 CrystalTBIndexMap::const_iterator mapItr =
map_.find(std::make_pair(thisEta, thisPhi));
31 if (mapItr !=
map_.end()) {
32 thisCrysIndex = mapItr->second;
void EcalTBCrystalMap::findCrystalAngles |
( |
const int |
thisCrysIndex, |
|
|
double & |
thisEta, |
|
|
double & |
thisPhi |
|
) |
| |
Definition at line 38 of file EcalTBCrystalMap.cc.
References dqmdumpme::first, map_, NCRYSTAL, and edm::second().
39 thisEta = thisPhi = 0.;
41 if (thisCrysIndex < 1 || thisCrysIndex >
NCRYSTAL) {
42 edm::LogError(
"OutOfBounds") <<
"Required crystal number " << thisCrysIndex <<
" outside range";
46 for (CrystalTBIndexMap::const_iterator mapItr =
map_.begin(); mapItr !=
map_.end(); ++mapItr) {
47 int theCrysIndex = mapItr->second;
48 if (theCrysIndex == thisCrysIndex) {
49 thisEta = (mapItr->first).
first;
50 thisPhi = (mapItr->first).
second;
static const int NCRYSTAL
U second(std::pair< T, U > const &p)
double EcalTBCrystalMap::crysEta |
|
private |
int EcalTBCrystalMap::crysIndex |
|
private |
double EcalTBCrystalMap::crysPhi |
|
private |
const int EcalTBCrystalMap::NCRYSTAL = 1700 |
|
static |