CMS 3D CMS Logo

EcalBarrelHardcodedTopology.cc
Go to the documentation of this file.
2 
4  if (id.ieta()==EBDetId::MAX_IETA) return EBDetId(0); // null det id
5  else if (id.ieta()==-1) return EBDetId(1,id.iphi());
6  else return EBDetId(id.ieta()+1,id.iphi());
7 }
8 
10  if (id.ieta()==-EBDetId::MAX_IETA) return EBDetId(0); // null det id
11  else if (id.ieta()==1) return EBDetId(-1,id.iphi());
12  else return EBDetId(id.ieta()-1,id.iphi());
13 }
14 
16  if (id.iphi()==EBDetId::MAX_IPHI) return EBDetId(id.ieta(),EBDetId::MIN_IPHI);
17  else return EBDetId(id.ieta(),id.iphi()+1);
18 }
19 
21  if (id.iphi()==EBDetId::MIN_IPHI) return EBDetId(id.ieta(),EBDetId::MAX_IPHI);
22  else return EBDetId(id.ieta(),id.iphi()-1);
23 }
static const int MIN_IPHI
Definition: EBDetId.h:135
EBDetId incrementIphi(const EBDetId &) const
move the nagivator to larger iphi (wraps around the barrel)
EBDetId decrementIphi(const EBDetId &) const
move the nagivator to smaller iphi (wraps around the barrel)
static const int MAX_IPHI
Definition: EBDetId.h:137
static const int MAX_IETA
Definition: EBDetId.h:136
EBDetId incrementIeta(const EBDetId &) const
move the nagivator to larger ieta (more positive z) (stops at end of barrel and returns null) ...
EBDetId decrementIeta(const EBDetId &) const
move the nagivator to smaller ieta (more negative z) (stops at end of barrel and returns null) ...