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 
16 
17 #include <vector>
18 #include <unordered_map>
19 
20 namespace l1t {
21  class HGCalTowerID;
22  struct HGCalTowerCoord;
23 } // namespace l1t
24 
26 public:
28 
30 
31  void eventSetup(const edm::EventSetup& es) { triggerTools_.eventSetup(es); }
32 
33  const std::vector<l1t::HGCalTowerCoord>& getTowerCoordinates() const;
34 
35  unsigned short getTriggerTowerFromTriggerCell(const unsigned tcId, const float& eta, const float& phi) const;
36 
37 private:
38  std::vector<l1t::HGCalTowerCoord> tower_coords_;
39  std::unordered_map<unsigned, short> cells_to_trigger_towers_;
40 
41  double minEta_;
42  double maxEta_;
43  double minPhi_;
44  double maxPhi_;
45  unsigned int nBinsEta_;
46  unsigned int nBinsPhi_;
47 
48  std::vector<double> binsEta_;
49  std::vector<double> binsPhi_;
50 
52 };
53 
54 #endif
delete x;
Definition: CaloConfig.h:22
std::vector< l1t::HGCalTowerCoord > tower_coords_
void eventSetup(const edm::EventSetup &es)
std::unordered_map< unsigned, short > cells_to_trigger_towers_