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 
33  CrystalTBIndexMap map_;
34 };
35 
36 #endif
CrystalTBIndexMap map_
static const int NCRYSTAL
EcalTBCrystalMap(std::string const &MapFileName)
void findCrystalAngles(const int thisCrysIndex, double &thisEta, double &thisPhi)
int CrystalIndex(double thisEta, double thisPhi)
std::map< std::pair< double, double >, int > CrystalTBIndexMap