#include <EcalTBCrystalMap.h>
Definition at line 17 of file EcalTBCrystalMap.h.
◆ CrystalTBIndexMap
◆ EcalTBCrystalMap()
EcalTBCrystalMap::EcalTBCrystalMap |
( |
std::string const & |
MapFileName | ) |
|
◆ ~EcalTBCrystalMap()
EcalTBCrystalMap::~EcalTBCrystalMap |
( |
| ) |
|
◆ CrystalIndex()
int EcalTBCrystalMap::CrystalIndex |
( |
double |
thisEta, |
|
|
double |
thisPhi |
|
) |
| |
Definition at line 27 of file EcalTBCrystalMap.cc.
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;
References map_.
◆ findCrystalAngles()
void EcalTBCrystalMap::findCrystalAngles |
( |
const int |
thisCrysIndex, |
|
|
double & |
thisEta, |
|
|
double & |
thisPhi |
|
) |
| |
Definition at line 38 of file EcalTBCrystalMap.cc.
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;
References first, map_, NCRYSTAL, and edm::second().
◆ crysEta
double EcalTBCrystalMap::crysEta |
|
private |
◆ crysIndex
int EcalTBCrystalMap::crysIndex |
|
private |
◆ crysPhi
double EcalTBCrystalMap::crysPhi |
|
private |
◆ map_
◆ NCRYSTAL
const int EcalTBCrystalMap::NCRYSTAL = 1700 |
|
static |