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  const bool isNose() { return doNose_; }
42 
43 private:
44  std::vector<l1t::HGCalTowerCoord> tower_coords_;
45  std::unordered_map<unsigned, short> cells_to_trigger_towers_;
46 
47  bool doNose_;
48  double minEta_;
49  double maxEta_;
50  double minPhi_;
51  double maxPhi_;
52  unsigned int nBinsEta_;
53  unsigned int nBinsPhi_;
54 
55  std::vector<double> binsEta_;
56  std::vector<double> binsPhi_;
57 
59 };
60 
61 #endif
HGCalTriggerTools.h
HGCalTriggerTowerGeometryHelper::maxEta_
double maxEta_
Definition: HGCalTriggerTowerGeometryHelper.h:49
HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition: HGCalTriggerTools.cc:35
HGCalTriggerTowerGeometryHelper::nBinsPhi_
unsigned int nBinsPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:53
HGCalTriggerTowerGeometryHelper::doNose_
bool doNose_
Definition: HGCalTriggerTowerGeometryHelper.h:47
HGCalTriggerTowerGeometryHelper::cells_to_trigger_towers_
std::unordered_map< unsigned, short > cells_to_trigger_towers_
Definition: HGCalTriggerTowerGeometryHelper.h:45
HGCalTriggerSums.h
HGCalTriggerTowerGeometryHelper::getTriggerTower
unsigned short getTriggerTower(const l1t::HGCalTriggerCell &) const
Definition: HGCalTriggerTowerGeometryHelper.cc:123
HGCalTriggerTowerGeometryHelper::maxPhi_
double maxPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:51
HGCalTriggerTowerGeometryHelper::~HGCalTriggerTowerGeometryHelper
~HGCalTriggerTowerGeometryHelper()
Definition: HGCalTriggerTowerGeometryHelper.h:31
PVValHelper::eta
Definition: PVValidationHelpers.h:70
HGCalTriggerTowerGeometryHelper::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalTriggerTowerGeometryHelper.h:58
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:58
HGCalTriggerTowerGeometryHelper::minPhi_
double minPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:50
DDAxes::phi
HGCalTriggerTowerGeometryHelper::isNose
const bool isNose()
Definition: HGCalTriggerTowerGeometryHelper.h:41
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:52
HGCalTriggerTowerGeometryHelper::getTowerCoordinates
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
Definition: HGCalTriggerTowerGeometryHelper.cc:84
HGCalTriggerTowerGeometryHelper::getTriggerTowerFromEtaPhi
unsigned short getTriggerTowerFromEtaPhi(const float &eta, const float &phi) const
Definition: HGCalTriggerTowerGeometryHelper.cc:88
HGCalTriggerTools
Definition: HGCalTriggerTools.h:32
HGCalTriggerCell.h
HGCalTriggerTowerGeometryHelper::binsPhi_
std::vector< double > binsPhi_
Definition: HGCalTriggerTowerGeometryHelper.h:56
ParameterSet.h
HGCalTriggerTowerGeometryHelper::binsEta_
std::vector< double > binsEta_
Definition: HGCalTriggerTowerGeometryHelper.h:55
l1t::HGCalTriggerSums
Definition: HGCalTriggerSums.h:14
GlobalPoint.h
HGCalTriggerTowerGeometryHelper::tower_coords_
std::vector< l1t::HGCalTowerCoord > tower_coords_
Definition: HGCalTriggerTowerGeometryHelper.h:44
HGCalTriggerTowerGeometryHelper::minEta_
double minEta_
Definition: HGCalTriggerTowerGeometryHelper.h:48