CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
EBDetId Class Reference

#include <EBDetId.h>

Inheritance diagram for EBDetId:
DetId HodoscopeDetId

Public Types

enum  { Subdet = EcalBarrel }
 
enum  { kSizeForDenseIndexing = MAX_HASH + 1 }
 
- Public Types inherited from DetId
enum  Detector {
  Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4,
  Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8,
  HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11
}
 

Public Member Functions

float approxEta () const
 
uint32_t denseIndex () const
 
 EBDetId ()
 
 EBDetId (uint32_t rawid)
 
 EBDetId (int crystal_ieta, int crystal_iphi)
 
 EBDetId (int index1, int index2, int mode)
 
 EBDetId (const DetId &id)
 
int hashedIndex () const
 get a compact index for arrays More...
 
int ic () const
 get ECAL/crystal number inside SM More...
 
int ieta () const
 get the crystal ieta More...
 
int ietaAbs () const
 get the absolute value of the crystal ieta More...
 
int ietaSM () const
 get the crystal ieta in the SM convention (1-85) More...
 
int im () const
 get the number of module inside the SM (1-4) More...
 
int iphi () const
 get the crystal iphi More...
 
int iphiSM () const
 get the crystal iphi (1-20) More...
 
int ism () const
 get the ECAL/SM id More...
 
int numberByEtaPhi () const
 
int numberBySM () const
 
EBDetId offsetBy (int nrStepsEta, int nrStepsPhi) const
 
EBDetIdoperator= (const DetId &id)
 
bool positiveZ () const
 
EBDetId switchZSide () const
 
EcalTrigTowerDetId tower () const
 get the HCAL/trigger iphi of this crystal More...
 
int tower_ieta () const
 get the HCAL/trigger ieta of this crystal More...
 
int tower_iphi () const
 get the HCAL/trigger iphi of this crystal More...
 
int zside () const
 get the z-side of the crystal (1/-1) More...
 
- Public Member Functions inherited from DetId
constexpr Detector det () const
 get the detector field from this detid More...
 
constexpr DetId ()
 Create an empty or null id (also for persistence) More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. More...
 
constexpr DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr bool null () const
 is this a null id ? More...
 
constexpr operator uint32_t () const
 
constexpr bool operator!= (DetId id) const
 inequality More...
 
constexpr uint32_t operator() () const
 
constexpr bool operator< (DetId id) const
 comparison More...
 
constexpr bool operator== (DetId id) const
 equality More...
 
constexpr uint32_t rawId () const
 get the raw id More...
 
constexpr int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

Static Public Member Functions

static float approxEta (const DetId id)
 
static EBDetId detIdFromDenseIndex (uint32_t di)
 
static int distanceEta (const EBDetId &a, const EBDetId &b)
 
static int distancePhi (const EBDetId &a, const EBDetId &b)
 
static bool isNextToBoundary (EBDetId id)
 
static bool isNextToEtaBoundary (EBDetId id)
 
static bool isNextToPhiBoundary (EBDetId id)
 
static DetId offsetBy (const DetId startId, int nrStepsEta, int nrStepsPhi)
 
static EcalSubdetector subdet ()
 get the subdetector .i.e EcalBarrel (what else?) More...
 
static DetId switchZSide (const DetId startId)
 
static EBDetId unhashIndex (int hi)
 get a DetId from a compact index for arrays More...
 
static bool validDenseIndex (uint32_t din)
 
static bool validDetId (int i, int j)
 check if a valid index combination More...
 
static bool validHashIndex (int i)
 

Static Public Attributes

static const float crystalUnitToEta = 0.017453292519943295
 
static const int ETAPHIMODE = 0
 
static const int kChannelsPerCard = 5
 
static const int kCrystalsInEta = 85
 
static const int kCrystalsInPhi = 20
 
static const int kCrystalsPerSM = 1700
 
static const int kModuleBoundaries [4] = {25, 45, 65, 85}
 
static const int kModulesPerSM = 4
 
static const int kTowersInPhi = 4
 
static const int MAX_C = kCrystalsPerSM
 
static const int MAX_HASH = 2 * MAX_IPHI * MAX_IETA - 1
 
static const int MAX_IETA = 85
 
static const int MAX_IPHI = 360
 
static const int MAX_SM = 36
 
static const int MIN_C = 1
 
static const int MIN_HASH = 0
 
static const int MIN_IETA = 1
 range constants More...
 
static const int MIN_IPHI = 1
 
static const int MIN_SM = 1
 
static const int SMCRYSTALMODE = 1
 
- Static Public Attributes inherited from DetId
static const int kDetMask = 0xF
 
static const int kDetOffset = 28
 
static const int kSubdetMask = 0x7
 
static const int kSubdetOffset = 25
 

Additional Inherited Members

- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

Crystal identifier class for the ECAL barrel

