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 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
L1RCTORCAMap::orcamap
std::vector< int > orcamap(int eta, int phi)
Definition: L1RCTORCAMap.cc:77
L1RCTORCAMap::combEM
std::vector< unsigned short > combEM
Definition: L1RCTORCAMap.h:44
L1RCTORCAMap::rawEMFG
std::vector< unsigned short > rawEMFG
Definition: L1RCTORCAMap.h:40
L1RCTORCAMap::makeBarrelData
void makeBarrelData()
Definition: L1RCTORCAMap.cc:32
L1RCTORCAMap::rawHFET
std::vector< unsigned short > rawHFET
Definition: L1RCTORCAMap.h:43
L1RCTORCAMap::rawHDET
std::vector< unsigned short > rawHDET
Definition: L1RCTORCAMap.h:41
L1RCTORCAMap::makeHFData
void makeHFData()
Definition: L1RCTORCAMap.cc:22
L1RCTORCAMap::combVec
std::vector< unsigned short > combVec(const std::vector< unsigned short > &et, const std::vector< unsigned short > &fg)
Definition: L1RCTORCAMap.cc:69
PVValHelper::eta
Definition: PVValidationHelpers.h:70
L1RCTORCAMap::L1RCTORCAMap
L1RCTORCAMap()
Definition: L1RCTORCAMap.cc:6
L1RCTORCAMap::barrelData
std::vector< std::vector< std::vector< unsigned short > > > barrelData
Definition: L1RCTORCAMap.h:28
L1RCTORCAMap::rawEMET
std::vector< unsigned short > rawEMET
Definition: L1RCTORCAMap.h:39
L1RCTORCAMap::highEtaMap
std::vector< int > highEtaMap(int eta, int phi)
Definition: L1RCTORCAMap.cc:175
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
L1RCTORCAMap::rawHDFG
std::vector< unsigned short > rawHDFG
Definition: L1RCTORCAMap.h:42
L1RCTORCAMap::giveBarrel
std::vector< std::vector< std::vector< unsigned short > > > giveBarrel()
Definition: L1RCTORCAMap.cc:19
L1RCTORCAMap
Definition: L1RCTORCAMap.h:6
DDAxes::phi
L1RCTORCAMap::hfData
std::vector< std::vector< unsigned short > > hfData
Definition: L1RCTORCAMap.h:29
L1RCTORCAMap::combine
unsigned short combine(unsigned short et, unsigned short fg)
Definition: L1RCTORCAMap.cc:64
L1RCTORCAMap::combHD
std::vector< unsigned short > combHD
Definition: L1RCTORCAMap.h:45
L1RCTORCAMap::readData
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
L1RCTORCAMap::giveHF
std::vector< std::vector< unsigned short > > giveHF()
Definition: L1RCTORCAMap.cc:21
L1RCTORCAMap::lowEtaMap
std::vector< int > lowEtaMap(int eta, int phi)
Definition: L1RCTORCAMap.cc:116