CMS 3D CMS Logo

EcalTBCrystalMap.h
Go to the documentation of this file.
1 #ifndef EcalTestBeam_EcalTBCrystalMap_h
2 #define EcalTestBeam_EcalTBCrystalMap_h
3 
4 /*
5  *
6  *
7  */
8 
9 #include <map>
10 #include <iostream>
11 #include <fstream>
12 #include <string>
13 
16 
18 public:
19  typedef std::map<std::pair<double, double>, int> CrystalTBIndexMap;
20 
21  EcalTBCrystalMap(std::string const& MapFileName);
23 
24  int CrystalIndex(double thisEta, double thisPhi);
25  void findCrystalAngles(const int thisCrysIndex, double& thisEta, double& thisPhi);
26 
27  static const int NCRYSTAL = 1700;
28 
29 private:
30  double crysEta, crysPhi;
31  int crysIndex;
32 
34 };
35 
36 #endif
MessageLogger.h
EcalTBCrystalMap::findCrystalAngles
void findCrystalAngles(const int thisCrysIndex, double &thisEta, double &thisPhi)
Definition: EcalTBCrystalMap.cc:38
EcalTBCrystalMap::crysPhi
double crysPhi
Definition: EcalTBCrystalMap.h:30
EcalTBCrystalMap::crysEta
double crysEta
Definition: EcalTBCrystalMap.h:30
EcalTBCrystalMap::map_
CrystalTBIndexMap map_
Definition: EcalTBCrystalMap.h:33
EcalTBCrystalMap
Definition: EcalTBCrystalMap.h:17
EcalTBCrystalMap::EcalTBCrystalMap
EcalTBCrystalMap(std::string const &MapFileName)
Definition: EcalTBCrystalMap.cc:3
EcalTBCrystalMap::~EcalTBCrystalMap
~EcalTBCrystalMap()
Definition: EcalTBCrystalMap.cc:25
EcalTBCrystalMap::crysIndex
int crysIndex
Definition: EcalTBCrystalMap.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalTBCrystalMap::CrystalIndex
int CrystalIndex(double thisEta, double thisPhi)
Definition: EcalTBCrystalMap.cc:27
EcalTBCrystalMap::NCRYSTAL
static const int NCRYSTAL
Definition: EcalTBCrystalMap.h:27
EcalTBCrystalMap::CrystalTBIndexMap
std::map< std::pair< double, double >, int > CrystalTBIndexMap
Definition: EcalTBCrystalMap.h:19
Exception.h