Definition at line 17 of file EBDetId.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Subdet 

Definition at line 19 of file EBDetId.h.

◆ anonymous enum

anonymous enum
Enumerator
kSizeForDenseIndexing 

Definition at line 155 of file EBDetId.h.

static const int MAX_HASH
Definition: EBDetId.h:150

Constructor & Destructor Documentation

◆ EBDetId() [1/5]

EBDetId::EBDetId ( )
inline

Constructor of a null id

Definition at line 21 of file EBDetId.h.

Referenced by offsetBy(), switchZSide(), and unhashIndex().

21 {}

◆ EBDetId() [2/5]

EBDetId::EBDetId ( uint32_t  rawid)
inline

Constructor from a raw value

Definition at line 23 of file EBDetId.h.

23 : DetId(rawid) {}
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ EBDetId() [3/5]

EBDetId::EBDetId ( int  crystal_ieta,
int  crystal_iphi 
)
inline

Constructor from crystal ieta and iphi or from SM# and crystal#

Definition at line 27 of file EBDetId.h.

References DetId::id_.

27  : DetId(Ecal, EcalBarrel) {
28  id_ |= ((crystal_ieta > 0) ? (0x10000 | (crystal_ieta << 9)) : ((-crystal_ieta) << 9)) | (crystal_iphi & 0x1FF);
29  }
uint32_t id_
Definition: DetId.h:69
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ EBDetId() [4/5]

EBDetId::EBDetId ( int  index1,
int  index2,
int  mode 
)

Definition at line 10 of file EBDetId.cc.

References ETAPHIMODE, Exception, mps_fire::i, DetId::id_, createfilelist::int, dqmiolumiharvest::j, kCrystalsInPhi, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, SMCRYSTALMODE, and validDetId().

10  : DetId(Ecal, EcalBarrel) {
11  int crystal_ieta;
12  int crystal_iphi;
13  if (mode == ETAPHIMODE) {
14  crystal_ieta = index1;
15  crystal_iphi = index2;
16  } else if (mode == SMCRYSTALMODE) {
17  int SM = index1;
18  int crystal = index2;
19  int i = (int)floor((crystal - 1) / kCrystalsInPhi);
20  int j = ((crystal - 1) - (kCrystalsInPhi * i));
21  if (SM <= 18) {
22  crystal_ieta = i + 1;
23  crystal_iphi = ((SM - 1) * kCrystalsInPhi) + (kCrystalsInPhi - j);
24  } else {
25  crystal_ieta = -(i + 1);
26  crystal_iphi = ((SM - 19) * kCrystalsInPhi) + j + 1;
27  }
28  } else {
29  throw cms::Exception("InvalidDetId") << "EBDetId: Cannot create object. Unknown mode for (int, int) constructor.";
30  }
31 
32  if (!validDetId(crystal_ieta, crystal_iphi)) {
33  // std::cout << "crystal_eta " << crystal_ieta << "crystal_phi " << crystal_iphi << std::endl;
34  throw cms::Exception("InvalidDetId") << "EBDetId: Cannot create object. Indexes out of bounds \n"
35  << "eta = " << crystal_ieta << " phi = " << crystal_iphi;
36  }
37  id_ |= ((crystal_ieta > 0) ? (0x10000 | (crystal_ieta << 9)) : ((-crystal_ieta) << 9)) | (crystal_iphi & 0x1FF);
38 }
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:118
static const int kCrystalsInPhi
Definition: EBDetId.h:142
static const int ETAPHIMODE
Definition: EBDetId.h:158
uint32_t id_
Definition: DetId.h:69
static const int SMCRYSTALMODE
Definition: EBDetId.h:159
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ EBDetId() [5/5]

EBDetId::EBDetId ( const DetId id)
inline

Constructor from a generic cell id

Definition at line 33 of file EBDetId.h.

33 : DetId(id) {}
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

Member Function Documentation

◆ approxEta() [1/2]

float EBDetId::approxEta ( ) const
inline

◆ approxEta() [2/2]

float EBDetId::approxEta ( const DetId  id)
static

Definition at line 136 of file EBDetId.cc.

References approxEta(), EcalBarrel, and DetId::subdetId().

136  {
137  if (id.subdetId() == EcalBarrel) {
138  EBDetId ebId(id);
139  return ebId.approxEta();
140  } else {
141  return 0;
142  }
143 }
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48

◆ denseIndex()

uint32_t EBDetId::denseIndex ( ) const
inline

Definition at line 84 of file EBDetId.h.

References hashedIndex().

Referenced by EcalTBHodoscopeGeometry::newCell(), and EcalPhiSymRecHitProducerBase::processEvent().

84 { return hashedIndex(); }
int hashedIndex() const
get a compact index for arrays
Definition: EBDetId.h:82

◆ detIdFromDenseIndex()

