#include <EcalTBCrystalMap.h>
Definition at line 18 of file EcalTBCrystalMap.h.
EcalTBCrystalMap::EcalTBCrystalMap |
( |
std::string const & |
MapFileName | ) |
|
EcalTBCrystalMap::~EcalTBCrystalMap |
( |
| ) |
|
int EcalTBCrystalMap::CrystalIndex |
( |
double |
thisEta, |
|
|
double |
thisPhi |
|
) |
| |
Definition at line 33 of file EcalTBCrystalMap.cc.
References map_.
35 int thisCrysIndex = 0;
37 CrystalTBIndexMap::const_iterator mapItr =
map_.find(std::make_pair(thisEta,thisPhi));
38 if ( mapItr !=
map_.end() ) {
39 thisCrysIndex = mapItr->second;
void EcalTBCrystalMap::findCrystalAngles |
( |
const int |
thisCrysIndex, |
|
|
double & |
thisEta, |
|
|
double & |
thisPhi |
|
) |
| |
Definition at line 46 of file EcalTBCrystalMap.cc.
References plotBeamSpotDB::first, map_, NCRYSTAL, and edm::second().
48 thisEta = thisPhi = 0.;
50 if ( thisCrysIndex < 1 || thisCrysIndex >
NCRYSTAL ) {
51 edm::LogError(
"OutOfBounds") <<
"Required crystal number " << thisCrysIndex <<
" outside range";
55 for ( CrystalTBIndexMap::const_iterator mapItr =
map_.begin() ; mapItr !=
map_.end() ; ++mapItr) {
56 int theCrysIndex = mapItr->second;
57 if ( theCrysIndex == thisCrysIndex ) {
58 thisEta = (mapItr->first).
first;
59 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 |