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 
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
HGCalTriggerTools.h
HGCalTriggerTowerGeometryHelper::maxEta_
double maxEta_
Definition: HGCalTriggerTowerGeometryHelper.h:42
HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition: HGCalTriggerTools.cc:35
HGCalTriggerTowerGeometryHelper::nBinsPhi_
unsigned int nBinsPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:46
HGCalTriggerTowerGeometryHelper::cells_to_trigger_towers_
std::unordered_map< unsigned, short > cells_to_trigger_towers_
Definition: HGCalTriggerTowerGeometryHelper.h:39
HGCalTriggerTowerGeometryHelper::maxPhi_
double maxPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:44
HGCalTriggerTowerGeometryHelper::~HGCalTriggerTowerGeometryHelper
~HGCalTriggerTowerGeometryHelper()
Definition: HGCalTriggerTowerGeometryHelper.h:29
PVValHelper::eta
Definition: PVValidationHelpers.h:69
HGCalTriggerTowerGeometryHelper::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalTriggerTowerGeometryHelper.h:51
edm::ParameterSet
Definition: ParameterSet.h:36
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:43
DDAxes::phi
HGCalTriggerTowerGeometryHelper::eventSetup
void eventSetup(const edm::EventSetup &es)
Definition: HGCalTriggerTowerGeometryHelper.h:31
HGCalTriggerTowerGeometryHelper
Definition: HGCalTriggerTowerGeometryHelper.h:25
HGCalTriggerTowerGeometryHelper::nBinsEta_
unsigned int nBinsEta_
Definition: HGCalTriggerTowerGeometryHelper.h:45
HGCalTriggerTowerGeometryHelper::getTowerCoordinates
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
Definition: HGCalTriggerTowerGeometryHelper.cc:83
HGCalTriggerTools
Definition: HGCalTriggerTools.h:32
HGCalTriggerTowerGeometryHelper::binsPhi_
std::vector< double > binsPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:49
ParameterSet.h
HGCalTriggerTowerGeometryHelper::binsEta_
std::vector< double > binsEta_
Definition: HGCalTriggerTowerGeometryHelper.h:48
GlobalPoint.h
HGCalTriggerTowerGeometryHelper::tower_coords_
std::vector< l1t::HGCalTowerCoord > tower_coords_
Definition: HGCalTriggerTowerGeometryHelper.h:38
HGCalTriggerTowerGeometryHelper::getTriggerTowerFromTriggerCell
unsigned short getTriggerTowerFromTriggerCell(const unsigned tcId, const float &eta, const float &phi) const
Definition: HGCalTriggerTowerGeometryHelper.cc:87
HGCalTriggerTowerGeometryHelper::minEta_
double minEta_
Definition: HGCalTriggerTowerGeometryHelper.h:41