CMS 3D CMS Logo

ESElectronicsMapper.h
Go to the documentation of this file.
1 #ifndef ESElectronicsMapper_H
2 #define ESElectronicsMapper_H
3 
4 #include <iostream>
5 #include <fstream>
6 #include <vector>
7 #include <sstream>
8 #include <map>
9 
13 
15 public:
18 
19  int getFED(const ESDetId& id);
20  int getFED(int zside, int plane, int x, int y);
21  std::vector<int> GetListofFEDs(const std::vector<int>& eeFEDs) const;
22  void GetListofFEDs(const std::vector<int>& eeFEDs, std::vector<int>& esFEDs) const;
23  int getKCHIP(const ESDetId& id);
24  int getKCHIP(int zside, int plane, int x, int y);
25 
26 private:
28 
29  int fed_[2][2][40][40];
30  int kchip_[2][2][40][40];
31  std::map<int, std::vector<int> > ee_es_map_;
32 };
33 
34 #endif
int zside(DetId const &)
int getKCHIP(const ESDetId &id)
int fed_[2][2][40][40]
std::vector< int > GetListofFEDs(const std::vector< int > &eeFEDs) const
ESElectronicsMapper(const edm::ParameterSet &ps)
int kchip_[2][2][40][40]
edm::FileInPath lookup_
std::map< int, std::vector< int > > ee_es_map_
int getFED(const ESDetId &id)