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  * $Id: EcalTBCrystalMap.h,v 1.3 2006/07/18 14:07:49 fabiocos Exp $
7  *
8  */
9 
10 #include <map>
11 #include <iostream>
12 #include <fstream>
13 #include <string>
14 
17 
18 
20 
21  public:
22 
23  typedef std::map< std::pair< double, double >, int > CrystalTBIndexMap;
24 
25  EcalTBCrystalMap(std::string const & MapFileName);
27 
28  int CrystalIndex(double thisEta, double thisPhi);
29  void findCrystalAngles(const int thisCrysIndex, double & thisEta, double & thisPhi);
30 
31  static const int NCRYSTAL = 1700;
32 
33  private:
34 
35  double crysEta, crysPhi;
36  int crysIndex;
37 
39 
40 };
41 
42 #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)