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 }
EBDetId
Definition: EBDetId.h:17
EcalBarrelHardcodedTopology::incrementIphi
EBDetId incrementIphi(const EBDetId &) const
move the nagivator to larger iphi (wraps around the barrel)
Definition: EcalBarrelHardcodedTopology.cc:21
EcalBarrelHardcodedTopology::decrementIeta
EBDetId decrementIeta(const EBDetId &) const
move the nagivator to smaller ieta (more negative z) (stops at end of barrel and returns null)
Definition: EcalBarrelHardcodedTopology.cc:12
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
EcalBarrelHardcodedTopology::decrementIphi
EBDetId decrementIphi(const EBDetId &) const
move the nagivator to smaller iphi (wraps around the barrel)
Definition: EcalBarrelHardcodedTopology.cc:28
EBDetId::MAX_IPHI
static const int MAX_IPHI
Definition: EBDetId.h:137
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
EcalBarrelHardcodedTopology::incrementIeta
EBDetId incrementIeta(const EBDetId &) const
move the nagivator to larger ieta (more positive z) (stops at end of barrel and returns null)
Definition: EcalBarrelHardcodedTopology.cc:3
EcalBarrelHardcodedTopology.h
EBDetId::MAX_IETA
static const int MAX_IETA
Definition: EBDetId.h:136
EBDetId::MIN_IPHI
static const int MIN_IPHI
Definition: EBDetId.h:135