CMS 3D CMS Logo

EcalBarrelHardcodedTopology.cc
Go to the documentation of this file.
2 
4  if (id.ieta() == EBDetId::MAX_IETA)
5  return EBDetId(0); // null det id
6  else if (id.ieta() == -1)
7  return EBDetId(1, id.iphi());
8  else
9  return EBDetId(id.ieta() + 1, id.iphi());
10 }
11 
13  if (id.ieta() == -EBDetId::MAX_IETA)
14  return EBDetId(0); // null det id
15  else if (id.ieta() == 1)
16  return EBDetId(-1, id.iphi());
17  else
18  return EBDetId(id.ieta() - 1, id.iphi());
19 }
20 
22  if (id.iphi() == EBDetId::MAX_IPHI)
23  return EBDetId(id.ieta(), EBDetId::MIN_IPHI);
24  else
25  return EBDetId(id.ieta(), id.iphi() + 1);
26 }
27 
29  if (id.iphi() == EBDetId::MIN_IPHI)
30  return EBDetId(id.ieta(), EBDetId::MAX_IPHI);
31  else
32  return EBDetId(id.ieta(), id.iphi() - 1);
33 }
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 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) ...
static const int MAX_IPHI
Definition: EBDetId.h:137
EBDetId decrementIphi(const EBDetId &) const
move the nagivator to smaller iphi (wraps around the barrel)
static const int MAX_IETA
Definition: EBDetId.h:136