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 (const DetId &id)
 
 EBDetId (int crystal_ieta, int crystal_iphi)
 
 EBDetId (int index1, int index2, int mode)
 
 EBDetId (uint32_t rawid)
 
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 (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. 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.

19 { Subdet = EcalBarrel };

◆ anonymous enum

anonymous enum
Enumerator
kSizeForDenseIndexing 

Definition at line 155 of file EBDetId.h.

Constructor & Destructor Documentation

◆ EBDetId() [1/5]

EBDetId::EBDetId ( )
inline

Constructor of a null id

Definition at line 21 of file EBDetId.h.

21 {}

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

◆ 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) {}

◆ 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.

27  : DetId(Ecal, EcalBarrel) {
28  id_ |= ((crystal_ieta > 0) ? (0x10000 | (crystal_ieta << 9)) : ((-crystal_ieta) << 9)) | (crystal_iphi & 0x1FF);
29  }

References DetId::id_.

◆ EBDetId() [4/5]

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

Definition at line 10 of file EBDetId.cc.

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 }

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

◆ 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) {}

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.

136  {
137  if (id.subdetId() == EcalBarrel) {
138  EBDetId ebId(id);
139  return ebId.approxEta();
140  } else {
141  return 0;
142  }
143 }

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

◆ denseIndex()

uint32_t EBDetId::denseIndex ( ) const
inline

Definition at line 84 of file EBDetId.h.

84 { return hashedIndex(); }

References hashedIndex().

Referenced by EcalTBHodoscopeGeometry::newCell().

◆ 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.

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 }

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

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

◆ distancePhi()

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

Definition at line 125 of file EBDetId.cc.

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 }

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

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

◆ 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.

49 { return zside() * ietaAbs(); }

References ietaAbs(), and zside().

