Skip to content

Commit

Permalink
Fix constness
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsauvan committed Feb 28, 2018
1 parent 620f898 commit a881c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DataFormats/L1THGCal/interface/HGCalCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


namespace l1t {

class HGCalCluster : public HGCalClusterT<l1t::HGCalTriggerCell> {

public:
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/L1THGCal/interface/HGCalTowerMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace l1t {
int nPhiBins() const { return nPhiBins_; }
const vector<double>& etaBins() const { return etaBins_; }
const vector<double>& phiBins() const { return phiBins_; }
const l1t::HGCalTower& tower(int iEta, int iPhi) { return towerMap_[bin_id(iEta,iPhi)]; }
const l1t::HGCalTower& tower(int iEta, int iPhi) const { return towerMap_.at(bin_id(iEta,iPhi)); }

int iEta(const double eta) const;
int iPhi(const double phi) const;
Expand Down

0 comments on commit a881c1d

Please sign in to comment.