CMS 3D CMS Logo

HGCalTriggerTowerGeometryHelper.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalTriggerTowerGeometryHelper_h__
2 #define __L1Trigger_L1THGCal_HGCalTriggerTowerGeometryHelper_h__
3 
15 
16 #include <vector>
17 #include <unordered_map>
18 
19 namespace l1t {
20  class HGCalTowerID;
21  class HGCalTowerCoord;
22 }
23 
24 
26  public:
28 
30 
31  const std::vector<l1t::HGCalTowerCoord>& getTowerCoordinates() const;
32 
33  unsigned short getTriggerTowerFromTriggerCell(const unsigned tcId, const float& eta, const float& phi) const;
34 
35  private:
36 
37  std::vector<l1t::HGCalTowerCoord> tower_coords_;
38  std::unordered_map<unsigned, short> cells_to_trigger_towers_;
39 
40  double minEta_;
41  double maxEta_;
42  double minPhi_;
43  double maxPhi_;
44  unsigned int nBinsEta_;
45  unsigned int nBinsPhi_;
46 
47  std::vector<double> binsEta_;
48  std::vector<double> binsPhi_;
49 
50  };
51 
52 
53 #endif
delete x;
Definition: CaloConfig.h:22
std::vector< l1t::HGCalTowerCoord > tower_coords_
std::unordered_map< unsigned, short > cells_to_trigger_towers_