CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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
}
 

Public Member Functions

float approxEta () const
 
uint32_t denseIndex () const
 
 EBDetId ()
 
 EBDetId (uint32_t rawid)
 
 EBDetId (int index1, int index2, int mode=ETAPHIMODE)
 
 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
Detector det () const
 get the detector field from this detid More...
 
 DetId ()
 Create an empty or null id (also for persistence) More...
 
 DetId (uint32_t id)
 Create an id from a raw number. More...
 
 DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
bool null () const
 is this a null id ? More...
 
 operator uint32_t () const
 
bool operator!= (DetId id) const
 inequality More...
 
uint32_t operator() () const
 
bool operator< (DetId id) const
 comparison More...
 
bool operator== (DetId id) const
 equality More...
 
uint32_t rawId () const
 get the raw id More...
 
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 kDetOffset = 28
 
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

Id:
EBDetId.h,v 1.27 2010/03/10 00:26:45 ferriff Exp

Definition at line 20 of file EBDetId.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Subdet 

Definition at line 22 of file EBDetId.h.

anonymous enum
Enumerator
kSizeForDenseIndexing 

Definition at line 141 of file EBDetId.h.

static const int MAX_HASH
Definition: EBDetId.h:136

Constructor & Destructor Documentation

EBDetId::EBDetId ( )
inline

Constructor of a null id

Definition at line 24 of file EBDetId.h.

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

24 {}
EBDetId::EBDetId ( uint32_t  rawid)
inline

Constructor from a raw value

Definition at line 26 of file EBDetId.h.

26 : DetId(rawid) {}
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
EBDetId::EBDetId ( int  index1,
int  index2,
int  mode = ETAPHIMODE 
)

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

Definition at line 20 of file EBDetId.cc.

References ETAPHIMODE, edm::hlt::Exception, i, DetId::id_, j, kCrystalsInPhi, SMCRYSTALMODE, and validDetId().

22 {
23  int crystal_ieta;
24  int crystal_iphi;
25  if (mode == ETAPHIMODE) {
26  crystal_ieta = index1;
27  crystal_iphi = index2;
28  } else if (mode == SMCRYSTALMODE) {
29  int SM = index1;
30  int crystal = index2;
31  int i = (int) floor((crystal-1) / kCrystalsInPhi);
32  int j = ((crystal-1) - (kCrystalsInPhi*i));
33  if (SM <= 18) {
34  crystal_ieta = i + 1;
35  crystal_iphi = ((SM-1) * kCrystalsInPhi) + (kCrystalsInPhi-j);
36  } else {
37  crystal_ieta = -(i+1);
38  crystal_iphi = ((SM-19) * kCrystalsInPhi) + j+1;
39  }
40  } else {
41  throw cms::Exception("InvalidDetId") << "EBDetId: Cannot create object. Unknown mode for (int, int) constructor.";
42  }
43 
44  if ( !validDetId(crystal_ieta, crystal_iphi) ) {
45  // std::cout << "crystal_eta " << crystal_ieta << "crystal_phi " << crystal_iphi << std::endl;
46  throw cms::Exception("InvalidDetId") << "EBDetId: Cannot create object. Indexes out of bounds \n"
47  << "eta = " << crystal_ieta << " phi = " << crystal_iphi;
48  }
49  id_|=((crystal_ieta>0)?(0x10000|(crystal_ieta<<9)):((-crystal_ieta)<<9))|(crystal_iphi&0x1FF);
50 }
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.cc:59
int i
Definition: DBlmapReader.cc:9
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
static const int kCrystalsInPhi
Definition: EBDetId.h:128
int j
Definition: DBlmapReader.cc:9
static const int ETAPHIMODE
Definition: EBDetId.h:145
uint32_t id_
Definition: DetId.h:57
static const int SMCRYSTALMODE
Definition: EBDetId.h:146
EBDetId::EBDetId ( const DetId id)

Constructor from a generic cell id

Definition at line 52 of file EBDetId.cc.

References DetId::det(), DetId::Ecal, EcalBarrel, edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().

