test
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 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
}
 

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

Definition at line 19 of file EBDetId.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Subdet 

Definition at line 21 of file EBDetId.h.

anonymous enum
Enumerator
kSizeForDenseIndexing 

Definition at line 162 of file EBDetId.h.

static const int MAX_HASH
Definition: EBDetId.h:157

Constructor & Destructor Documentation

EBDetId::EBDetId ( )
inline

Constructor of a null id

Definition at line 23 of file EBDetId.h.

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

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

Constructor from a raw value

Definition at line 25 of file EBDetId.h.

25 : DetId(rawid) {}
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
EBDetId::EBDetId ( int  crystal_ieta,
int  crystal_iphi 
)
inline

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

Definition at line 29 of file EBDetId.h.

References DetId::id_.

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

Definition at line 11 of file EBDetId.cc.

References ETAPHIMODE, 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:26
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:124
static const int kCrystalsInPhi
Definition: EBDetId.h:149
int j
Definition: DBlmapReader.cc:9
static const int ETAPHIMODE
Definition: EBDetId.h:166
uint32_t id_
Definition: DetId.h:55
static const int SMCRYSTALMODE
Definition: EBDetId.h:167
EBDetId::EBDetId ( const DetId id)
inline

Constructor from a generic cell id

Definition at line 35 of file EBDetId.h.

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

Member Function Documentation

float EBDetId::approxEta ( ) const
inline
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:37
uint32_t EBDetId::denseIndex ( ) const
inline

Definition at line 88 of file EBDetId.h.

References hashedIndex().

Referenced by EcalTBHodoscopeGeometry::newCell().

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

Definition at line 111 of file EBDetId.h.

References unhashIndex().

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

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

Definition at line 135 of file EBDetId.cc.

References funct::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 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int ieta() const
get the crystal ieta
Definition: EBDetId.h:51
int EBDetId::distancePhi ( const EBDetId a,
const EBDetId b 
)
static

Definition at line 143 of file EBDetId.cc.

References funct::abs(), iphi(), PI, and mps_fire::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
tuple result
Definition: mps_fire.py:84
int iphi() const
get the crystal iphi
Definition: EBDetId.h:53
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int EBDetId::hashedIndex ( ) const
inline
int EBDetId::ic ( ) const
int EBDetId::ieta ( ) const
inline

get the crystal ieta

Definition at line 51 of file EBDetId.h.

References ietaAbs(), and zside().

