CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1RCTORCAMap.h
Go to the documentation of this file.
1 #ifndef L1RCTORCAMap_h
2 #define L1RCTORCAMap_h
3 
4 #include <vector>
5 
6 class L1RCTORCAMap {
7 
8  public:
9 
10  L1RCTORCAMap();
11 
12  std::vector<std::vector<std::vector<unsigned short> > > giveBarrel();
13  std::vector<std::vector<unsigned short> > giveHF();
14 
15  void readData(const std::vector<unsigned>& emet, const std::vector<unsigned>& hdet,
16  const std::vector<bool>& emfg, const std::vector<bool>& hdfg,
17  const std::vector<unsigned>& hfet);
18 
19  std::vector<int> orcamap(int eta, int phi);
20 
21  unsigned short combine(unsigned short et, unsigned short fg);
22  std::vector<unsigned short> combVec(const std::vector<unsigned short>& et,
23  const std::vector<unsigned short>& fg);
24 
25  void makeBarrelData();
26  void makeHFData();
27 
28  private:
29 
30  std::vector<std::vector<std::vector<unsigned short> > > barrelData;
31  std::vector<std::vector<unsigned short> > hfData;
32 
33  //the barrel data comes in big nasty strips of phi
34  //increasing in eta from -3 up to 3
35  //This has to be broken up into the proper tower number.
36  //The following method does this
37 
38  std::vector<int> lowEtaMap(int eta, int phi);
39  std::vector<int> highEtaMap(int eta, int phi);
40 
41  std::vector<unsigned short> rawEMET;
42  std::vector<unsigned short> rawEMFG;
43  std::vector<unsigned short> rawHDET;
44  std::vector<unsigned short> rawHDFG;
45  std::vector<unsigned short> rawHFET;
46  std::vector<unsigned short> combEM;
47  std::vector<unsigned short> combHD;
48 
49 };
50 
51 #endif
std::vector< std::vector< std::vector< unsigned short > > > barrelData
Definition: L1RCTORCAMap.h:30
std::vector< std::vector< unsigned short > > giveHF()
Definition: L1RCTORCAMap.cc:24
std::vector< unsigned short > combHD
Definition: L1RCTORCAMap.h:47
std::vector< int > highEtaMap(int eta, int phi)
unsigned short combine(unsigned short et, unsigned short fg)
Definition: L1RCTORCAMap.cc:67
void makeBarrelData()
Definition: L1RCTORCAMap.cc:37
std::vector< unsigned short > rawHDFG
Definition: L1RCTORCAMap.h:44
std::vector< std::vector< unsigned short > > hfData
Definition: L1RCTORCAMap.h:31
std::vector< int > orcamap(int eta, int phi)
Definition: L1RCTORCAMap.cc:80
std::vector< unsigned short > combEM
Definition: L1RCTORCAMap.h:46
std::vector< int > lowEtaMap(int eta, int phi)
std::vector< unsigned short > rawEMFG
Definition: L1RCTORCAMap.h:42
std::vector< unsigned short > combVec(const std::vector< unsigned short > &et, const std::vector< unsigned short > &fg)
Definition: L1RCTORCAMap.cc:72
std::vector< unsigned short > rawHFET
Definition: L1RCTORCAMap.h:45
std::vector< unsigned short > rawEMET
Definition: L1RCTORCAMap.h:41
std::vector< unsigned short > rawHDET
Definition: L1RCTORCAMap.h:43
std::vector< std::vector< std::vector< unsigned short > > > giveBarrel()
Definition: L1RCTORCAMap.cc:20
void makeHFData()
Definition: L1RCTORCAMap.cc:27
void readData(const std::vector< unsigned > &emet, const std::vector< unsigned > &hdet, const std::vector< bool > &emfg, const std::vector< bool > &hdfg, const std::vector< unsigned > &hfet)
Definition: L1RCTORCAMap.cc:48