12 edm::LogInfo(
"EcalGeom") <<
"Creating EcalBarrelNumberingScheme";
16 edm::LogInfo(
"EcalGeom") <<
"Deleting EcalBarrelNumberingScheme";
21 const uint32_t nLevels ( baseNumber.
getLevels() ) ;
28 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): " 29 <<
"Not enough levels found in EcalBaseNumber ( " 37 const int cryType ( ::atoi( cryName.c_str() + 5 ) ) ;
39 const int off ( 12 < nLevels ? 3 : 0 ) ;
41 const uint32_t wallCopy ( baseNumber.
getCopyNumber( 3 + off ) ) ;
42 const uint32_t hawCopy ( baseNumber.
getCopyNumber( 4 + off ) ) ;
43 const uint32_t fawCopy ( baseNumber.
getCopyNumber( 5 + off ) ) ;
44 const uint32_t supmCopy ( baseNumber.
getCopyNumber( 6 + off ) ) ;
60 edm::LogWarning(
"EdalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): " 61 <<
"****************** Bad crystal name = " 71 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): " 72 <<
"****************** Bad wall copy = " 82 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): " 83 <<
"****************** Bad haw copy = " 93 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): " 94 <<
"****************** Bad faw copy = " 104 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): " 105 <<
"****************** Bad supermodule copy = " 107 <<
", Volume Name = " 114 const int32_t zsign ( 18 < supmCopy ? -1 : 1 ) ;
116 const int32_t
eta ( 5*( cryType - 1 ) + wallCopy ) ;
118 const int32_t
phi ( 18 < supmCopy ?
119 20*( supmCopy - 19 ) + 2*( 10 - fawCopy ) + 3 - hawCopy :
120 20*( supmCopy - 1 ) + 2*( fawCopy - 1 ) + hawCopy ) ;
122 const int32_t intindex (
EBDetId( zsign*eta, phi ).rawId() ) ;
std::string const & getLevelName(int level) const
~EcalBarrelNumberingScheme() override
int getCopyNumber(int level) const
uint32_t getUnitID(const EcalBaseNumber &baseNumber) const override
EcalBarrelNumberingScheme()