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 
18 
19 #include <vector>
20 #include <unordered_map>
21 
22 namespace l1t {
23  class HGCalTowerID;
24  struct HGCalTowerCoord;
25 } // namespace l1t
26 
28 public:
30 
32 
34 
35  const std::vector<l1t::HGCalTowerCoord>& getTowerCoordinates() const;
36 
37  unsigned short getTriggerTowerFromEtaPhi(const float& eta, const float& phi) const;
38  unsigned short getTriggerTower(const l1t::HGCalTriggerCell&) const;
39  unsigned short getTriggerTower(const l1t::HGCalTriggerSums&) const;
40 
41 private:
42  std::vector<l1t::HGCalTowerCoord> tower_coords_;
43  std::unordered_map<unsigned, short> cells_to_trigger_towers_;
44 
45  double minEta_;
46  double maxEta_;
47  double minPhi_;
48  double maxPhi_;
49  unsigned int nBinsEta_;
50  unsigned int nBinsPhi_;
51 
52  std::vector<double> binsEta_;
53  std::vector<double> binsPhi_;
54 
56 };
57 
58 #endif
HGCalTriggerTools.h
HGCalTriggerTowerGeometryHelper::maxEta_
double maxEta_
Definition: HGCalTriggerTowerGeometryHelper.h:46
HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition: HGCalTriggerTools.cc:35
HGCalTriggerTowerGeometryHelper::nBinsPhi_
unsigned int nBinsPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:50
HGCalTriggerTowerGeometryHelper::cells_to_trigger_towers_
std::unordered_map< unsigned, short > cells_to_trigger_towers_
Definition: HGCalTriggerTowerGeometryHelper.h:43
HGCalTriggerSums.h
HGCalTriggerTowerGeometryHelper::getTriggerTower
unsigned short getTriggerTower(const l1t::HGCalTriggerCell &) const
Definition: HGCalTriggerTowerGeometryHelper.cc:122
HGCalTriggerTowerGeometryHelper::maxPhi_
double maxPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:48
HGCalTriggerTowerGeometryHelper::~HGCalTriggerTowerGeometryHelper
~HGCalTriggerTowerGeometryHelper()
Definition: HGCalTriggerTowerGeometryHelper.h:31
PVValHelper::eta
Definition: PVValidationHelpers.h:69
HGCalTriggerTowerGeometryHelper::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalTriggerTowerGeometryHelper.h:55
l1t::HGCalTriggerCell
Definition: HGCalTriggerCell.h:14
edm::ParameterSet
Definition: ParameterSet.h:47
HGCalTriggerTowerGeometryHelper::HGCalTriggerTowerGeometryHelper
HGCalTriggerTowerGeometryHelper(const edm::ParameterSet &conf)
Definition: HGCalTriggerTowerGeometryHelper.cc:13
l1t
delete x;
Definition: CaloConfig.h:22
HGCalTowerID.h
edm::EventSetup
Definition: EventSetup.h:57
HGCalTriggerTowerGeometryHelper::minPhi_
double minPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:47
DDAxes::phi
HGCalTriggerTowerGeometryHelper::eventSetup
void eventSetup(const edm::EventSetup &es)
Definition: HGCalTriggerTowerGeometryHelper.h:33
HGCalTriggerTowerGeometryHelper
Definition: HGCalTriggerTowerGeometryHelper.h:27
HGCalTriggerTowerGeometryHelper::nBinsEta_
unsigned int nBinsEta_
Definition: HGCalTriggerTowerGeometryHelper.h:49
HGCalTriggerTowerGeometryHelper::getTowerCoordinates
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
Definition: HGCalTriggerTowerGeometryHelper.cc:83
HGCalTriggerTowerGeometryHelper::getTriggerTowerFromEtaPhi
unsigned short getTriggerTowerFromEtaPhi(const float &eta, const float &phi) const
Definition: HGCalTriggerTowerGeometryHelper.cc:87
HGCalTriggerTools
Definition: HGCalTriggerTools.h:32
HGCalTriggerCell.h
HGCalTriggerTowerGeometryHelper::binsPhi_
std::vector< double > binsPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:53
ParameterSet.h
HGCalTriggerTowerGeometryHelper::binsEta_
std::vector< double > binsEta_
Definition: HGCalTriggerTowerGeometryHelper.h:52
l1t::HGCalTriggerSums
Definition: HGCalTriggerSums.h:14
GlobalPoint.h
HGCalTriggerTowerGeometryHelper::tower_coords_
std::vector< l1t::HGCalTowerCoord > tower_coords_
Definition: HGCalTriggerTowerGeometryHelper.h:42
HGCalTriggerTowerGeometryHelper::minEta_
double minEta_
Definition: HGCalTriggerTowerGeometryHelper.h:45