Referenced by FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), JetToDigiDump::analyze(), EcalTBValidation::analyze(), DQMSourceEleCalib::analyze(), EcalEBTrigPrimAnalyzer::analyze(), DQMSourcePi0::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelDigisValidation::analyze(), EcalBarrelRecHitsValidation::analyze(), ElectronCalibration::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), HcalTB06Analysis::analyze(), TreeProducerCalibSimul::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(), PhiSymmetryCalibration_step2::endJob(), PhiSymmetryCalibration_step2_SM::endJob(), ElectronCalibrationUniv::endJob(), Pi0FixedMassWindowCalibration::endOfJob(), EcalEleCalibLooper::endOfLoop(), Pi0FixedMassWindowCalibration::endOfLoop(), ZeeCalibration::endOfLoop(), DQMSourceEleCalib::fillAroundBarrel(), AlCaElectronsTest::fillAroundBarrel(), MatrixFillMap::fillEBMap(), ECALRecHitAnalyzer::FillGeometry(), EcalBadCalibFilter::filter(), EcalRecHitsFilter::filter(), HLTEcalPhiSymFilter::filter(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), EcalTBReadout::findTTlist(), 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(), EcalGeomPhiSymHelper::setup(), EcalTools::swissCross(), switchZSide(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

◆ 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.

71 { return ietaAbs(); }

References ietaAbs().

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

◆ im()

int EBDetId::im ( ) const
inline

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

Definition at line 64 of file EBDetId.h.

64  {
65  int ii = (ietaAbs() - 26);
66  return ii < 0 ? 1 : (ii / 20 + 2);
67  }

References ietaAbs(), and cuy::ii.

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

◆ iphi()

int EBDetId::iphi ( ) const
inline

get the crystal iphi

Definition at line 51 of file EBDetId.h.

51 { return id_ & 0x1FF; }

References DetId::id_.

Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), DQMSourceEleCalib::analyze(), EcalEBTrigPrimAnalyzer::analyze(), DQMSourcePi0::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalBarrelDigisValidation::analyze(), EcalBarrelRecHitsValidation::analyze(), ElectronCalibration::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), HcalTB06Analysis::analyze(), TreeProducerCalibSimul::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(), PhiSymmetryCalibration_step2::endJob(), PhiSymmetryCalibration_step2_SM::endJob(), ElectronCalibrationUniv::endJob(), Pi0FixedMassWindowCalibration::endOfJob(), EcalEleCalibLooper::endOfLoop(), Pi0FixedMassWindowCalibration::endOfLoop(), ZeeCalibration::endOfLoop(), EcalClusterToolsT< noZS >::energyBasketFractionPhi(), HodoscopeDetId::fibrId(), DQMSourceEleCalib::fillAroundBarrel(), AlCaElectronsTest::fillAroundBarrel(), MatrixFillMap::fillEBMap(), EcalBadCalibFilter::filter(), EcalRecHitsFilter::filter(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), EcalTBReadout::findTTlist(), 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(), EcalGeomPhiSymHelper::setup(), switchZSide(), tower_iphi(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

◆ iphiSM()

int EBDetId::iphiSM ( ) const
inline

get the crystal iphi (1-20)

Definition at line 73 of file EBDetId.h.

73 { return ((ic() - 1) % kCrystalsInPhi) + 1; }

References ic(), and kCrystalsInPhi.

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

◆ ism()

int EBDetId::ism ( ) const
inline

◆ isNextToBoundary()

bool EBDetId::isNextToBoundary ( EBDetId  id)
static

Definition at line 106 of file EBDetId.cc.

106 { return isNextToEtaBoundary(id) || isNextToPhiBoundary(id); }

References isNextToEtaBoundary(), and isNextToPhiBoundary().

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

◆ isNextToEtaBoundary()

bool EBDetId::isNextToEtaBoundary ( EBDetId  id)
static

Definition at line 108 of file EBDetId.cc.

108  {
109  int ieta = id.ietaSM();
111 }

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

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

◆ isNextToPhiBoundary()

bool EBDetId::isNextToPhiBoundary ( EBDetId  id)
static

Definition at line 113 of file EBDetId.cc.

113  {
114  int iphi = id.iphiSM();
115  return iphi == 1 || iphi == 20;
116 }

References iphi().

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

◆ numberByEtaPhi()

int EBDetId::numberByEtaPhi ( ) const
inline

Definition at line 78 of file EBDetId.h.

78 { return (MAX_IETA + (positiveZ() ? ietaAbs() - 1 : -ietaAbs())) * MAX_IPHI + iphi() - 1; }

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

Referenced by hashedIndex().

◆ numberBySM()

int EBDetId::numberBySM ( ) const

Definition at line 48 of file EBDetId.cc.

48 { return (ism() - 1) * kCrystalsPerSM + ic() - 1; }

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

◆ offsetBy() [1/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.

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 }

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

◆ offsetBy() [2/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.

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 }

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

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

◆ operator=()

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

Assignment operator from cell id

Definition at line 35 of file EBDetId.h.

35  {
36  id_ = id.rawId();
37  return *this;
38  }

References DetId::id_.

◆ positiveZ()

bool EBDetId::positiveZ ( ) const
inline

◆ subdet()

static EcalSubdetector EBDetId::subdet ( )
inlinestatic

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

Definition at line 42 of file EBDetId.h.

42 { return EcalBarrel; }

References 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.

72  {
73  int newEta = ieta() * -1;
74  if (validDetId(newEta, iphi())) {
75  return EBDetId(newEta, iphi());
76  } else {
77  return EBDetId(0);
78  }
79 }

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

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

◆ switchZSide() [2/2]

DetId EBDetId::switchZSide ( const DetId  startId)
static

Definition at line 90 of file EBDetId.cc.

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 }

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

◆ 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.

53 { return ((ietaAbs() - 1) / 5 + 1) * zside(); }

References ietaAbs(), and zside().

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

◆ tower_iphi()

int EBDetId::tower_iphi ( ) const

get the HCAL/trigger iphi of this crystal

Definition at line 100 of file EBDetId.cc.

100  {
101  int iphi_simple = ((iphi() - 1) / 5) + 1;
102  iphi_simple -= 2;
103  return ((iphi_simple <= 0) ? (iphi_simple + 72) : (iphi_simple));
104 }

References iphi().

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

◆ 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.

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  }

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_DiffIOV(), fillEBMap_SingleIOV(), 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().

◆ 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.

118  {
119  return i != 0 && (std::abs(i) <= MAX_IETA) && (j >= MIN_IPHI) && (j <= MAX_IPHI);
120  }

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