static EBDetId EBDetId::detIdFromDenseIndex ( uint32_t  di)
inlinestatic

◆ distanceEta()

int EBDetId::distanceEta ( const EBDetId a,
const EBDetId b 
)
static

Definition at line 118 of file EBDetId.cc.

References a, funct::abs(), and b.

Referenced by EcalClusterSeverityLevelAlgo::closestProblematic(), and EcalClusterSeverityLevelAlgo::etaphiDistanceClosestProblematic().

118  {
119  if (a.ieta() * b.ieta() > 0)
120  return abs(a.ieta() - b.ieta());
121  else
122  return abs(a.ieta() - b.ieta()) - 1;
123 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ distancePhi()

int EBDetId::distancePhi ( const EBDetId a,
const EBDetId b 
)
static

Definition at line 125 of file EBDetId.cc.

References a, funct::abs(), b, PI, and mps_fire::result.

Referenced by EcalClusterSeverityLevelAlgo::closestProblematic(), and EcalClusterSeverityLevelAlgo::etaphiDistanceClosestProblematic().

125  {
126  int PI = 180;
127  int result = a.iphi() - b.iphi();
128 
129  while (result > PI)
130  result -= 2 * PI;
131  while (result <= -PI)
132  result += 2 * PI;
133  return abs(result);
134 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
#define PI
Definition: QcdUeDQM.h:37
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ hashedIndex()

int EBDetId::hashedIndex ( ) const
inline

◆ ic()

int EBDetId::ic ( ) const

◆ ieta()

int EBDetId::ieta ( ) const
inline

get the crystal ieta

Definition at line 49 of file EBDetId.h.

References ietaAbs(), and zside().

Referenced by FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), JetToDigiDump::analyze(), EcalTBValidation::analyze(), EcalEBTrigPrimAnalyzer::analyze(), DQMSourceEleCalib::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalBarrelDigisValidation::analyze(), ElectronCalibration::analyze(), DQMSourcePi0::analyze(), TreeProducerCalibSimul::analyze(), EcalDigisValidation::analyze(), EcalRecHitsValidation::analyze(), HcalTB06Analysis::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), approxEta(), EcalPedestalHistory::beginRun(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), HLTEcalResonanceFilter::calcShowerShape(), HLTRegionalEcalResonanceFilter::calcShowerShape(), EcalHaloAlgo::Calculate(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), PFClusterEMEnergyCorrector::correctEnergies(), EcalGlobalShowerContainmentCorrectionsVsEta::correction(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit::dieta(), ECALpedestalPCLHarvester::dqmPlots(), popcon::EcalLaserHandler::dumpBarrelPayload(), InvRingCalib::duringLoop(), Pi0FixedMassWindowCalibration::duringLoop(), ZeeCalibration::duringLoop(), ElectronCalibrationUniv::endJob(), Pi0FixedMassWindowCalibration::endOfJob(), EcalEleCalibLooper::endOfLoop(), Pi0FixedMassWindowCalibration::endOfLoop(), ZeeCalibration::endOfLoop(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), MatrixFillMap::fillEBMap(), ECALRecHitAnalyzer::FillGeometry(), reco::EcalClustersGraph::fillHits(), EcalBadCalibFilter::filter(), EcalRecHitsFilter::filter(), HLTEcalPhiSymFilter::filter(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), CalibrationCluster::get3x3Id(), CalibrationCluster::get5x5Id(), EcalBarrelGeometry::getClosestCell(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalClusterToolsT< noZS >::getIEta(), PhotonMIPHaloTagger::GetMipTrailFit(), SCEnergyCorrectorSemiParm::getRegDataECALV1(), EcalRingCalibrationTools::getRingIndex(), EGRegressionModifierV3::getSeedCrysCoord(), PhotonMIPHaloTagger::GetSeedHighestE(), EcalClusterCrackCorrection::getValue(), ecalpyutils::hashedIndexToEtaPhi(), DetIdInfo::info(), fireworks::info(), isNextToEtaBoundary(), egammaTools::localEcalClusterCoordsEB(), EcalDisplaysByEvent::makeHistos(), PiZeroAnalyzer::makePizero(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EBDetIdSorter::operator()(), EcalBasicClusterLocalContCorrection::operator()(), HodoscopeDetId::planeId(), ecaldqm::pnForCrystal(), EcalBarrelGeometry::present(), popcon::EcalPedestalsHandler::readPedestalMC(), ecaldqm::PiZeroTask::runOnEBRecHits(), reco::SuperCluster::seedCrysIEtaOrIx(), EcalGeomPhiSymHelper::setup(), EcalTools::swissCross(), switchZSide(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

49 { return zside() * ietaAbs(); }
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:47
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:45

◆ ietaAbs()

int EBDetId::ietaAbs ( ) const
inline

◆ ietaSM()

int EBDetId::ietaSM ( ) const
inline

get the crystal ieta in the SM convention (1-85)

Definition at line 71 of file EBDetId.h.

References ietaAbs().

Referenced by EcalCosmicsHists::analyze(), and EcalElectronicsMapping::getLMNumber().

71 { return ietaAbs(); }
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:47

◆ im()

int EBDetId::im ( ) const
inline

get the number of module inside the SM (1-4)

Definition at line 64 of file EBDetId.h.

References ietaAbs(), and cuy::ii.

Referenced by CaloGeometryHelper::borderCrossing(), EcalClusterToolsT< noZS >::energyBasketFractionEta(), and EcalRingCalibrationTools::getModuleIndex().

64  {
65  int ii = (ietaAbs() - 26);
66  return ii < 0 ? 1 : (ii / 20 + 2);
67  }
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:47
ii
Definition: cuy.py:589

◆ iphi()

int EBDetId::iphi ( ) const
inline

get the crystal iphi

Definition at line 51 of file EBDetId.h.

References DetId::id_.

Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), EcalEBTrigPrimAnalyzer::analyze(), DQMSourceEleCalib::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalBarrelDigisValidation::analyze(), ElectronCalibration::analyze(), DQMSourcePi0::analyze(), TreeProducerCalibSimul::analyze(), EcalDigisValidation::analyze(), EcalRecHitsValidation::analyze(), HcalTB06Analysis::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), EcalPedestalHistory::beginRun(), HLTEcalResonanceFilter::calcShowerShape(), HLTRegionalEcalResonanceFilter::calcShowerShape(), EcalHaloAlgo::Calculate(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit::diphi(), ECALpedestalPCLHarvester::dqmPlots(), popcon::EcalLaserHandler::dumpBarrelPayload(), InvRingCalib::duringLoop(), Pi0FixedMassWindowCalibration::duringLoop(), ZeeCalibration::duringLoop(), ElectronCalibrationUniv::endJob(), Pi0FixedMassWindowCalibration::endOfJob(), EcalEleCalibLooper::endOfLoop(), Pi0FixedMassWindowCalibration::endOfLoop(), ZeeCalibration::endOfLoop(), EcalClusterToolsT< noZS >::energyBasketFractionPhi(), HodoscopeDetId::fibrId(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), MatrixFillMap::fillEBMap(), reco::EcalClustersGraph::fillHits(), EcalBadCalibFilter::filter(), EcalRecHitsFilter::filter(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), CalibrationCluster::get3x3Id(), CalibrationCluster::get5x5Id(), EcalBarrelGeometry::getClosestCell(), EcalElectronicsMapping::getElectronicsId(), EcalClusterToolsT< noZS >::getIPhi(), PhotonMIPHaloTagger::GetMipTrailFit(), PhotonMIPHaloTagger::GetSeedHighestE(), EcalClusterCrackCorrection::getValue(), ecalpyutils::hashedIndexToEtaPhi(), ic(), DetIdInfo::info(), fireworks::info(), ism(), isNextToPhiBoundary(), egammaTools::localEcalClusterCoordsEB(), EcalDisplaysByEvent::makeHistos(), PiZeroAnalyzer::makePizero(), numberByEtaPhi(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EBDetIdSorter::operator()(), EcalBasicClusterLocalContCorrection::operator()(), ecaldqm::phi(), ecaldqm::pnForCrystal(), EcalBarrelGeometry::present(), EcalLaserCondTools::FileReader::readPs(), ecaldqm::PiZeroTask::runOnEBRecHits(), reco::SuperCluster::seedCrysIPhiOrIy(), EcalGeomPhiSymHelper::setup(), switchZSide(), tower_iphi(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

51 { return id_ & 0x1FF; }
uint32_t id_
Definition: DetId.h:69

◆ iphiSM()

int EBDetId::iphiSM ( ) const
inline

get the crystal iphi (1-20)

Definition at line 73 of file EBDetId.h.

References ic(), and kCrystalsInPhi.

Referenced by EcalCosmicsHists::analyze(), and EcalElectronicsMapping::getLMNumber().

73 { return ((ic() - 1) % kCrystalsInPhi) + 1; }
static const int kCrystalsInPhi
Definition: EBDetId.h:142
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:41

◆ ism()

int EBDetId::ism ( ) const
inline

◆ isNextToBoundary()

bool EBDetId::isNextToBoundary ( EBDetId  id)
static

Definition at line 106 of file EBDetId.cc.

References isNextToEtaBoundary(), and isNextToPhiBoundary().

Referenced by EcalCleaningAlgo::isNearCrack(), and isNextToBoundary().

106 { return isNextToEtaBoundary(id) || isNextToPhiBoundary(id); }
static bool isNextToEtaBoundary(EBDetId id)
Definition: EBDetId.cc:108
static bool isNextToPhiBoundary(EBDetId id)
Definition: EBDetId.cc:113

◆ isNextToEtaBoundary()

bool EBDetId::isNextToEtaBoundary ( EBDetId  id)
static

Definition at line 108 of file EBDetId.cc.

References spr::find(), ieta(), and kModuleBoundaries.

Referenced by PhotonIsolationCalculator::classify(), GsfElectronAlgo::createElectron(), and isNextToBoundary().

108  {
109  int ieta = id.ietaSM();
111 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49
static const int kModuleBoundaries[4]
Definition: EBDetId.h:141

◆ isNextToPhiBoundary()

bool EBDetId::isNextToPhiBoundary ( EBDetId  id)
static

Definition at line 113 of file EBDetId.cc.

References iphi().

Referenced by PhotonIsolationCalculator::classify(), GsfElectronAlgo::createElectron(), and isNextToBoundary().

113  {
114  int iphi = id.iphiSM();
115  return iphi == 1 || iphi == 20;
116 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51

◆ numberByEtaPhi()

int EBDetId::numberByEtaPhi ( ) const
inline

Definition at line 78 of file EBDetId.h.

References ietaAbs(), iphi(), MAX_IETA, MAX_IPHI, and positiveZ().

Referenced by hashedIndex().

78 { return (MAX_IETA + (positiveZ() ? ietaAbs() - 1 : -ietaAbs())) * MAX_IPHI + iphi() - 1; }
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:47
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
bool positiveZ() const
Definition: EBDetId.h:76
static const int MAX_IPHI
Definition: EBDetId.h:137
static const int MAX_IETA
Definition: EBDetId.h:136

◆ numberBySM()

int EBDetId::numberBySM ( ) const

Definition at line 48 of file EBDetId.cc.

References ic(), ism(), and kCrystalsPerSM.

48 { return (ism() - 1) * kCrystalsPerSM + ic() - 1; }
static const int kCrystalsPerSM
Definition: EBDetId.h:144
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:41
int ism() const
get the ECAL/SM id
Definition: EBDetId.h:59

◆ offsetBy() [1/2]

EBDetId EBDetId::offsetBy ( int  nrStepsEta,
int  nrStepsPhi 
) const

returns a new EBDetId offset by nrStepsEta and nrStepsPhi (can be negative), returns EBDetId(0) if invalid

Definition at line 50 of file EBDetId.cc.

References EBDetId(), ieta(), iphi(), and validDetId().

Referenced by EcalTools::deadNeighbour(), EcalCleaningAlgo::neighbours(), offsetBy(), and EcalTools::recHitE().

50  {
51  int newEta = ieta() + nrStepsEta;
52  if (newEta * ieta() <= 0) {
53  if (ieta() < 0) {
54  newEta++;
55  } else if (ieta() > 0) {
56  newEta--;
57  }
58  }
59  int newPhi = iphi() + nrStepsPhi;
60  while (newPhi > 360)
61  newPhi -= 360;
62  while (newPhi <= 0)
63  newPhi += 360;
64 
65  if (validDetId(newEta, newPhi)) {
66  return EBDetId(newEta, newPhi);
67  } else {
68  return EBDetId(0);
69  }
70 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
EBDetId()
Definition: EBDetId.h:21
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:118
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49

◆ offsetBy() [2/2]

DetId EBDetId::offsetBy ( const DetId  startId,
int  nrStepsEta,
int  nrStepsPhi 
)
static

following are static member functions of the above two functions which take and return a DetId, returns DetId(0) if invalid

Definition at line 81 of file EBDetId.cc.

References DetId::det(), DetId::DetId(), DetId::Ecal, EcalBarrel, offsetBy(), DetId::rawId(), and DetId::subdetId().

81  {
82  if (startId.det() == DetId::Ecal && startId.subdetId() == EcalBarrel) {
83  EBDetId ebStartId(startId);
84  return ebStartId.offsetBy(nrStepsEta, nrStepsPhi).rawId();
85  } else {
86  return DetId(0);
87  }
88 }
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ operator=()

EBDetId& EBDetId::operator= ( const DetId id)
inline

Assignment operator from cell id

Definition at line 35 of file EBDetId.h.

References DetId::id_.

35  {
36  id_ = id.rawId();
37  return *this;
38  }
uint32_t id_
Definition: DetId.h:69

◆ positiveZ()

bool EBDetId::positiveZ ( ) const
inline

Definition at line 76 of file EBDetId.h.

References DetId::id_.

Referenced by EcalClusterToolsT< noZS >::energyBasketFractionEta(), EcalClusterToolsT< noZS >::energyBasketFractionPhi(), ic(), ism(), and numberByEtaPhi().

76 { return id_ & 0x10000; }
uint32_t id_
Definition: DetId.h:69

◆ subdet()

static EcalSubdetector EBDetId::subdet ( )
inlinestatic

get the subdetector .i.e EcalBarrel (what else?)

Definition at line 42 of file EBDetId.h.

References EcalBarrel.

42 { return EcalBarrel; }

◆ switchZSide() [1/2]

EBDetId EBDetId::switchZSide ( ) const

returns a new EBDetId on the other zside of barrel (ie iEta*-1), returns EBDetId(0) if invalid (shouldnt happen)

Definition at line 72 of file EBDetId.cc.

References EBDetId(), ieta(), iphi(), and validDetId().

Referenced by ecaldqm::TimingClient::producePlots(), and switchZSide().

72  {
73  int newEta = ieta() * -1;
74  if (validDetId(newEta, iphi())) {
75  return EBDetId(newEta, iphi());
76  } else {
77  return EBDetId(0);
78  }
79 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
EBDetId()
Definition: EBDetId.h:21
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:118
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49

◆ switchZSide() [2/2]

DetId EBDetId::switchZSide ( const DetId  startId)
static

Definition at line 90 of file EBDetId.cc.

References DetId::det(), DetId::DetId(), DetId::Ecal, EcalBarrel, DetId::rawId(), DetId::subdetId(), and switchZSide().

90  {
91  if (startId.det() == DetId::Ecal && startId.subdetId() == EcalBarrel) {
92  EBDetId ebStartId(startId);
93  return ebStartId.switchZSide().rawId();
94  } else {
95  return DetId(0);
96  }
97 }
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ tower()

EcalTrigTowerDetId EBDetId::tower ( ) const
inline

◆ tower_ieta()

int EBDetId::tower_ieta ( ) const
inline

get the HCAL/trigger ieta of this crystal

Definition at line 53 of file EBDetId.h.

References ietaAbs(), and zside().

Referenced by DetIdInfo::info(), fireworks::info(), tower(), and CaloTowerConstituentsMap::towerOf().

53 { return ((ietaAbs() - 1) / 5 + 1) * zside(); }
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:47
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:45

◆ tower_iphi()

int EBDetId::tower_iphi ( ) const

get the HCAL/trigger iphi of this crystal

Definition at line 100 of file EBDetId.cc.

References iphi().

Referenced by DetIdInfo::info(), fireworks::info(), tower(), and CaloTowerConstituentsMap::towerOf().

100  {
101  int iphi_simple = ((iphi() - 1) / 5) + 1;
102  iphi_simple -= 2;
103  return ((iphi_simple <= 0) ? (iphi_simple + 72) : (iphi_simple));
104 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51

◆ unhashIndex()

static EBDetId EBDetId::unhashIndex ( int  hi)
inlinestatic

get a DetId from a compact index for arrays

Definition at line 110 of file EBDetId.h.

References EBDetId(), MAX_IETA, MAX_IPHI, and validHashIndex().

Referenced by EcalTPGParamBuilder::analyze(), ecaldqm::PresampleTask::beginEvent(), ecaldqm::OccupancyTask::beginEvent(), EcalPedestalHistory::beginRun(), detIdFromDenseIndex(), popcon::EcalLaserHandler::dumpBarrelPayload(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), EcalEleCalibLooper::EBRegionDefinition(), EcalEleCalibLooper::EcalEleCalibLooper(), ecal::raw::ElectronicsMappingGPU::ElectronicsMappingGPU(), fillEBMap_SingleIOV(), fillEBMap_TwoIOVs(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), popcon::EcalLaser_weekly_Handler::getNewObjects(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), ecalpyutils::hashedIndexToEtaPhi(), CalorimetryManager::loadFromEcalBarrel(), main(), popcon::EcalLaserHandler::notifyProblems(), printStatusRecords(), EcalLiteDTUPedestalsESProducer::produce(), EcalCATIAGainRatiosESProducer::produce(), StoreEcalCondition::readEcalChannelStatusFromFile(), ecaldqm::StatusManager::readFromObj(), ecaldqm::StatusManager::readFromStream(), popcon::EcalPedestalsHandler::readPedestalMC(), popcon::EcalPedestalsHandler::readPedestalTimestamp(), popcon::EcalPedestalsHandler::readPedestalTree(), EcalFloatCondObjectContainerXMLTranslator::readXML(), popcon::EcalPFRecHitThresholdsHandler::readXML(), popcon::EcalIntercalibHandler::readXML(), and ecaldqm::StatusManager::writeToObj().

110  {
111  const int pseudo_eta = hi / MAX_IPHI - MAX_IETA;
112  return (validHashIndex(hi) ? EBDetId(pseudo_eta < 0 ? pseudo_eta : pseudo_eta + 1, hi % MAX_IPHI + 1) : EBDetId());
113  }
EBDetId()
Definition: EBDetId.h:21
Definition: EPCuts.h:4
static const int MAX_IPHI
Definition: EBDetId.h:137
static const int MAX_IETA
Definition: EBDetId.h:136
static bool validHashIndex(int i)
Definition: EBDetId.h:115

◆ validDenseIndex()

static bool EBDetId::validDenseIndex ( uint32_t  din)
inlinestatic

◆ validDetId()

static bool EBDetId::validDetId ( int  i,
int  j 
)
inlinestatic

check if a valid index combination

Definition at line 118 of file EBDetId.h.

References funct::abs(), mps_fire::i, dqmiolumiharvest::j, MAX_IETA, MAX_IPHI, and MIN_IPHI.

Referenced by EcalTBValidation::analyze(), EcalPFRecHitThresholdsMaker::analyze(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), EcalLaserCondTools::dbToAscii(), EcalBarrelTopology::decrementIeta(), EcalBarrelTopology::decrementIphi(), EBDetId(), ZeeCalibration::endOfJob(), spr::extraIds(), MatrixFillMap::fillEBMap(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPulseSymmCovariancesHandler::getNewObjects(), popcon::EcalPulseShapesHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getPFRecHitThresholdsFromConfiguration(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalBarrelTopology::incrementIeta(), EcalBarrelTopology::incrementIphi(), offsetBy(), EcalBarrelGeometry::present(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalPFRecHitThresholds(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalPFRecHitThresholdsFromFile(), popcon::EcalPedestalsHandler::readPedestal2017(), popcon::EcalPedestalsHandler::readPedestalFile(), popcon::EcalPedestalsHandler::readPedestalMC(), EcalLaserCondTools::FileReader::readPs(), EcalNextToDeadChannelESProducer::setupNextToDeadChannels(), switchZSide(), and CaloGenericDetId::validDetId().

118  {
119  return i != 0 && (std::abs(i) <= MAX_IETA) && (j >= MIN_IPHI) && (j <= MAX_IPHI);
120  }
static const int MIN_IPHI
Definition: EBDetId.h:135
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static const int MAX_IPHI
Definition: EBDetId.h:137
static const int MAX_IETA
Definition: EBDetId.h:136

◆ validHashIndex()

static bool EBDetId::validHashIndex ( int  i)
inlinestatic

Definition at line 115 of file EBDetId.h.

References MAX_HASH.

Referenced by unhashIndex().

115 { return !(i < MIN_HASH || i > MAX_HASH); }
static const int MAX_HASH
Definition: EBDetId.h:150

◆ zside()

int EBDetId::zside ( ) const
inline

Member Data Documentation

◆ crystalUnitToEta

const float EBDetId::crystalUnitToEta = 0.017453292519943295
static

◆ ETAPHIMODE

const int EBDetId::ETAPHIMODE = 0
static

◆ kChannelsPerCard

const int EBDetId::kChannelsPerCard = 5
static

Definition at line 138 of file EBDetId.h.

◆ kCrystalsInEta

const int EBDetId::kCrystalsInEta = 85
static

Definition at line 143 of file EBDetId.h.

◆ kCrystalsInPhi

const int EBDetId::kCrystalsInPhi = 20
static

◆ kCrystalsPerSM

const int EBDetId::kCrystalsPerSM = 1700
static

Definition at line 144 of file EBDetId.h.

Referenced by numberBySM().

◆ kModuleBoundaries

const int EBDetId::kModuleBoundaries = {25, 45, 65, 85}
static

Definition at line 141 of file EBDetId.h.

Referenced by isNextToEtaBoundary().

◆ kModulesPerSM

const int EBDetId::kModulesPerSM = 4
static

◆ kTowersInPhi

const int EBDetId::kTowersInPhi = 4
static

Definition at line 139 of file EBDetId.h.

Referenced by EcalClusterToolsT< noZS >::energyBasketFractionPhi().

◆ MAX_C

const int EBDetId::MAX_C = kCrystalsPerSM
static

Definition at line 148 of file EBDetId.h.

◆ MAX_HASH

const int EBDetId::MAX_HASH = 2 * MAX_IPHI * MAX_IETA - 1
static

◆ MAX_IETA

const int EBDetId::MAX_IETA = 85
static

Definition at line 136 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), EcalPFRecHitThresholdsMaker::analyze(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), EnergyResolutionVsLumi::calcmuTot(), CaloTowerConstituentsMap::constituentsOf(), EcalLaserCondTools::dbToAscii(), EcalBarrelHardcodedTopology::decrementIeta(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalTBWeights(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalBarrelGeometry::getCells(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPulseShapesHandler::getNewObjects(), popcon::EcalPulseSymmCovariancesHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalBarrelHardcodedTopology::incrementIeta(), numberByEtaPhi(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalPFRecHitThresholds(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), popcon::EcalPedestalsHandler::readPedestal2017(), popcon::EcalPedestalsHandler::readPedestalFile(), popcon::EcalPedestalsHandler::readPedestalMC(), EcalNextToDeadChannelESProducer::setupNextToDeadChannels(), spr::simpleMove(), PFECALHashNavigator::stdsimplemove(), EcalCondObjectContainer< Values >::summary(), unhashIndex(), and validDetId().

◆ MAX_IPHI

const int EBDetId::MAX_IPHI = 360
static

Definition at line 137 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), EcalPFRecHitThresholdsMaker::analyze(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalLaserCondTools::dbToAscii(), EcalBarrelHardcodedTopology::decrementIphi(), EcalBarrelTopology::decrementIphi(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalClusterToolsT< noZS >::energyBasketFractionPhi(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalBarrelGeometry::getCells(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalBarrelGeometry::getClosestCell(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPulseShapesHandler::getNewObjects(), popcon::EcalPulseSymmCovariancesHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalBarrelHardcodedTopology::incrementIphi(), EcalBarrelTopology::incrementIphi(), numberByEtaPhi(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalPFRecHitThresholds(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), popcon::EcalPedestalsHandler::readPedestal2017(), popcon::EcalPedestalsHandler::readPedestalFile(), popcon::EcalPedestalsHandler::readPedestalMC(), EcalNextToDeadChannelESProducer::setupNextToDeadChannels(), EcalCondObjectContainer< Values >::summary(), unhashIndex(), and validDetId().

◆ MAX_SM

const int EBDetId::MAX_SM = 36
static

◆ MIN_C

const int EBDetId::MIN_C = 1
static

Definition at line 147 of file EBDetId.h.

◆ MIN_HASH

const int EBDetId::MIN_HASH = 0
static

◆ MIN_IETA

const int EBDetId::MIN_IETA = 1
static

range constants

Definition at line 134 of file EBDetId.h.

◆ MIN_IPHI

const int EBDetId::MIN_IPHI = 1
static

Definition at line 135 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), EcalPFRecHitThresholdsMaker::analyze(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalLaserCondTools::dbToAscii(), EcalBarrelHardcodedTopology::decrementIphi(), EcalBarrelTopology::decrementIphi(), ZeeCalibration::endOfJob(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalBarrelGeometry::getClosestCell(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPulseShapesHandler::getNewObjects(), popcon::EcalPulseSymmCovariancesHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalBarrelHardcodedTopology::incrementIphi(), EcalBarrelTopology::incrementIphi(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalLinearCorrections(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalPFRecHitThresholds(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), popcon::EcalPedestalsHandler::readPedestal2017(), popcon::EcalPedestalsHandler::readPedestalFile(), popcon::EcalPedestalsHandler::readPedestalMC(), EcalNextToDeadChannelESProducer::setupNextToDeadChannels(), and validDetId().

◆ MIN_SM

const int EBDetId::MIN_SM = 1
static

◆ SMCRYSTALMODE

const int EBDetId::SMCRYSTALMODE = 1
static

Definition at line 159 of file EBDetId.h.

Referenced by EcalTBValidation::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), TreeProducerCalibSimul::analyze(), EcalTPGParamBuilder::analyze(), EcalPedestalHistory::beginRun(), TBPositionCalc::CalculateCMSPos(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), popcon::EcalChannelStatusHandler::daqOut(), EcalBarrelGeometry::detIdFromLocalAlignmentIndex(), EBDetId(), EcalShowerContainmentCorrections::fillCorrectionCoefficients(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalTrivialConditionRetriever::getIntercalibErrorsFromConfiguration(), popcon::EcalLaser_weekly_Linearization_Check::getNewObjects(), popcon::EcalTPGBadTTHandler::getNewObjects(), popcon::EcalTPGLinConstHandler::getNewObjects(), popcon::EcalTPGBadXTHandler::getNewObjects(), popcon::EcalTPGFineGrainEBGroupHandler::getNewObjects(), popcon::EcalTPGPedestalsHandler::getNewObjects(), popcon::EcalTPGLutGroupHandler::getNewObjects(), popcon::EcalTPGSpikeThresholdHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTimeCalibConstantsFromConfiguration(), EcalTrivialConditionRetriever::getTimeCalibErrorsFromConfiguration(), TableDataFormatter::interpretRawData(), popcon::EcalChannelStatusHandler::laserAnalysis(), popcon::EcalChannelStatusHandler::laserMasking(), popcon::EcalChannelStatusHandler::nBadLaserModules(), popcon::EcalChannelStatusHandler::pedAnalysis(), popcon::EcalChannelStatusHandler::pedMasking(), popcon::EcalChannelStatusHandler::pedOnlineMasking(), popcon::EcalChannelStatusHandler::physicsMasking(), FakeTBEventHeaderProducer::produce(), EcalShowerContainmentCorrectionsESProducer::produce(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), and StoreEcalCondition::readEcalWeightXtalGroupsFromFile().