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 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
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.29 2012/11/02 13:07:52 innocent 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 163 of file EBDetId.h.

static const int MAX_HASH
Definition: EBDetId.h:158

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  crystal_ieta,
int  crystal_iphi 
)
inline

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

Definition at line 30 of file EBDetId.h.

References DetId::id_.

30  : DetId(Ecal,EcalBarrel) {
31  id_|=((crystal_ieta>0)?(0x10000|(crystal_ieta<<9)):((-crystal_ieta)<<9))|(crystal_iphi&0x1FF);
32  }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
uint32_t id_
Definition: DetId.h:57
EBDetId::EBDetId ( int  index1,
int  index2,
int  mode 
)

Definition at line 11 of file EBDetId.cc.

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

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

Constructor from a generic cell id

Definition at line 36 of file EBDetId.h.

36 : DetId(id){}
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28

Member Function Documentation

float EBDetId::approxEta ( ) const
inline

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

Definition at line 107 of file EBDetId.h.

References crystalUnitToEta, and ieta().

Referenced by approxEta(), EnergyResolutionVsLumi::calcmuTot(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalTrivialConditionRetriever::produceEcalLaserAPDPNRatios(), EcalTrivialConditionRetriever::produceEcalPedestals(), and EcalTools::recHitApproxEt().

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

Definition at line 153 of file EBDetId.cc.

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

153  {
154  if( id.subdetId() == EcalBarrel ) {
155  EBDetId ebId( id );
156  return ebId.approxEta();
157  } else {
158  return 0;
159  }
160 }
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 89 of file EBDetId.h.

References hashedIndex().

Referenced by EcalDQMBinningService::findBinsCrystal_().

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

Definition at line 112 of file EBDetId.h.

References unhashIndex().

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

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

Definition at line 135 of file EBDetId.cc.

References abs, and ieta().

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

136 {
137  if (a.ieta() * b.ieta() > 0)
138  return abs(a.ieta()-b.ieta());
139  else
140  return abs(a.ieta()-b.ieta())-1;
141 }
#define abs(x)
Definition: mlp_lapack.h:159
int ieta() const
get the crystal ieta
Definition: EBDetId.h:52
int EBDetId::distancePhi ( const EBDetId a,
const EBDetId b 
)
static

Definition at line 143 of file EBDetId.cc.

References abs, iphi(), PI, and query::result.

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

143  {
144  int PI = 180;
145  int result = a.iphi() - b.iphi();
146 
147  while (result > PI) result -= 2*PI;
148  while (result <= -PI) result += 2*PI;
149  return abs(result);
150 
151 }
#define PI
#define abs(x)
Definition: mlp_lapack.h:159
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
tuple result
Definition: query.py:137
int EBDetId::hashedIndex ( ) const
inline
int EBDetId::ic ( ) const

get ECAL/crystal number inside SM

Definition at line 46 of file EBDetId.cc.

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

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().

46  {
47  int ie = ietaAbs() -1;
48  return (ie * kCrystalsInPhi)
49  + ( positiveZ() ?
50  ( kCrystalsInPhi - ( (iphi() -1 ) % kCrystalsInPhi ) )
51  : ( ( iphi() -1 ) % kCrystalsInPhi + 1)
52  );
53 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
static const int kCrystalsInPhi
Definition: EBDetId.h:150
bool positiveZ() const
Definition: EBDetId.h:79
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:50
int EBDetId::ieta ( ) const
inline

get the crystal ieta

Definition at line 52 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(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), 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(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEBMap(), FastL1Region::FillEMCrystals(), ECALRecHitAnalyzer::FillGeometry(), EcalRecHitsFilter::filter(), EcalDQMBinningService::findBinsProjEta_(), TrackDetMatchInfo::findMaxDeposition(), EcalTBReadout::findTTlist(), CalibrationCluster::get3x3Id(), CalibrationCluster::get5x5Id(), 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(), 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().

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

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

Definition at line 74 of file EBDetId.h.

References ietaAbs().

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

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

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

Definition at line 67 of file EBDetId.h.

References ietaAbs(), and cuy::ii.

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

67  {
68  int ii = (ietaAbs()-26);
69  return ii<0 ? 1 : (ii/20 +2);
70  }
int ii
Definition: cuy.py:588
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:50
int EBDetId::iphi ( ) const
inline

get the crystal iphi

Definition at line 54 of file EBDetId.h.

References DetId::id_.

Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), EBClusterTask::analyze(), EBClusterTaskExtras::analyze(), DQMSourceEleCalib::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelDigisValidation::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalBarrelRecHitsValidation::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(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEBMap(), FastL1Region::FillEMCrystals(), EcalRecHitsFilter::filter(), EcalDQMBinningService::findBinsProjPhi_(), TrackDetMatchInfo::findMaxDeposition(), EcalTBReadout::findTTlist(), CalibrationCluster::get3x3Id(), CalibrationCluster::get5x5Id(), 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(), 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().

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

get the crystal iphi (1-20)

Definition at line 76 of file EBDetId.h.

References ic(), and kCrystalsInPhi.

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

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

get the ECAL/SM id

Definition at line 62 of file EBDetId.h.

References iphi(), kCrystalsInPhi, and positiveZ().

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

62  {
63  int id = ( iphi() - 1 ) / kCrystalsInPhi + 1;
64  return positiveZ() ? id : id+18;
65  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
static const int kCrystalsInPhi
Definition: EBDetId.h:150
bool positiveZ() const
Definition: EBDetId.h:79
bool EBDetId::isNextToBoundary ( EBDetId  id)
static

Definition at line 121 of file EBDetId.cc.

References isNextToEtaBoundary(), and isNextToPhiBoundary().

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

121  {
122  return isNextToEtaBoundary( id ) || isNextToPhiBoundary( id );
123 }
static bool isNextToEtaBoundary(EBDetId id)
Definition: EBDetId.cc:125
static bool isNextToPhiBoundary(EBDetId id)
Definition: EBDetId.cc:130
bool EBDetId::isNextToEtaBoundary ( EBDetId  id)
static

Definition at line 125 of file EBDetId.cc.

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

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

125  {
126  int ieta = id.ietaSM();
127  return ieta == 1 || (kModuleBoundaries + 4)!=std::find( kModuleBoundaries, kModuleBoundaries + 4, ieta );
128 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
static const int kModuleBoundaries[4]
Definition: EBDetId.h:149
int ieta() const
get the crystal ieta
Definition: EBDetId.h:52
bool EBDetId::isNextToPhiBoundary ( EBDetId  id)
static

Definition at line 130 of file EBDetId.cc.

References iphi().

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

130  {
131  int iphi = id.iphiSM();
132  return iphi == 1 || iphi == 20;
133 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
int EBDetId::numberByEtaPhi ( ) const
inline

Definition at line 81 of file EBDetId.h.

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

Referenced by hashedIndex().

81  {
82  return (MAX_IETA + (positiveZ() ? ietaAbs()-1 : -ietaAbs()) )*MAX_IPHI+ iphi()-1;
83  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
bool positiveZ() const
Definition: EBDetId.h:79
static const int MAX_IPHI
Definition: EBDetId.h:145
static const int MAX_IETA
Definition: EBDetId.h:144
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:50
int EBDetId::numberBySM ( ) const

Definition at line 57 of file EBDetId.cc.

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

57  {
58  return (ism()-1) * kCrystalsPerSM + ic() -1;
59 }
static const int kCrystalsPerSM
Definition: EBDetId.h:152
int ism() const
get the ECAL/SM id
Definition: EBDetId.h:62
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:46
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 61 of file EBDetId.cc.

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

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

62 {
63  int newEta = ieta()+nrStepsEta;
64  if( newEta*ieta() <= 0 ) {
65  if( ieta() < 0 ) {
66  newEta++;
67  } else if ( ieta() > 0 ) {
68  newEta--;
69  }
70  }
71  int newPhi = iphi() + nrStepsPhi;
72  while ( newPhi>360 ) newPhi -= 360;
73  while ( newPhi<=0 ) newPhi += 360;
74 
75  if( validDetId( newEta, newPhi ) ) {
76  return EBDetId( newEta, newPhi);
77  } else {
78  return EBDetId(0);
79  }
80 }
EBDetId()
Definition: EBDetId.h:24
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:125
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
int ieta() const
get the crystal ieta
Definition: EBDetId.h:52
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 93 of file EBDetId.cc.

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

94 {
95  if( startId.det() == DetId::Ecal && startId.subdetId() == EcalBarrel ) {
96  EBDetId ebStartId(startId);
97  return ebStartId.offsetBy( nrStepsEta, nrStepsPhi ).rawId();
98  } else {
99  return DetId(0);
100  }
101 }
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)
inline

Assignment operator from cell id

Definition at line 38 of file EBDetId.h.

References DetId::id_.

38  {
39  id_=id.rawId();
40  return *this;
41  }
uint32_t id_
Definition: DetId.h:57
bool EBDetId::positiveZ ( ) const
inline

Definition at line 79 of file EBDetId.h.

References DetId::id_.

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

79 { 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 45 of file EBDetId.h.

References EcalBarrel.

45 { 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 82 of file EBDetId.cc.

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

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

83 {
84  int newEta = ieta()*-1;
85  if( validDetId( newEta, iphi() ) ) {
86  return EBDetId( newEta, iphi() );
87  } else {
88  return EBDetId(0);
89  }
90 }
EBDetId()
Definition: EBDetId.h:24
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:125
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
int ieta() const
get the crystal ieta
Definition: EBDetId.h:52
DetId EBDetId::switchZSide ( const DetId  startId)
static

Definition at line 103 of file EBDetId.cc.

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

104 {
105  if( startId.det() == DetId::Ecal && startId.subdetId() == EcalBarrel ) {
106  EBDetId ebStartId(startId);
107  return ebStartId.switchZSide().rawId();
108  } else {
109  return DetId(0);
110  }
111 }
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 60 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:56
int tower_iphi() const
get the HCAL/trigger iphi of this crystal
Definition: EBDetId.cc:114
#define abs(x)
Definition: mlp_lapack.h:159
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:48
int EBDetId::tower_ieta ( ) const
inline

get the HCAL/trigger ieta of this crystal

Definition at line 56 of file EBDetId.h.

References ietaAbs(), and zside().

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

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

get the HCAL/trigger iphi of this crystal

Definition at line 114 of file EBDetId.cc.

References iphi().

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

114  {
115  int iphi_simple=((iphi()-1)/5)+1;
116  iphi_simple-=2;
117  return ((iphi_simple<=0)?(iphi_simple+72):(iphi_simple));
118 }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:54
static EBDetId EBDetId::unhashIndex ( int  hi)
inlinestatic

get a DetId from a compact index for arrays

Definition at line 115 of file EBDetId.h.

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

Referenced by detIdFromDenseIndex(), popcon::EcalLaserHandler::dumpBarrelPayload(), EcalPedestalsXMLTranslator::dumpXML(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalEleCalibLooper::EBRegionDefinition(), EcalEleCalibLooper::EcalEleCalibLooper(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), popcon::EcalLaser_weekly_Handler::getNewObjects(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), ecalpyutils::hashedIndexToEtaPhi(), CalorimetryManager::loadFromEcalBarrel(), main(), popcon::EcalLaserHandler::notifyProblems(), printStatusRecords(), EcalBarrelRecHitsMaker::randomNoisifier(), StoreEcalCondition::readEcalChannelStatusFromFile(), and EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile().

115  {
116  const int pseudo_eta = hi/MAX_IPHI - MAX_IETA;
117  return ( validHashIndex( hi ) ?
118  EBDetId(pseudo_eta<0 ? pseudo_eta : pseudo_eta+1, hi%MAX_IPHI+1) :
119  EBDetId() ) ;
120  }
EBDetId()
Definition: EBDetId.h:24
static const int MAX_IPHI
Definition: EBDetId.h:145
static const int MAX_IETA
Definition: EBDetId.h:144
static bool validHashIndex(int i)
Definition: EBDetId.h:122
static bool EBDetId::validDenseIndex ( uint32_t  din)
inlinestatic

Definition at line 110 of file EBDetId.h.

References kSizeForDenseIndexing.

Referenced by EcalTPSkimmer::produce().

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

check if a valid index combination

Definition at line 125 of file EBDetId.h.

References abs, MAX_IETA, MAX_IPHI, and MIN_IPHI.

Referenced by EcalTBValidation::analyze(), EBCosmicTask::analyze(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), EBDetId(), ZeeCalibration::endOfJob(), spr::extraIds(), MatrixFillMap::fillEBMap(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), offsetBy(), 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::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), switchZSide(), and CaloGenericDetId::validDetId().

125  {
126  return i!=0 && (std::abs(i) <= MAX_IETA)
127  && (j>=MIN_IPHI) && (j <= MAX_IPHI);
128  }
int i
Definition: DBlmapReader.cc:9
static const int MIN_IPHI
Definition: EBDetId.h:143
#define abs(x)
Definition: mlp_lapack.h:159
int j
Definition: DBlmapReader.cc:9
static const int MAX_IPHI
Definition: EBDetId.h:145
static const int MAX_IETA
Definition: EBDetId.h:144
static bool EBDetId::validHashIndex ( int  i)
inlinestatic

Definition at line 122 of file EBDetId.h.

References MAX_HASH.

Referenced by unhashIndex().

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

Member Data Documentation

const float EBDetId::crystalUnitToEta = 0.017453292519943295
static

Definition at line 161 of file EBDetId.h.

Referenced by approxEta().

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

Definition at line 146 of file EBDetId.h.

const int EBDetId::kCrystalsInEta = 85
static

Definition at line 151 of file EBDetId.h.

const int EBDetId::kCrystalsInPhi = 20
static

Definition at line 150 of file EBDetId.h.

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

const int EBDetId::kCrystalsPerSM = 1700
static

Definition at line 152 of file EBDetId.h.

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

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

Definition at line 149 of file EBDetId.h.

Referenced by isNextToEtaBoundary().

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

Definition at line 147 of file EBDetId.h.

Referenced by EcalClusterTools::energyBasketFractionPhi().

const int EBDetId::MAX_C = kCrystalsPerSM
static

Definition at line 156 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 144 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), EnergyResolutionVsLumi::calcmuTot(), CaloTowerConstituentsMap::constituentsOf(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalTBWeights(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), 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::produceEcalLinearCorrections(), 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 145 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalClusterTools::energyBasketFractionPhi(), PFPhotonClusters::FillClusterShape(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), 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::produceEcalLinearCorrections(), 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 155 of file EBDetId.h.

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

range constants

Definition at line 142 of file EBDetId.h.

const int EBDetId::MIN_IPHI = 1
static

Definition at line 143 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalLinearCorrections(), EcalTestDevDB::generateEcalPedestals(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalRingCalibrationTools::getDetIdsInECAL(), EcalRingCalibrationTools::getDetIdsInRing(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalPedestalsHandler::getNewObjectsP5(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), 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::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), and validDetId().

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

Definition at line 168 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(), 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::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().