CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HGCalTowerMap_SA.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1THGCal_HGCalTowerMap_SA_h
2 #define L1Trigger_L1THGCal_HGCalTowerMap_SA_h
3 
5 
6 #include <unordered_map>
7 #include <vector>
8 
9 namespace l1thgcfirmware {
10 
11  class HGCalTowerMap {
12  public:
13  HGCalTowerMap() = default;
14  HGCalTowerMap(const std::vector<l1thgcfirmware::HGCalTowerCoord>& tower_ids);
15 
16  ~HGCalTowerMap() = default;
17 
19 
20  bool addEt(short bin_id, float etEm, float etHad);
21 
22  const std::unordered_map<unsigned short, l1thgcfirmware::HGCalTower>& towers() const { return towerMap_; }
23 
24  private:
25  std::unordered_map<unsigned short, l1thgcfirmware::HGCalTower> towerMap_;
26  };
27 
28 } // namespace l1thgcfirmware
29 
30 #endif
bool addEt(short bin_id, float etEm, float etHad)
const std::unordered_map< unsigned short, l1thgcfirmware::HGCalTower > & towers() const
HGCalTowerMap & operator+=(const HGCalTowerMap &map)
std::unordered_map< unsigned short, l1thgcfirmware::HGCalTower > towerMap_