CMS 3D CMS Logo

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  L1RCTORCAMap();
10 
11  std::vector<std::vector<std::vector<unsigned short>>> giveBarrel();
12  std::vector<std::vector<unsigned short>> giveHF();
13 
14  void readData(const std::vector<unsigned> &emet,
15  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  std::vector<std::vector<std::vector<unsigned short>>> barrelData;
30  std::vector<std::vector<unsigned short>> hfData;
31 
32  // the barrel data comes in big nasty strips of phi
33  // increasing in eta from -3 up to 3
34  // This has to be broken up into the proper tower number.
35  // The following method does this
36 
37  std::vector<int> lowEtaMap(int eta, int phi);
38  std::vector<int> highEtaMap(int eta, int phi);
39 
40  std::vector<unsigned short> rawEMET;
41  std::vector<unsigned short> rawEMFG;
42  std::vector<unsigned short> rawHDET;
43  std::vector<unsigned short> rawHDFG;
44  std::vector<unsigned short> rawHFET;
45  std::vector<unsigned short> combEM;
46  std::vector<unsigned short> combHD;
47 };
48 
49 #endif
std::vector< std::vector< std::vector< unsigned short > > > barrelData
Definition: L1RCTORCAMap.h:29
std::vector< std::vector< unsigned short > > giveHF()
Definition: L1RCTORCAMap.cc:25
std::vector< unsigned short > combHD
Definition: L1RCTORCAMap.h:46
std::vector< int > highEtaMap(int eta, int phi)
unsigned short combine(unsigned short et, unsigned short fg)
Definition: L1RCTORCAMap.cc:70
void makeBarrelData()
Definition: L1RCTORCAMap.cc:36
std::vector< unsigned short > rawHDFG
Definition: L1RCTORCAMap.h:43
std::vector< std::vector< unsigned short > > hfData
Definition: L1RCTORCAMap.h:30
std::vector< int > orcamap(int eta, int phi)
Definition: L1RCTORCAMap.cc:84
std::vector< unsigned short > combEM
Definition: L1RCTORCAMap.h:45
et
define resolution functions of each parameter
std::vector< int > lowEtaMap(int eta, int phi)
std::vector< unsigned short > rawEMFG
Definition: L1RCTORCAMap.h:41
std::vector< unsigned short > combVec(const std::vector< unsigned short > &et, const std::vector< unsigned short > &fg)
Definition: L1RCTORCAMap.cc:76
std::vector< unsigned short > rawHFET
Definition: L1RCTORCAMap.h:44
std::vector< unsigned short > rawEMET
Definition: L1RCTORCAMap.h:40
std::vector< unsigned short > rawHDET
Definition: L1RCTORCAMap.h:42
std::vector< std::vector< std::vector< unsigned short > > > giveBarrel()
Definition: L1RCTORCAMap.cc:21
void makeHFData()
Definition: L1RCTORCAMap.cc:26
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:49