CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Geometry/EcalMapping/interface/ESElectronicsMapper.h

Go to the documentation of this file.
00001 #ifndef ESElectronicsMapper_H
00002 #define ESElectronicsMapper_H
00003 
00004 #include <iostream>
00005 #include <fstream>
00006 #include <vector>
00007 #include <sstream>
00008 #include <map>
00009 
00010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00011 #include "FWCore/ParameterSet/interface/FileInPath.h"
00012 #include "DataFormats/EcalDetId/interface/ESDetId.h"
00013 
00014 class ESElectronicsMapper {
00015 
00016  public:
00017 
00018   ESElectronicsMapper(const edm::ParameterSet& ps);
00019   ~ESElectronicsMapper() {};
00020 
00021   int getFED(const ESDetId& id);
00022   int getFED(int zside, int plane, int x, int y);
00023   std::vector<int> GetListofFEDs(const std::vector<int> eeFEDs) const ;
00024   void GetListofFEDs(std::vector<int> eeFEDs, std::vector<int> & esFEDs) const ;
00025   int getKCHIP(const ESDetId& id);
00026   int getKCHIP(int zside, int plane, int x, int y);
00027 
00028  private:
00029 
00030   edm::FileInPath lookup_;
00031 
00032   int fed_[2][2][40][40];
00033   int kchip_[2][2][40][40];
00034   std::map < int, std::vector<int>  > ee_es_map_;
00035 
00036   
00037 
00038 };
00039 
00040 #endif