52  {
53  if (!gen.null() && ( gen.det()!=Ecal || gen.subdetId()!=EcalBarrel )) {
54  throw cms::Exception("InvalidDetId");
55  }
56  id_=gen.rawId();
57 }
uint32_t id_
Definition: DetId.h:57

Member Function Documentation

float EBDetId::approxEta ( ) const
inline

return an approximate values of eta (~0.15% precise)

Definition at line 93 of file EBDetId.h.

References crystalUnitToEta, and ieta().

Referenced by approxEta(), and EcalTools::recHitApproxEt().

93 { return ieta() * crystalUnitToEta; }
static const float crystalUnitToEta
Definition: EBDetId.h:139
int ieta() const
get the crystal ieta
Definition: EBDetId.h:44
float EBDetId::approxEta ( const DetId  id)
static

Definition at line 201 of file EBDetId.cc.

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

201  {
202  if( id.subdetId() == EcalBarrel ) {
203  EBDetId ebId( id );
204  return ebId.approxEta();
205  } else {
206  return 0;
207  }
208 }
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
uint32_t EBDetId::denseIndex ( ) const
inline

Definition at line 75 of file EBDetId.h.

References hashedIndex().

Referenced by EcalDQMBinningService::findBinsCrystal_().

75 { return hashedIndex() ; }
int hashedIndex() const
get a compact index for arrays
Definition: EBDetId.h:73
static EBDetId EBDetId::detIdFromDenseIndex ( uint32_t  di)
inlinestatic

Definition at line 98 of file EBDetId.h.

References unhashIndex().

Referenced by CaloGenericDetId::CaloGenericDetId(), EBHitResponse::EBHitResponse(), EcalTPSkimmer::produce(), and EBHitResponse::run().

98 { return unhashIndex( di ) ; }
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.cc:12
int EBDetId::distanceEta ( const EBDetId a,
const EBDetId b 
)
static

Definition at line 185 of file EBDetId.cc.

References abs, and ieta().

Referenced by EcalClusterSeverityLevelAlgo::closestProblematic(), EcalClusterSeverityLevelAlgo::etaphiDistanceClosestProblematic(), ggPFClusters::Fill5x5Map(), and PFPhotonClusters::FillClusterShape().

186 {
187  if (a.ieta() * b.ieta() > 0)
188  return abs(a.ieta()-b.ieta());
189  else
190  return abs(a.ieta()-b.ieta())-1;
191 }
#define abs(x)
Definition: mlp_lapack.h:159
int ieta() const
get the crystal ieta
Definition: EBDetId.h:44
int EBDetId::distancePhi ( const EBDetId a,
const EBDetId b 
)
static

Definition at line 193 of file EBDetId.cc.

References abs, and iphi().

Referenced by EcalClusterSeverityLevelAlgo::closestProblematic(), EcalClusterSeverityLevelAlgo::etaphiDistanceClosestProblematic(), ggPFClusters::Fill5x5Map(), and PFPhotonClusters::FillClusterShape().

194 {
195  if (abs(a.iphi() -b.iphi()) > 180)
196  return abs(a.iphi() - b.iphi()) - 180;
197  else
198  return abs(a.iphi()-b.iphi());
199 }
#define abs(x)
Definition: mlp_lapack.h:159
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
int EBDetId::hashedIndex ( ) const
inline
int EBDetId::ic ( ) const

get ECAL/crystal number inside SM

Definition at line 94 of file EBDetId.cc.

References ietaAbs(), iphi(), kCrystalsInPhi, and zside().

