test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17 
19 
20  public:
21 
22  typedef std::map< std::pair< double, double >, int > CrystalTBIndexMap;
23 
24  EcalTBCrystalMap(std::string const & MapFileName);
26 
27  int CrystalIndex(double thisEta, double thisPhi);
28  void findCrystalAngles(const int thisCrysIndex, double & thisEta, double & thisPhi);
29 
30  static const int NCRYSTAL = 1700;
31 
32  private:
33 
34  double crysEta, crysPhi;
35  int crysIndex;
36 
38 
39 };
40 
41 #endif
CrystalTBIndexMap map_
static const int NCRYSTAL
std::map< std::pair< double, double >, int > CrystalTBIndexMap
EcalTBCrystalMap(std::string const &MapFileName)
void findCrystalAngles(const int thisCrysIndex, double &thisEta, double &thisPhi)
int CrystalIndex(double thisEta, double thisPhi)