CMS 3D CMS Logo

CaloStage2Nav.cc
Go to the documentation of this file.
2 
3 l1t::CaloStage2Nav::CaloStage2Nav():homePos_(0,0),currPos_(homePos_)
4 {
5 
6 }
7 
9 {
10 
11 }
12 
14 {
15 
16 }
17 
18 std::pair<int,int> l1t::CaloStage2Nav::offsetFromCurrPos(int iEtaOffset,int iPhiOffset)const
19 {
20  std::pair<int,int> offsetPos;
21  offsetPos.first = offsetIEta(currPos_.first,iEtaOffset);
22  offsetPos.second = offsetIPhi(currPos_.second,iPhiOffset);
23  return offsetPos;
24 }
25 
26 std::pair<int,int> l1t::CaloStage2Nav::move(int iEtaOffset,int iPhiOffset)
27 {
28  currPos_.first=offsetIEta(currPos_.first,iEtaOffset);
29  currPos_.second=offsetIPhi(currPos_.second,iPhiOffset);
30  return currPos_;
31 }
std::pair< int, int > homePos_
std::pair< int, int > offsetFromCurrPos(int iEtaOffset, int iPhiOffset) const
static int offsetIEta(int iEta, int offset)
Definition: CaloStage2Nav.h:44
static int offsetIPhi(int iPhi, int offset)
Definition: CaloStage2Nav.h:33
std::pair< int, int > currPos_
std::pair< int, int > move(int iEtaOffset, int iPhiOffset)