Referenced by EBCosmicTask::analyze(), EBLaserTask::analyze(), EBOccupancyTask::analyze(), EBPedestalOnlineTask::analyze(), EBPedestalTask::analyze(), EcalBarrelMonitorModule::analyze(), EBTestPulseTask::analyze(), EBIntegrityTask::analyze(), EBTimingTask::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalURecHitHists::analyze(), TreeProducerCalibSimul::analyze(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), EcalTBEventHeader::crystalInBeam(), EcalTBReadout::findTTlist(), iphiSM(), popcon::EcalChannelStatusHandler::laserAnalysis(), EcalTBEventHeader::nextCrystalInBeam(), EcalTBEventHeader::nominalCrystalInBeam(), numberBySM(), popcon::EcalChannelStatusHandler::pedAnalysis(), EcalPedOffset::readDACs(), EcalPedHists::readEBdigis(), and EcalUncalibRecHitWorkerFixedAlphaBetaFit::run().

94  {
95  int ie = ietaAbs() -1;
96  int ip;
97  if (zside() < 0) {
98  ip = (( iphi() -1 ) % kCrystalsInPhi ) + 1;
99  } else {
100  ip = kCrystalsInPhi - ((iphi() -1 ) % kCrystalsInPhi );
101  }
102 
103  return (ie * kCrystalsInPhi) + ip;
104 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
static const int kCrystalsInPhi
Definition: EBDetId.h:128
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:42
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:40
int EBDetId::ieta ( ) const
inline

get the crystal ieta

Definition at line 44 of file EBDetId.h.

References ietaAbs(), and zside().

Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), EBOccupancyTask::analyze(), EBClusterTask::analyze(), EBClusterTaskExtras::analyze(), DQMSourceEleCalib::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelDigisValidation::analyze(), EcalBarrelRecHitsValidation::analyze(), EBRecoSummary::analyze(), HLTAlCaMonPi0::analyze(), DQMSourcePi0::analyze(), PhiSymmetryCalibration::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), TreeProducerCalibSimul::analyze(), HLTAlCa::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), approxEta(), HLTEcalResonanceFilter::calcShowerShape(), EcalHaloAlgo::Calculate(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalDQMBinningService::channelName(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), EcalDeadChannelRecoveryAlgos::correct(), EcalGlobalShowerContainmentCorrectionsVsEta::correction(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), EBSelectiveReadoutTask::dccNum(), distanceEta(), 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(), ggPFClusters::Fill5x5Map(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEBMap(), FastL1Region::FillEMCrystals(), ECALRecHitAnalyzer::FillGeometry(), EcalRecHitsFilter::filter(), EcalDQMBinningService::findBinsProjEta_(), TrackDetMatchInfo::findMaxDeposition(), EcalTBReadout::findTTlist(), CalibrationCluster::get3x3Id(), CalibrationCluster::get5x5Id(), EcalBarrelGeometry::getClosestCell(), EcalClusterTools::getIEta(), PhotonMIPHaloTagger::GetMipTrailFit(), EcalRingCalibrationTools::getRingIndex(), PhotonMIPHaloTagger::GetSeedHighestE(), EcalClusterTools::getSeedPosition(), EcalClusterLocalContCorrection::getValue(), EcalBasicClusterLocalContCorrection::getValue(), EcalClusterCrackCorrection::getValue(), ecalpyutils::hashedIndexToEtaPhi(), DetIdInfo::info(), fireworks::info(), isNextToEtaBoundary(), EcalClusterLocal::localCoordsEB(), ggPFClusters::localCoordsEB(), EcalDisplaysByEvent::makeHistos(), EcalDeadChannelRecoveryAlgos::MakeNxNMatrice(), PiZeroAnalyzer::makePizero(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EBDetIdSorter::operator()(), PFPhotonClusters::PFCrystalCoor(), EcalShowerProperties::processEcalRecHits(), AlCaIsoTracksProducer::produce(), AlCaECALRecHitReducer::produce(), ecaldqm::LaserTask::runOnUncalibRecHits(), EcalGeomPhiSymHelper::setup(), EcalTools::swissCross(), switchZSide(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

44 { return zside()*ietaAbs(); }
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:42
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:40
int EBDetId::ietaAbs ( ) const
inline
int EBDetId::ietaSM ( ) const
inline

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

Definition at line 60 of file EBDetId.h.

References ietaAbs().

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

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

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

Definition at line 85 of file EBDetId.cc.

References i, ietaAbs(), and kModuleBoundaries.

Referenced by CaloGeometryHelper::borderCrossing(), EcalClusterTools::energyBasketFractionEta(), and EcalRingCalibrationTools::getModuleIndex().

85  {
86  for (int i=0; i < 4 ; i++)
87  if ( ietaAbs() <= kModuleBoundaries[i] )
88  return i+1;
89  //Shold never be reached!
90  return -1;
91 }
int i
Definition: DBlmapReader.cc:9
static const int kModuleBoundaries[4]
Definition: EBDetId.h:127
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:42
int EBDetId::iphi ( ) const
inline

get the crystal iphi

Definition at line 46 of file EBDetId.h.

References DetId::id_.

Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), EBClusterTask::analyze(), EBClusterTaskExtras::analyze(), DQMSourceEleCalib::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalBarrelDigisValidation::analyze(), HLTAlCaMonPi0::analyze(), DQMSourcePi0::analyze(), PhiSymmetryCalibration::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), TreeProducerCalibSimul::analyze(), HLTAlCa::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), HLTEcalResonanceFilter::calcShowerShape(), EcalHaloAlgo::Calculate(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalDQMBinningService::channelName(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), EBSelectiveReadoutTask::dccNum(), distancePhi(), 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(), EcalClusterTools::energyBasketFractionPhi(), ggPFClusters::Fill5x5Map(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEBMap(), FastL1Region::FillEMCrystals(), EcalRecHitsFilter::filter(), EcalDQMBinningService::findBinsProjPhi_(), TrackDetMatchInfo::findMaxDeposition(), EcalTBReadout::findTTlist(), CalibrationCluster::get3x3Id(), CalibrationCluster::get5x5Id(), EcalBarrelGeometry::getClosestCell(), EcalElectronicsMapping::getElectronicsId(), EcalClusterTools::getIPhi(), PhotonMIPHaloTagger::GetMipTrailFit(), PhotonMIPHaloTagger::GetSeedHighestE(), EcalClusterLocalContCorrection::getValue(), EcalBasicClusterLocalContCorrection::getValue(), EcalClusterCrackCorrection::getValue(), ecalpyutils::hashedIndexToEtaPhi(), ic(), DetIdInfo::info(), fireworks::info(), ism(), isNextToPhiBoundary(), EcalClusterLocal::localCoordsEB(), ggPFClusters::localCoordsEB(), EcalDisplaysByEvent::makeHistos(), EcalDeadChannelRecoveryAlgos::MakeNxNMatrice(), PiZeroAnalyzer::makePizero(), numberByEtaPhi(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EBDetIdSorter::operator()(), PFPhotonClusters::PFCrystalCoor(), EcalShowerProperties::processEcalRecHits(), AlCaIsoTracksProducer::produce(), AlCaECALRecHitReducer::produce(), ecaldqm::LaserTask::runOnUncalibRecHits(), EcalGeomPhiSymHelper::setup(), switchZSide(), tower_iphi(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

46 { return id_&0x1FF; }
uint32_t id_
Definition: DetId.h:57
int EBDetId::iphiSM ( ) const
inline

get the crystal iphi (1-20)

Definition at line 62 of file EBDetId.h.

References ic(), and kCrystalsInPhi.

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

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

get the ECAL/SM id

Definition at line 79 of file EBDetId.cc.

References errorMatrix2Lands_multiChannel::id, iphi(), kCrystalsInPhi, and zside().

Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcnaAnalyzer::analyze(), CaloGeometryHelper::borderCrossing(), EcalRingCalibrationTools::getModuleIndex(), ecalpyutils::ism(), numberBySM(), and EcalUncalibRecHitWorkerFixedAlphaBetaFit::run().

79  {
80  int id = ( iphi() - 1 ) / kCrystalsInPhi + 1;
81  if ( zside() < 0 ) id += 18;
82  return id;
83 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
static const int kCrystalsInPhi
Definition: EBDetId.h:128
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:40
bool EBDetId::isNextToBoundary ( EBDetId  id)
static

Definition at line 171 of file EBDetId.cc.

References isNextToEtaBoundary(), and isNextToPhiBoundary().

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

171  {
172  return isNextToEtaBoundary( id ) || isNextToPhiBoundary( id );
173 }
static bool isNextToEtaBoundary(EBDetId id)
Definition: EBDetId.cc:175
static bool isNextToPhiBoundary(EBDetId id)
Definition: EBDetId.cc:180
bool EBDetId::isNextToEtaBoundary ( EBDetId  id)
static

Definition at line 175 of file EBDetId.cc.

References ieta(), and kModuleBoundaries.

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

175  {
176  int ieta = id.ietaSM();
177  return ieta == 1 || std::binary_search( kModuleBoundaries, kModuleBoundaries + 4, ieta ) || ieta == 85;
178 }
static const int kModuleBoundaries[4]
Definition: EBDetId.h:127
int ieta() const
get the crystal ieta
Definition: EBDetId.h:44
bool EBDetId::isNextToPhiBoundary ( EBDetId  id)
static

Definition at line 180 of file EBDetId.cc.

References iphi().

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

180  {
181  int iphi = id.iphiSM();
182  return iphi == 1 || iphi == 20;
183 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
int EBDetId::numberByEtaPhi ( ) const
inline

Definition at line 67 of file EBDetId.h.

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

Referenced by hashedIndex().

67  {
68  return (MAX_IETA + (positiveZ() ? ietaAbs()-1 : -ietaAbs()) )*MAX_IPHI+ iphi()-1;
69  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
bool positiveZ() const
Definition: EBDetId.h:65
static const int MAX_IPHI
Definition: EBDetId.h:123
static const int MAX_IETA
Definition: EBDetId.h:122
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:42
int EBDetId::numberBySM ( ) const

Definition at line 107 of file EBDetId.cc.

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

107  {
108  return (ism()-1) * kCrystalsPerSM + ic() -1;
109 }
static const int kCrystalsPerSM
Definition: EBDetId.h:130
int ism() const
get the ECAL/SM id
Definition: EBDetId.cc:79
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:94
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 111 of file EBDetId.cc.

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

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

112 {
113  int newEta = ieta()+nrStepsEta;
114  if( newEta*ieta() <= 0 ) {
115  if( ieta() < 0 ) {
116  newEta++;
117  } else if ( ieta() > 0 ) {
118  newEta--;
119  }
120  }
121  int newPhi = iphi() + nrStepsPhi;
122  while ( newPhi>360 ) newPhi -= 360;
123  while ( newPhi<=0 ) newPhi += 360;
124 
125  if( validDetId( newEta, newPhi ) ) {
126  return EBDetId( newEta, newPhi);
127  } else {
128  return EBDetId(0);
129  }
130 }
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.cc:59
EBDetId()
Definition: EBDetId.h:24
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
int ieta() const
get the crystal ieta
Definition: EBDetId.h:44
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 143 of file EBDetId.cc.

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

144 {
145  if( startId.det() == DetId::Ecal && startId.subdetId() == EcalBarrel ) {
146  EBDetId ebStartId(startId);
147  return ebStartId.offsetBy( nrStepsEta, nrStepsPhi ).rawId();
148  } else {
149  return DetId(0);
150  }
151 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
EBDetId & EBDetId::operator= ( const DetId id)

Assignment operator from cell id

Definition at line 70 of file EBDetId.cc.

References DetId::det(), DetId::Ecal, EcalBarrel, edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().

70  {
71  if (!gen.null() && ( gen.det()!=Ecal || gen.subdetId()!=EcalBarrel )) {
72  throw cms::Exception("InvalidDetId");
73  }
74  id_=gen.rawId();
75  return *this;
76 }
uint32_t id_
Definition: DetId.h:57
bool EBDetId::positiveZ ( ) const
inline

Definition at line 65 of file EBDetId.h.

References DetId::id_.

Referenced by EcalClusterTools::energyBasketFractionEta(), EcalClusterTools::energyBasketFractionPhi(), and numberByEtaPhi().

65 { return id_&0x10000;}
uint32_t id_
Definition: DetId.h:57
static EcalSubdetector EBDetId::subdet ( )
inlinestatic

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

Definition at line 37 of file EBDetId.h.

References EcalBarrel.

37 { return EcalBarrel;}
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 132 of file EBDetId.cc.

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

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

133 {
134  int newEta = ieta()*-1;
135  if( validDetId( newEta, iphi() ) ) {
136  return EBDetId( newEta, iphi() );
137  } else {
138  return EBDetId(0);
139  }
140 }
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.cc:59
EBDetId()
Definition: EBDetId.h:24
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
int ieta() const
get the crystal ieta
Definition: EBDetId.h:44
DetId EBDetId::switchZSide ( const DetId  startId)
static

Definition at line 153 of file EBDetId.cc.

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

154 {
155  if( startId.det() == DetId::Ecal && startId.subdetId() == EcalBarrel ) {
156  EBDetId ebStartId(startId);
157  return ebStartId.switchZSide().rawId();
158  } else {
159  return DetId(0);
160  }
161 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
EcalTrigTowerDetId EBDetId::tower ( ) const
inline

get the HCAL/trigger iphi of this crystal

Definition at line 52 of file EBDetId.h.

References abs, EcalBarrel, tower_ieta(), tower_iphi(), and zside().

Referenced by testEcalTPGScale::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalRecHitsValidation::analyze(), ecaldqm::DQWorkerClient::fillQuality_(), EcalElectronicsMapping::getElectronicsId(), EcalDetIdToBeRecoveredProducer::produce(), EBSelectiveReadoutTask::readOutUnitOf(), ecaldqm::towerId(), EcalTrigTowerConstituentsMap::towerOf(), and ecaldqm::ttId().

int tower_ieta() const
get the HCAL/trigger ieta of this crystal
Definition: EBDetId.h:48
int tower_iphi() const
get the HCAL/trigger iphi of this crystal
Definition: EBDetId.cc:164
#define abs(x)
Definition: mlp_lapack.h:159
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:40
int EBDetId::tower_ieta ( ) const
inline

get the HCAL/trigger ieta of this crystal

Definition at line 48 of file EBDetId.h.

References ietaAbs(), and zside().

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

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

get the HCAL/trigger iphi of this crystal

Definition at line 164 of file EBDetId.cc.

References iphi().

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

164  {
165  int iphi_simple=((iphi()-1)/5)+1;
166  iphi_simple-=2;
167  return ((iphi_simple<=0)?(iphi_simple+72):(iphi_simple));
168 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
EBDetId EBDetId::unhashIndex ( int  hi)
static
static bool EBDetId::validDenseIndex ( uint32_t  din)
inlinestatic

Definition at line 96 of file EBDetId.h.

References kSizeForDenseIndexing.

Referenced by EcalTPSkimmer::produce().

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

check if a valid index combination

Definition at line 59 of file EBDetId.cc.

References MAX_IETA, MAX_IPHI, and TrackValidation_HighPurity_cff::valid.

Referenced by EcalTBValidation::analyze(), EBCosmicTask::analyze(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), EcalBarrelTopology::decrementIeta(), EcalBarrelTopology::decrementIphi(), EBDetId(), ZeeCalibration::endOfJob(), spr::extraIds(), MatrixFillMap::fillEBMap(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalBarrelTopology::incrementIeta(), EcalBarrelTopology::incrementIphi(), offsetBy(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), switchZSide(), and CaloGenericDetId::validDetId().

59  {
60 
61  bool valid = true;
62  if (i < -MAX_IETA || i == 0 || i > MAX_IETA ||
63  j < MIN_IPHI || j > MAX_IPHI) {
64  valid = false;
65  }
66  return valid;
67 
68 }
static const int MAX_IPHI
Definition: EBDetId.h:123
static const int MAX_IETA
Definition: EBDetId.h:122
static bool EBDetId::validHashIndex ( int  i)
inlinestatic

Definition at line 103 of file EBDetId.h.

References MAX_HASH.

Referenced by unhashIndex().

103 { return !(i<MIN_HASH || i>MAX_HASH); }
static const int MAX_HASH
Definition: EBDetId.h:136
int EBDetId::zside ( ) const
inline

Member Data Documentation

const float EBDetId::crystalUnitToEta = 0.017453292519943295
static

Definition at line 139 of file EBDetId.h.

Referenced by approxEta().

const int EBDetId::ETAPHIMODE = 0
static
const int EBDetId::kChannelsPerCard = 5
static

Definition at line 124 of file EBDetId.h.

const int EBDetId::kCrystalsInEta = 85
static

Definition at line 129 of file EBDetId.h.

const int EBDetId::kCrystalsInPhi = 20
static

Definition at line 128 of file EBDetId.h.

Referenced by EBDetId(), EcalClusterTools::energyBasketFractionPhi(), ic(), iphiSM(), and ism().

const int EBDetId::kCrystalsPerSM = 1700
static

Definition at line 130 of file EBDetId.h.

Referenced by Numbers::indexEB(), and numberBySM().

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

Definition at line 127 of file EBDetId.h.

Referenced by im(), and isNextToEtaBoundary().

const int EBDetId::kModulesPerSM = 4
static
const int EBDetId::kTowersInPhi = 4
static

Definition at line 125 of file EBDetId.h.

Referenced by EcalClusterTools::energyBasketFractionPhi().

const int EBDetId::MAX_C = kCrystalsPerSM
static

Definition at line 134 of file EBDetId.h.

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

Definition at line 122 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), CaloTowerConstituentsMap::constituentsOf(), EcalBarrelHardcodedTopology::decrementIeta(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalTBWeights(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalBarrelGeometry::getCells(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalRingCalibrationTools::getDetIdsInECAL(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalBarrelHardcodedTopology::incrementIeta(), numberByEtaPhi(), cond::PayLoadInspector< DataT >::plot(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), spr::simpleMove(), PFRecHitProducerECAL::stdsimplemove(), cond::PayLoadInspector< DataT >::summary(), unhashIndex(), and validDetId().

const int EBDetId::MAX_IPHI = 360
static

Definition at line 123 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalBarrelHardcodedTopology::decrementIphi(), EcalBarrelTopology::decrementIphi(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalClusterTools::energyBasketFractionPhi(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalBarrelGeometry::getCells(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalBarrelGeometry::getClosestCell(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), EcalBarrelHardcodedTopology::incrementIphi(), EcalBarrelTopology::incrementIphi(), numberByEtaPhi(), cond::PayLoadInspector< DataT >::plot(), CaloMiscalibMapEcal::prefillMap(), CaloMiscalibMapEcal::print(), EcalTrivialConditionRetriever::produceEcalChannelStatus(), EcalTrivialConditionRetriever::produceEcalDQMChannelStatus(), EcalTrivialConditionRetriever::produceEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalIntercalibConstants(), EcalTrivialConditionRetriever::produceEcalIntercalibConstantsMC(), EcalTrivialConditionRetriever::produceEcalIntercalibErrors(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), cond::PayLoadInspector< DataT >::summary(), unhashIndex(), and validDetId().

const int EBDetId::MAX_SM = 36
static
const int EBDetId::MIN_C = 1
static

Definition at line 133 of file EBDetId.h.

const int EBDetId::MIN_HASH = 0
static
const int EBDetId::MIN_IETA = 1
static

range constants

Definition at line 120 of file EBDetId.h.

const int EBDetId::MIN_IPHI = 1
static

Definition at line 121 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalBarrelHardcodedTopology::decrementIphi(), EcalBarrelTopology::decrementIphi(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalBarrelGeometry::getClosestCell(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), 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::produceEcalPedestals(), EcalTrivialConditionRetriever::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), and StoreEcalCondition::readEcalChannelStatusFromFile().

const int EBDetId::MIN_SM = 1
static
const int EBDetId::SMCRYSTALMODE = 1
static

Definition at line 146 of file EBDetId.h.

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