#include <BTLNumberingScheme.h>
Definition at line 6 of file BTLNumberingScheme.h.
BTLNumberingScheme::BTLNumberingScheme |
( |
| ) |
|
BTLNumberingScheme::~BTLNumberingScheme |
( |
| ) |
|
|
override |
uint32_t BTLNumberingScheme::getUnitID |
( |
const MTDBaseNumber & |
baseNumber | ) |
const |
|
overridevirtual |
Implements MTDNumberingScheme.
Definition at line 22 of file BTLNumberingScheme.cc.
References MTDBaseNumber::getCopyNumber(), MTDBaseNumber::getLevelName(), MTDBaseNumber::getLevels(), DetId::rawId(), AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::zside().
24 const uint32_t nLevels ( baseNumber.
getLevels() ) ;
27 edm::LogInfo(
"MTDGeom") <<
"BTLNumberingScheme geometry levels = " << nLevels;
33 <<
"Not enough levels found in MTDBaseNumber ( " 57 uint32_t
pos = modName.find(
"Positive");
59 const uint32_t
zside = ( pos <= strlen(modName.c_str()) ? 1 : 0 );
60 std::string baseName = modName.substr(modName.find(
":")+1);
63 const int modtyp ( ::atoi( (baseName.substr(8,1)).c_str() ) == 9 ||
64 ::atoi( (baseName.substr(8,1)).c_str() ) == 5 ||
65 (::atoi( (baseName.substr(8,1)).c_str() ) == 7 && ::atoi( (baseName.substr(7,1)).c_str() ) == 1 ) ?
66 ::atoi( (baseName.substr(7,1)).c_str() ) + 1 : ::atoi( (baseName.substr(7,1)).c_str() ) ) ;
74 <<
"****************** Bad crystal number = " 76 <<
", Volume Number = " 85 <<
"****************** Bad module name = " 96 <<
"****************** Bad module copy = " 98 <<
", Volume Number = " 107 <<
"****************** Bad rod copy = " 109 <<
", Volume Number = " 116 BTLDetId thisBTLdetid( zside, rodCopy, modCopy, modtyp, crystal );
117 const int32_t intindex = thisBTLdetid.rawId() ;
121 <<
" rod = " << rodCopy
122 <<
" zside = " << zside
123 <<
" module = " << modCopy
124 <<
" modtyp = " << modtyp
125 <<
" crystal = " << crystal
126 <<
" Raw Id = " << intindex
int getCopyNumber(int level) const
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0...
std::string const & getLevelName(int level) const