Referenced by EcalPFRecHitThresholdsMaker::analyze(), EcalTBValidation::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().

◆ validHashIndex()

static bool EBDetId::validHashIndex ( int  i)
inlinestatic

Definition at line 115 of file EBDetId.h.

115 { return !(i < MIN_HASH || i > MAX_HASH); }

References MAX_HASH.

Referenced by unhashIndex().

◆ 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 EcalPFRecHitThresholdsMaker::analyze(), EcalGetLaserData::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 EcalPFRecHitThresholdsMaker::analyze(), EcalGetLaserData::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 EcalPFRecHitThresholdsMaker::analyze(), EcalGetLaserData::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().

EBDetId::kCrystalsInPhi
static const int kCrystalsInPhi
Definition: EBDetId.h:142
PI
Definition: PayloadInspector.h:21
EBDetId::hashedIndex
int hashedIndex() const
get a compact index for arrays
Definition: EBDetId.h:82
EBDetId::crystalUnitToEta
static const float crystalUnitToEta
Definition: EBDetId.h:153
EBDetId::positiveZ
bool positiveZ() const
Definition: EBDetId.h:76
EBDetId::isNextToEtaBoundary
static bool isNextToEtaBoundary(EBDetId id)
Definition: EBDetId.cc:108
EBDetId::kCrystalsPerSM
static const int kCrystalsPerSM
Definition: EBDetId.h:144
EBDetId::ieta
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49
mps_fire.i
i
Definition: mps_fire.py:428
EBDetId::Subdet
Definition: EBDetId.h:19
EBDetId::EBDetId
EBDetId()
Definition: EBDetId.h:21
PI
#define PI
Definition: QcdUeDQM.h:37
EBDetId::ic
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:41
EBDetId::kModuleBoundaries
static const int kModuleBoundaries[4]
Definition: EBDetId.h:141
EBDetId
Definition: EBDetId.h:17
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
EBDetId::unhashIndex
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.h:110
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
EcalBarrel
Definition: EcalSubdetector.h:10
EBDetId::zside
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:45
EBDetId::tower_ieta
int tower_ieta() const
get the HCAL/trigger ieta of this crystal
Definition: EBDetId.h:53
EBDetId::MAX_IPHI
static const int MAX_IPHI
Definition: EBDetId.h:137
b
double b
Definition: hdecay.h:118
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
EBDetId::ETAPHIMODE
static const int ETAPHIMODE
Definition: EBDetId.h:158
EBDetId::tower_iphi
int tower_iphi() const
get the HCAL/trigger iphi of this crystal
Definition: EBDetId.cc:100
a
double a
Definition: hdecay.h:119
cropTnPTrees.din
din
Definition: cropTnPTrees.py:30
DetId::id_
uint32_t id_
Definition: DetId.h:69
createfilelist.int
int
Definition: createfilelist.py:10
EBDetId::validHashIndex
static bool validHashIndex(int i)
Definition: EBDetId.h:115
EBDetId::MAX_HASH
static const int MAX_HASH
Definition: EBDetId.h:150
DetId::Ecal
Definition: DetId.h:27
EBDetId::validDetId
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:118
EBDetId::isNextToPhiBoundary
static bool isNextToPhiBoundary(EBDetId id)
Definition: EBDetId.cc:113
hi
Definition: EPCuts.h:4
EBDetId::numberByEtaPhi
int numberByEtaPhi() const
Definition: EBDetId.h:78
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
Exception
Definition: hltDiff.cc:245
EBDetId::ietaAbs
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:47
DetId::DetId
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38
EBDetId::kSizeForDenseIndexing
Definition: EBDetId.h:155
EBDetId::ism
int ism() const
get the ECAL/SM id
Definition: EBDetId.h:59
EBDetId::iphi
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
mps_fire.result
result
Definition: mps_fire.py:311
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
EBDetId::SMCRYSTALMODE
static const int SMCRYSTALMODE
Definition: EBDetId.h:159
cuy.ii
ii
Definition: cuy.py:590
EBDetId::MAX_IETA
static const int MAX_IETA
Definition: EBDetId.h:136
EBDetId::MIN_IPHI
static const int MIN_IPHI
Definition: EBDetId.h:135