CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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 public:
8  L1RCTORCAMap();
9 
10  std::vector<std::vector<std::vector<unsigned short>>> giveBarrel();
11  std::vector<std::vector<unsigned short>> giveHF();
12 
13  void readData(const std::vector<unsigned> &emet,
14  const std::vector<unsigned> &hdet,
15  const std::vector<bool> &emfg,
16  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, const std::vector<unsigned short> &fg);
23 
24  void makeBarrelData();
25  void makeHFData();
26 
27 private:
28  std::vector<std::vector<std::vector<unsigned short>>> barrelData;
29  std::vector<std::vector<unsigned short>> hfData;
30 
31  // the barrel data comes in big nasty strips of phi
32  // increasing in eta from -3 up to 3
33  // This has to be broken up into the proper tower number.
34  // The following method does this
35 
36  std::vector<int> lowEtaMap(int eta, int phi);
37  std::vector<int> highEtaMap(int eta, int phi);
38 
39  std::vector<unsigned short> rawEMET;
40  std::vector<unsigned short> rawEMFG;
41  std::vector<unsigned short> rawHDET;
42  std::vector<unsigned short> rawHDFG;
43  std::vector<unsigned short> rawHFET;
44  std::vector<unsigned short> combEM;
45  std::vector<unsigned short> combHD;
46 };
47 
48 #endif
std::vector< std::vector< std::vector< unsigned short > > > barrelData
Definition: L1RCTORCAMap.h:28
std::vector< std::vector< unsigned short > > giveHF()
Definition: L1RCTORCAMap.cc:21
std::vector< unsigned short > combHD
Definition: L1RCTORCAMap.h:45
std::vector< int > highEtaMap(int eta, int phi)
unsigned short combine(unsigned short et, unsigned short fg)
Definition: L1RCTORCAMap.cc:64
void makeBarrelData()
Definition: L1RCTORCAMap.cc:32
std::vector< unsigned short > rawHDFG
Definition: L1RCTORCAMap.h:42
std::vector< std::vector< unsigned short > > hfData
Definition: L1RCTORCAMap.h:29
std::vector< int > orcamap(int eta, int phi)
Definition: L1RCTORCAMap.cc:77
std::vector< unsigned short > combEM
Definition: L1RCTORCAMap.h:44
std::vector< int > lowEtaMap(int eta, int phi)
std::vector< unsigned short > rawEMFG
Definition: L1RCTORCAMap.h:40
std::vector< unsigned short > combVec(const std::vector< unsigned short > &et, const std::vector< unsigned short > &fg)
Definition: L1RCTORCAMap.cc:69
std::vector< unsigned short > rawHFET
Definition: L1RCTORCAMap.h:43
std::vector< unsigned short > rawEMET
Definition: L1RCTORCAMap.h:39
std::vector< unsigned short > rawHDET
Definition: L1RCTORCAMap.h:41
std::vector< std::vector< std::vector< unsigned short > > > giveBarrel()
Definition: L1RCTORCAMap.cc:19
void makeHFData()
Definition: L1RCTORCAMap.cc:22
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:43