Referenced by FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), JetToDigiDump::analyze(), EcalTBValidation::analyze(), DQMSourceEleCalib::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalBarrelDigisValidation::analyze(), PhiSymmetryCalibration::analyze(), DQMSourcePi0::analyze(), EcalRecHitsValidation::analyze(), TreeProducerCalibSimul::analyze(), EcalDigisValidation::analyze(), HLTAlCa::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), approxEta(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), HLTEcalResonanceFilter::calcShowerShape(), HLTRegionalEcalResonanceFilter::calcShowerShape(), EcalHaloAlgo::Calculate(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), ecaldqm::binning::channelName(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), PFClusterEMEnergyCorrector::correctEnergies(), EcalGlobalShowerContainmentCorrectionsVsEta::correction(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), distanceEta(), popcon::EcalLaserHandler::dumpBarrelPayload(), InvRingCalib::duringLoop(), Pi0FixedMassWindowCalibration::duringLoop(), ZeeCalibration::duringLoop(), PhiSymmetryCalibration_step2_SM::endJob(), PhiSymmetryCalibration_step2::endJob(), ElectronCalibrationUniv::endJob(), Pi0FixedMassWindowCalibration::endOfJob(), EcalEleCalibLooper::endOfLoop(), Pi0FixedMassWindowCalibration::endOfLoop(), ZeeCalibration::endOfLoop(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEBMap(), ECALRecHitAnalyzer::FillGeometry(), EcalRecHitsFilter::filter(), HLTEcalPhiSymFilter::filter(), ecaldqm::binning::findBinCrystal_(), ecaldqm::binning::findBinSuperCrystal_(), TrackDetMatchInfo::findMaxDeposition(), EcalTBReadout::findTTlist(), CalibrationCluster::get3x3Id(), CalibrationCluster::get5x5Id(), EcalBarrelGeometry::getClosestCell(), SCEnergyCorrectorSemiParm::getCorrections(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalClusterToolsT< noZS >::getIEta(), PhotonMIPHaloTagger::GetMipTrailFit(), EcalRingCalibrationTools::getRingIndex(), PhotonMIPHaloTagger::GetSeedHighestE(), EcalClusterLocalContCorrection::getValue(), EcalBasicClusterLocalContCorrection::getValue(), EcalClusterCrackCorrection::getValue(), ecalpyutils::hashedIndexToEtaPhi(), DetIdInfo::info(), fireworks::info(), isNextToEtaBoundary(), EcalClusterLocal::localCoordsEB(), EcalDisplaysByEvent::makeHistos(), EcalDeadChannelRecoveryNN< EBDetId >::makeNxNMatrice_RelDC(), PiZeroAnalyzer::makePizero(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EBDetIdSorter::operator()(), PFPhotonClusters::PFCrystalCoor(), HodoscopeDetId::planeId(), ecaldqm::pnForCrystal(), EcalGeomPhiSymHelper::setup(), EcalTools::swissCross(), switchZSide(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

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

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

Definition at line 73 of file EBDetId.h.

References ietaAbs().

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

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

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

Definition at line 66 of file EBDetId.h.

References ietaAbs(), and cuy::ii.

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

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

get the crystal iphi

Definition at line 53 of file EBDetId.h.

References DetId::id_.

Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), DQMSourceEleCalib::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalBarrelDigisValidation::analyze(), PhiSymmetryCalibration::analyze(), DQMSourcePi0::analyze(), EcalRecHitsValidation::analyze(), TreeProducerCalibSimul::analyze(), EcalDigisValidation::analyze(), HLTAlCa::analyze(), EcalCosmicsHists::analyze(), EcalMixingModuleValidation::analyze(), HLTEcalResonanceFilter::calcShowerShape(), HLTRegionalEcalResonanceFilter::calcShowerShape(), EcalHaloAlgo::Calculate(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), ecaldqm::binning::channelName(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), popcon::EcalChannelStatusHandler::cosmicsAnalysis(), distancePhi(), popcon::EcalLaserHandler::dumpBarrelPayload(), InvRingCalib::duringLoop(), Pi0FixedMassWindowCalibration::duringLoop(), ZeeCalibration::duringLoop(), PhiSymmetryCalibration_step2_SM::endJob(), PhiSymmetryCalibration_step2::endJob(), ElectronCalibrationUniv::endJob(), Pi0FixedMassWindowCalibration::endOfJob(), EcalEleCalibLooper::endOfLoop(), Pi0FixedMassWindowCalibration::endOfLoop(), ZeeCalibration::endOfLoop(), EcalClusterToolsT< noZS >::energyBasketFractionPhi(), HodoscopeDetId::fibrId(), AlCaElectronsTest::fillAroundBarrel(), DQMSourceEleCalib::fillAroundBarrel(), PFPhotonClusters::FillClusterShape(), MatrixFillMap::fillEBMap(), 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(), EcalClusterLocalContCorrection::getValue(), EcalBasicClusterLocalContCorrection::getValue(), EcalClusterCrackCorrection::getValue(), ecalpyutils::hashedIndexToEtaPhi(), ic(), DetIdInfo::info(), fireworks::info(), ism(), isNextToPhiBoundary(), EcalClusterLocal::localCoordsEB(), EcalDisplaysByEvent::makeHistos(), EcalDeadChannelRecoveryNN< EBDetId >::makeNxNMatrice_RelDC(), PiZeroAnalyzer::makePizero(), numberByEtaPhi(), TrackDetMatchInfo::nXnEnergy(), offsetBy(), EBDetIdSorter::operator()(), PFPhotonClusters::PFCrystalCoor(), ecaldqm::phi(), ecaldqm::pnForCrystal(), EcalGeomPhiSymHelper::setup(), switchZSide(), tower_iphi(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), xuti::writeCell(), ECALRecHitAnalyzer::WriteECALRecHits(), Pi0CalibXMLwriter::writeLine(), calibXMLwriter::writeLine(), and ZeeCalibration::xtalIsOnModuleBorder().

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

get the crystal iphi (1-20)

Definition at line 75 of file EBDetId.h.

References ic(), and kCrystalsInPhi.

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

75 { return (( ic() -1 ) % kCrystalsInPhi ) + 1; }
static const int kCrystalsInPhi
Definition: EBDetId.h:149
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 61 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().

61  {
62  int id = ( iphi() - 1 ) / kCrystalsInPhi + 1;
63  return positiveZ() ? id : id+18;
64  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:53
static const int kCrystalsInPhi
Definition: EBDetId.h:149
bool positiveZ() const
Definition: EBDetId.h:78
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:148
int ieta() const
get the crystal ieta
Definition: EBDetId.h:51
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:53
int EBDetId::numberByEtaPhi ( ) const
inline

Definition at line 80 of file EBDetId.h.

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

Referenced by hashedIndex().

80  {
81  return (MAX_IETA + (positiveZ() ? ietaAbs()-1 : -ietaAbs()) )*MAX_IPHI+ iphi()-1;
82  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:53
bool positiveZ() const
Definition: EBDetId.h:78
static const int MAX_IPHI
Definition: EBDetId.h:144
static const int MAX_IETA
Definition: EBDetId.h:143
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:49
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:151
int ism() const
get the ECAL/SM id
Definition: EBDetId.h:61
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:23
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:124
int iphi() const
get the crystal iphi
Definition: EBDetId.h:53
int ieta() const
get the crystal ieta
Definition: EBDetId.h:51
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:26
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
EBDetId& EBDetId::operator= ( const DetId id)
inline

Assignment operator from cell id

Definition at line 37 of file EBDetId.h.

References DetId::id_.

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

Definition at line 78 of file EBDetId.h.

References DetId::id_.

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

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

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

Definition at line 44 of file EBDetId.h.

References EcalBarrel.

44 { 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:23
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:124
int iphi() const
get the crystal iphi
Definition: EBDetId.h:53
int ieta() const
get the crystal ieta
Definition: EBDetId.h:51
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:26
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
EcalTrigTowerDetId EBDetId::tower ( ) const
inline

get the HCAL/trigger iphi of this crystal

Definition at line 59 of file EBDetId.h.

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

Referenced by testEcalTPGScale::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalRecHitsValidation::analyze(), ecaldqm::binning::findBinTriggerTower_(), EcalElectronicsMapping::getElectronicsId(), ecaldqm::MESet::maskMatches(), EcalDetIdToBeRecoveredProducer::produce(), ecaldqm::SummaryClient::producePlots(), ecaldqm::SelectiveReadoutTask::runOnDigis(), ecaldqm::towerId(), EcalTrigTowerConstituentsMap::towerOf(), and ecaldqm::ttId().

int tower_ieta() const
get the HCAL/trigger ieta of this crystal
Definition: EBDetId.h:55
int tower_iphi() const
get the HCAL/trigger iphi of this crystal
Definition: EBDetId.cc:114
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:47
int EBDetId::tower_ieta ( ) const
inline

get the HCAL/trigger ieta of this crystal

Definition at line 55 of file EBDetId.h.

References ietaAbs(), and zside().

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

55 { return ((ietaAbs()-1)/5+1)*zside(); }
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:49
int zside() const
get the z-side of the crystal (1/-1)
Definition: EBDetId.h:47
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 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:53
static EBDetId EBDetId::unhashIndex ( int  hi)
inlinestatic

get a DetId from a compact index for arrays

Definition at line 114 of file EBDetId.h.

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

Referenced by detIdFromDenseIndex(), popcon::EcalLaserHandler::dumpBarrelPayload(), EcalPulseShapesXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), EcalEleCalibLooper::EBRegionDefinition(), EcalEleCalibLooper::EcalEleCalibLooper(), EcalTrivialConditionRetriever::getChannelStatusFromConfiguration(), popcon::EcalLaser_weekly_Handler::getNewObjects(), EcalTrivialConditionRetriever::getTrgChannelStatusFromConfiguration(), ecalpyutils::hashedIndexToEtaPhi(), CalorimetryManager::loadFromEcalBarrel(), main(), popcon::EcalLaserHandler::notifyProblems(), printStatusRecords(), StoreEcalCondition::readEcalChannelStatusFromFile(), ecaldqm::StatusManager::readFromObj(), ecaldqm::StatusManager::readFromStream(), and ecaldqm::StatusManager::writeToObj().

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

check if a valid index combination

Definition at line 124 of file EBDetId.h.

References funct::abs(), MAX_IETA, MAX_IPHI, and MIN_IPHI.

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

124  {
125  return i!=0 && (std::abs(i) <= MAX_IETA)
126  && (j>=MIN_IPHI) && (j <= MAX_IPHI);
127  }
int i
Definition: DBlmapReader.cc:9
static const int MIN_IPHI
Definition: EBDetId.h:142
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int j
Definition: DBlmapReader.cc:9
static const int MAX_IPHI
Definition: EBDetId.h:144
static const int MAX_IETA
Definition: EBDetId.h:143
static bool EBDetId::validHashIndex ( int  i)
inlinestatic

Definition at line 121 of file EBDetId.h.

References MAX_HASH.

Referenced by unhashIndex().

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

Member Data Documentation

const float EBDetId::crystalUnitToEta = 0.017453292519943295
static
const int EBDetId::ETAPHIMODE = 0
static
const int EBDetId::kChannelsPerCard = 5
static

Definition at line 145 of file EBDetId.h.

const int EBDetId::kCrystalsInEta = 85
static

Definition at line 150 of file EBDetId.h.

const int EBDetId::kCrystalsInPhi = 20
static
const int EBDetId::kCrystalsPerSM = 1700
static

Definition at line 151 of file EBDetId.h.

Referenced by numberBySM().

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

Definition at line 148 of file EBDetId.h.

Referenced by isNextToEtaBoundary().

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

Definition at line 146 of file EBDetId.h.

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

const int EBDetId::MAX_C = kCrystalsPerSM
static

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

Referenced by EcalGetLaserData::analyze(), EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), EnergyResolutionVsLumi::calcmuTot(), CaloTowerConstituentsMap::constituentsOf(), EcalBarrelHardcodedTopology::decrementIeta(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), 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::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), spr::simpleMove(), PFECALHashNavigator::stdsimplemove(), unhashIndex(), and validDetId().

const int EBDetId::MAX_IPHI = 360
static

Definition at line 144 of file EBDetId.h.

Referenced by EcalGetLaserData::analyze(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), EcalBarrelHardcodedTopology::decrementIphi(), EcalBarrelTopology::decrementIphi(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ZeeCalibration::endOfJob(), EcalClusterToolsT< noZS >::energyBasketFractionPhi(), PFPhotonClusters::FillClusterShape(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), 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::produceEcalTimeCalibConstants(), EcalTrivialConditionRetriever::produceEcalTimeCalibErrors(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalTrgChannelStatus(), EcalTrivialConditionRetriever::produceEcalWeightXtalGroups(), StoreEcalCondition::readEcalChannelStatusFromFile(), unhashIndex(), and validDetId().

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

Definition at line 154 of file EBDetId.h.

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

range constants

Definition at line 141 of file EBDetId.h.

const int EBDetId::MIN_IPHI = 1
static

Definition at line 142 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::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::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 167 of file EBDetId.h.

Referenced by EcalTBValidation::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), TreeProducerCalibSimul::analyze(), 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::EcalTPGSpikeThresholdHandler::getNewObjects(), popcon::EcalTPGLutGroupHandler::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().