35 const std::string& name,
36 const IInterface * parent)
41 declareInterface<IGeometryManagerTool>(
this);
93 return StatusCode::FAILURE;
95 return StatusCode::SUCCESS;
103 return StatusCode::SUCCESS;
154 case 12:
case 16:
case 2:
case 26:
case 27:
case 3:
159 ATH_MSG_FATAL(
"This level is not supported with the configured geometry");
160 ATH_MSG_FATAL(
"The pixel barrel has "<<
m_detManager->numerology().numLayers()<<
" layers; Only 3 layer geometries supported");
169 ATH_MSG_FATAL(
"This level is not supported with the configured geometry");
170 ATH_MSG_FATAL(
"The pixel barrel has "<<
m_detManager->numerology().numLayers()<<
" layers; Only 3 layer geometries supported");
188 case 12:
case 16:
case 2:
case 3:
235 ATH_MSG_INFO(
"Total number of degrees of freedom: "<<nDoF);
250 ATH_MSG_INFO(
" When checking for IBL-Layer, layer "<<iLayer<<
" not present");
254 if(noSkipEtaZero>0 &&
m_detManager->numerology().skipEtaZeroForLayer(iLayer)){
334 ATH_MSG_INFO(
"Preparing the Pixel geometry for L1 : whole Pixel");
341 unsigned int pixelmaxHash =
m_idHelper->wafer_hash_max();
351 pixel->setName(
"Pixel");
393 (*pixelIdHashMap)[idHash] =
pixel;
398 ATH_MSG_DEBUG(
"-------------------------------------------------------");
403 ATH_MSG_DEBUG(
"Pixel L1 module successfully added to the list");
413 ATH_MSG_INFO(
"Preparing the Pixel geometry for L11 : IBL + rest of pixel detector");
416 ATH_MSG_WARNING(
"No IBL in geometry; Maybe this is not the level you want to use");
422 unsigned int maxHash =
m_idHelper->wafer_hash_max();
436 pixel_old->
setName(
"Pixel/oldPixel");
484 ATH_MSG_DEBUG(
"-------------------------------------------------------");
510 ATH_MSG_INFO(
"Preparing the Pixel Barrel geometry for L12 : whole barrel");
522 unsigned int maxHash =
m_idHelper->wafer_hash_max();
532 mod->setName(
"Pixel/Barrel");
535 mod->setIdentifier(
m_idHelper->wafer_id(0, 0, 0, 0));
545 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
552 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
555 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
587 ATH_MSG_INFO(
"Preparing the Pixel Barrel geometry for L15 : 2 barrel halfs");
599 unsigned int maxHash =
m_idHelper->wafer_hash_max();
609 top->setName(
"Pixel/Barrel/Top-half");
613 bottom->
setName(
"Pixel/Barrel/Bottom-half");
617 top->setIdentifier(
m_idHelper->wafer_id(0, 0, 10, 0));
623 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
630 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
636 ATH_MSG_DEBUG(
"iPhi "<<iPhi<<
" is in top half of layer "<<iLayer);
640 ATH_MSG_DEBUG(
"iPhi "<<iPhi<<
" is in bottom half of layer "<<iLayer);
644 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
679 ATH_MSG_INFO(
"Preparing the Pixel Endcap geometry for L12 : 2 endcaps");
688 unsigned int maxHash =
m_idHelper->wafer_hash_max();
695 for (
int iEndcapIndex = 0; iEndcapIndex <
m_detManager->numerology().numEndcaps(); iEndcapIndex++) {
696 int iSide =
m_detManager->numerology().endcapId(iEndcapIndex);
700 mod->setIdentifier(
m_idHelper->wafer_id(iSide,0,0,0));
702 const std::string name = (iEndcapIndex == 0)?
"Pixel/EndcapA":
"Pixel/EndcapC";
713 for (
int iWheel = 0; iWheel <
m_detManager->numerology().numDisks(); iWheel++) {
718 for (
int iEta = 0; iEta <
m_detManager->numerology().numRingsForDisk(iWheel); iEta++) {
719 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForDiskRing(iWheel,iEta); iPhi++) {
743 ATH_MSG_DEBUG(
"Endcap:" << iSide <<
" , CoG (" << translation.x() <<
" , " << translation.y() <<
" , " << translation.z() <<
" ) " );
744 Amg::Transform3D localtoglobal = translation * Amg::RotationMatrix3D::Identity();
745 mod->setGlobalFrameToAlignFrameTransform(localtoglobal.inverse());
756 ATH_MSG_INFO(
"Preparing the Pixel Barrel geometry for L26 : IBL stave Pixel whole barrel");
770 unsigned int maxHash =
m_idHelper->wafer_hash_max();
781 pixel_old->
setName(
"Pixel/oldPixel");
790 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
805 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
807 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
829 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
837 mod->setIdentifier(
m_idHelper->wafer_id(0, iLayer, iPhi, 0));
839 std::string name=
"Pixel/Barrel/Layer_"+std::to_string(iLayer)+
"/PhiStave_"+std::to_string(iPhi);
850 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
872 mod->setGlobalFrameToAlignFrameTransform( alignModuleToGlobal.inverse() );
873 mod->resetAlignModuleToDetElementTransforms();
913 unsigned int maxHash =
m_idHelper->wafer_hash_max();
920 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
930 mod->setIdentifier(
m_idHelper->wafer_id(0, iLayer, 0, 0));
932 std::string name=
"Pixel/Barrel/Layer_" +std::to_string( iLayer);
943 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
945 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
975 ATH_MSG_INFO(
"Preparing the Pixel Barrel geometry for L22 "<<
m_detManager->numerology().numLayers()*2<<
" half-layers");
988 unsigned int maxHash =
m_idHelper->wafer_hash_max();
995 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
1012 unsigned int phi_top = 10;
1013 top->setIdentifier(
m_idHelper->wafer_id(0, iLayer, phi_top, 0));
1014 unsigned int phi_bottom = iLayer ? 30 : 20;
1017 std::string nametop=
"Pixel/Barrel/Layer_"+std::to_string(iLayer)+
"_top";
1018 top->setName(nametop);
1020 std::string namebottom=
"Pixel/Barrel/Layer_"+std::to_string(iLayer)+
"_bottom";
1028 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
1034 ATH_MSG_DEBUG(
"iPhi "<<iPhi<<
" is in top half of layer "<<iLayer);
1038 ATH_MSG_DEBUG(
"iPhi "<<iPhi<<
" is in bottom half of layer "<<iLayer);
1042 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
1078 ATH_MSG_INFO(
"Preparing the Pixel Barrel geometry for L26 : IBL stave Pixel L2");
1093 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1100 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
1110 mod->setIdentifier(
m_idHelper->wafer_id(0, iLayer, 0, 0));
1112 std::string name=
"Pixel/Barrel/Layer_" +std::to_string( iLayer);
1123 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
1125 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
1149 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
1157 mod->setIdentifier(
m_idHelper->wafer_id(0, iLayer, iPhi, 0));
1159 std::string name=
"Pixel/Barrel/Layer_"+std::to_string(iLayer)+
"/PhiStave_"+std::to_string(iPhi);
1170 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
1191 Amg::Transform3D alignModuleToGlobal = mod->calculateAlignModuleToGlobal();
1192 mod->setGlobalFrameToAlignFrameTransform( alignModuleToGlobal.inverse() );
1193 mod->resetAlignModuleToDetElementTransforms();
1211 ATH_MSG_INFO(
"Preparing the Pixel Barrel geometry for L27 : 112(132 incl. IBL) staves (ladders)");
1224 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1231 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
1238 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
1246 mod->setIdentifier(
m_idHelper->wafer_id(0, iLayer, iPhi, 0));
1248 std::string name=
"Pixel/Barrel/Layer_"+std::to_string(iLayer)+
"/PhiStave_"+std::to_string(iPhi);
1259 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
1281 throw std::logic_error(
"No detector element at the 0th eta wafer.");
1283 mod->setGlobalFrameToAlignFrameTransform(element->
transform().inverse());
1298 ATH_MSG_INFO(
"Preparing the ITk Pixel Endcap geometry for L2");
1308 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1315 ATH_MSG_INFO(
"ITk Pixel L2 Endcap numerology: numEndcaps = " << numerology.numEndcaps() <<
", numDiskLayers = " << numerology.numDiskLayers());
1320 for (
int iEndcapIndex = 0; iEndcapIndex < numerology.numEndcaps(); iEndcapIndex++) {
1321 int iSide = numerology.endcapId(iEndcapIndex);
1327 for (
int iLayer = 0; iLayer < numerology.numDiskLayers(); iLayer++) {
1331 mod->setIdentifier(
m_idHelper->wafer_id(iSide, iLayer, 0, 0));
1333 const std::string layerStr{std::to_string(iLayer + 1)};
1334 std::string name = (iSide == 2) ?
"Pixel/EndcapA/Layer_" + layerStr :
"Pixel/EndcapC/Layer_" + layerStr;
1345 unsigned int nElements = 0;
1346 const int nRings = numerology.numDisksForLayer(iLayer);
1347 ATH_MSG_DEBUG(
"ITk Pixel L2: " << mod->name() <<
" | Layer index = " << iLayer <<
" | Number of rings = " << nRings);
1351 for (
int iRing = 0; iRing < nRings; iRing++) {
1353 const int nPhi = numerology.numPhiModulesForLayerDisk(iLayer, iRing);
1354 unsigned int nRingElements = 0;
1357 for (
int iPhi = 0; iPhi < nPhi; iPhi++) {
1369 ATH_MSG_DEBUG(
" " << mod->name() <<
" | Ring " << iRing <<
" | Phi slots = " << nPhi <<
" | Sensors found = " << nRingElements);
1372 ATH_MSG_INFO(
"ITk Pixel L2 module " << mod->name() <<
" contains " << nElements <<
" detector elements");
1374 if (nElements == 0) {
1384 ATH_MSG_DEBUG(
"Endcap: " << iSide <<
", Layer: " << iLayer <<
", CoG (" << translation.x() <<
", " << translation.y() <<
", " << translation.z() <<
")");
1386 Amg::Transform3D localtoglobal = translation * Amg::RotationMatrix3D::Identity();
1387 mod->setGlobalFrameToAlignFrameTransform(localtoglobal.inverse());
1390 ATH_MSG_INFO(
"Adding alignment module " << mod->name());
1400 ATH_MSG_INFO(
"Preparing the Pixel Endcap geometry for L2 : 2 x 3 disks");
1412 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1419 for (
int iEndcapIndex = 0; iEndcapIndex <
m_detManager->numerology().numEndcaps(); iEndcapIndex++) {
1420 int iSide =
m_detManager->numerology().endcapId(iEndcapIndex);
1421 for (
int iWheel = 0; iWheel <
m_detManager->numerology().numDisks(); iWheel++) {
1427 mod->setIdentifier(
m_idHelper->wafer_id(iSide,iWheel,0,0));
1428 const std::string iWheelStr{std::to_string(iWheel)};
1429 std::string name= (iEndcapIndex == 0) ?
"Pixel/EndcapA/Disk_" + iWheelStr :
"Pixel/EndcapC/Disk_" + iWheelStr;
1441 for (
int iEta = 0; iEta <
m_detManager->numerology().numRingsForDisk(iWheel); iEta++) {
1442 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForDiskRing(iWheel,iEta); iPhi++) {
1465 ATH_MSG_DEBUG(
"Endcap:" << iSide <<
" , CoG (" << translation.x() <<
" , " << translation.y() <<
" , " << translation.z() <<
" ) " );
1466 Amg::Transform3D localtoglobal = translation * Amg::RotationMatrix3D::Identity();
1467 mod->setGlobalFrameToAlignFrameTransform(localtoglobal.inverse());
1479 ATH_MSG_INFO(
"Preparing the Pixel Barrel geometry for L3 : module (wafer) level");
1488 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1495 for (
int iLayer = 0; iLayer <
m_detManager->numerology().numLayers(); iLayer++) {
1503 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForLayer(iLayer); iPhi++) {
1505 for (
int iEta =
m_detManager->numerology().beginEtaModuleForLayer(iLayer); iEta < m_detManager->numerology().endEtaModuleForLayer(iLayer)-
m_etaCorrection; iEta++) {
1518 mod->setIdentifier(
m_idHelper->wafer_id(0, iLayer, iPhi, iEta));
1520 std::string name=
"Pixel/Barrel/Layer_"+std::to_string(iLayer)+
"/Phi_"+std::to_string(iPhi)+
"/Eta_"+std::to_string(iEta);
1547 mod->setGlobalFrameToAlignFrameTransform(element->
transform().inverse());
1553 ATH_MSG_WARNING(
"No element in module "<<mod->name()<<
". Ignoring this module.");
1566 ATH_MSG_INFO(
"Preparing the Pixel geometry for L3 : module (wafer) level");
1576 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1583 for (
int iEndcapIndex = 0; iEndcapIndex <
m_detManager->numerology().numEndcaps(); iEndcapIndex++) {
1584 int iSide =
m_detManager->numerology().endcapId(iEndcapIndex);
1586 for (
int iWheel = 0; iWheel <
m_detManager->numerology().numDisks(); iWheel++) {
1592 for (
int iEta = 0; iEta <
m_detManager->numerology().numRingsForDisk(iWheel); iEta++) {
1593 for (
int iPhi = 0; iPhi <
m_detManager->numerology().numPhiModulesForDiskRing(iWheel,iEta); iPhi++) {
1605 mod->setIdentifier(
m_idHelper->wafer_id(iSide,iWheel,iPhi,iEta));
1607 std::string name = (iEndcapIndex == 0)?
"Pixel/EndcapA" :
"Pixel/EndcapC";
1609 name+=
"/Disk_"+std::to_string(iWheel)+
"/Phi_"+std::to_string(iPhi);
1638 mod->setGlobalFrameToAlignFrameTransform(element->
transform().inverse());
1644 ATH_MSG_WARNING(
"No element in module "<<mod->name()<<
". Ignoring this module.");
1659 ATH_MSG_INFO(
"Preparing the DBM Endcap geometry for L1 : 2 endcaps");
1661 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1726 ATH_MSG_DEBUG(
"-------------------------------------------------------");
1737 ATH_MSG_DEBUG(
"Endcap:" << dbm1->
name() <<
" , CoG (" << translation.x() <<
" , " << translation.y() <<
" , " << translation.z() <<
" ) " );
1738 Amg::Transform3D localtoglobal = translation * Amg::RotationMatrix3D::Identity();
1752 ATH_MSG_DEBUG(
"Endcap:" << dbm2->
name() <<
" , CoG (" << translation.x() <<
" , " << translation.y() <<
" , " << translation.z() <<
" ) " );
1753 Amg::Transform3D localtoglobal = translation * Amg::RotationMatrix3D::Identity();
1766 ATH_MSG_INFO(
"Preparing the DBM telescope geometry for L2 : 8 telescopes");
1768 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1775 std::vector<Trk::AlignModule*> mod_list;
1777 for (
unsigned int i = 0; i < 8; i++)
1782 std::string name = (i<4) ?
"Pixel/ECDBM"+std::to_string(i) :
"Pixel/EADBM"+std::to_string(i-4);
1784 if(i<4) mod->setIdentifier(
m_idHelper->wafer_id(-4, 0, i, 0));
1785 else mod->setIdentifier(
m_idHelper->wafer_id(4, 0, i-4, 0));
1787 mod_list.push_back(mod);
1811 unsigned int telescope = -1;
1816 mod = mod_list.at(telescope);
1820 telescope = int(4+
m_idHelper->phi_module(
id));
1821 mod = mod_list.at(telescope);
1826 if (element2 && mod) {
1837 ATH_MSG_DEBUG(
"-------------------------------------------------------");
1841 for(
unsigned int i=0;i<mod_list.size();i++) {
1843 ATH_MSG_DEBUG(
"Module "<<mod_list.at(i)->name()<<
" NOT selected");
1849 ATH_MSG_DEBUG(
"Endcap:" << mod_list.at(i)->name() <<
" , CoG (" << translation.x() <<
" , " << translation.y() <<
" , " << translation.z() <<
" ) " );
1850 Amg::Transform3D localtoglobal = translation * Amg::RotationMatrix3D::Identity();
1851 mod_list.at(i)->setGlobalFrameToAlignFrameTransform(localtoglobal.inverse());
1864 ATH_MSG_INFO(
"Preparing the DBM module geometry for L3 : 24 modules");
1866 unsigned int maxHash =
m_idHelper->wafer_hash_max();
1892 std::string name = (
m_idHelper->barrel_ec(
id)==-4) ?
"Pixel/ECDBM" :
"Pixel/EADBM";
1893 name +=
"/Disk_"+std::to_string(
m_idHelper->layer_disk(
id))+
"/Sector_"+std::to_string(
m_idHelper->phi_module(
id));
1915 mod->setGlobalFrameToAlignFrameTransform(element->
transform().inverse());
1921 ATH_MSG_WARNING(
"No element in module "<<mod->name()<<
". Ignoring this module.");
1946 for(
unsigned int ipar=0;ipar<fullModPars->
size();++ipar) {
1950 Identifier modID = ((
module->detElementCollection(Trk::AlignModule::Pixel))->at(0))->identify();
1953 ATH_MSG_DEBUG(
"Pixel barrel module with id "<<AlimodID);
1954 if( (fullModPars->at(ipar)->paramType() == Trk::AlignModule::TransX && m_alignBarrelX)
1955 || (fullModPars->at(ipar)->paramType() == Trk::AlignModule::TransY && m_alignBarrelY)
1956 || (fullModPars->at(ipar)->paramType() == Trk::AlignModule::TransZ && m_alignBarrelZ)
1957 || (fullModPars->at(ipar)->paramType() == Trk::AlignModule::RotX && m_alignBarrelRotX)
1958 || (fullModPars->at(ipar)->paramType() == Trk::AlignModule::RotY && m_alignBarrelRotY)
1959 || (fullModPars->at(ipar)->paramType() == Trk::AlignModule::RotZ && m_alignBarrelRotZ)
1960 || (m_idHelper->layer_disk(modID)==0 && m_idHelper->is_blayer(modID) && fullModPars->at(ipar)->paramType() == Trk::AlignModule::BowX && m_alignBarrelBowX) ) {
1961 ATH_MSG_DEBUG(
"parameter type "<<fullModPars->at(ipar)->paramType()<<
" \'"<<fullModPars->at(ipar)->dumpType()<<
"\' is now active");
1962 activeModPars->push_back(fullModPars->at(ipar));
1965 ATH_MSG_DEBUG(
"parameter type "<<fullModPars->
at(ipar)->paramType()<<
" \'"<<fullModPars->
at(ipar)->dumpType()<<
"\' is NOT active");
1975 ATH_MSG_DEBUG(
"parameter type "<<fullModPars->
at(ipar)->paramType()<<
" \'"<<fullModPars->
at(ipar)->dumpType()<<
"\' is now active");
1979 ATH_MSG_DEBUG(
"parameter type "<<fullModPars->
at(ipar)->paramType()<<
" \'"<<fullModPars->
at(ipar)->dumpType()<<
"\' is NOT active");
1984 allFullModPars->push_back(fullModPars);
1985 allActiveModPars->push_back(activeModPars);
1991 for(
unsigned int ipar=0;ipar<modPars->
size();++ipar) {
1993 if(
m_idHelper->is_barrel(module->identify()))
1994 switch(modPars->
at(ipar)->paramType()) {
2027 switch(modPars->
at(ipar)->paramType()) {
2065 for(
int i=0;i<nsel;++i)
2081 ATH_MSG_INFO(
"---------------------------------------------------");
2090 Amg::Transform3D localtoglobal = (
module->globalFrameToAlignFrame()).inverse();
2091 ATH_MSG_DEBUG(
" - local to global : "<<std::setprecision(12)<<localtoglobal.translation()<<
" "<<localtoglobal.rotation());
2094 int npars = pars->
size();
2095 ATH_MSG_DEBUG(
" - number of active transform parameters: "<<npars);
2096 for(
int j=0;j<npars;j++)
2097 ATH_MSG_DEBUG(
" * par "<<j<<
" \'"<<(*pars)[j]->dumpType()<<
"\' : sigma = "<<(*pars)[j]->sigma()<<
" , softCut = "<<(*pars)[j]->softCut());
2099 ATH_MSG_INFO(
"---------------------------------------------------");
2114 msg(MSG::ERROR)<<
"Layer 0 has only 22 phi modules: range 0-21, requested "<<
phi<<
endmsg;
2119 else if (layer==1) {
2121 msg(MSG::ERROR)<<
"Layer 1 has only 38 phi modules: range 0-37, requested "<<
phi<<
endmsg;
2129 else if (layer==2) {
2131 msg(MSG::ERROR)<<
"Layer 2 has only 52 phi modules: range 0-51, requested "<<
phi<<
endmsg;
2141 msg(MSG::ERROR)<<
"Pixel barrel only 3 layers: range 0-2, requested "<<layer<<
endmsg;
2148 ATH_MSG_DEBUG(
" - translation: "<<tr.translation().x()<<
" "<<tr.translation().y()<<
" "<<tr.translation().z());
2150 ATH_MSG_DEBUG(
" "<<tr.rotation()(0,0)<<
" "<<tr.rotation()(0,1)<<
" "<<tr.rotation()(0,2));
2151 ATH_MSG_DEBUG(
" "<<tr.rotation()(1,0)<<
" "<<tr.rotation()(1,1)<<
" "<<tr.rotation()(1,2));
2152 ATH_MSG_DEBUG(
" "<<tr.rotation()(2,0)<<
" "<<tr.rotation()(2,1)<<
" "<<tr.rotation()(2,2));
2162 const std::string& detectorKey = versionKey.
tag();
2163 const std::string& detectorNode = versionKey.
node();
2165 ATH_MSG_INFO(
"--------------------- decode version key " << detectorKey<<
" "<<detectorNode);
2171 const IRDBRecord *geoTable_layer = (*geoSet_layer)[0];
2173 if (!geoTable_layer->
isFieldNull(
"STAVEINDEX")) staveIndex=geoTable_layer->
getInt(
"STAVEINDEX");
2177 const IRDBRecord *geoTable_stave = (*geoSet_stave)[staveIndex];
2179 if (!geoTable_stave->
isFieldNull(
"NOSKIPZERO")) noSkipZero=geoTable_stave->
getInt(
"NOSKIPZERO");
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_INFO(x,...)
#define ATH_MSG_FATAL(x,...)
An STL vector of pointers that by default owns its pointed-to elements.
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
This is an Identifier helper class for the Pixel subdetector.
This is an Identifier helper class for both the Pixel and SCT subdetectors.
const ServiceHandle< StoreGateSvc > & detStore() const
bool msgLvl(const MSG::Level lvl) const
const T * at(size_type n) const
Access an element, as an rvalue.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
This is a helper class to query the version tags from GeoModelSvc and determine the appropriate tag a...
const std::string & tag() const
Return version tag.
const std::string & node() const
Return the version node.
IRDBRecord is one record in the IRDBRecordset object.
virtual bool isFieldNull(std::string_view fieldName) const =0
Check if the field value is NULL.
virtual int getInt(std::string_view fieldName) const =0
Get int field value.
This is a "hash" representation of an Identifier.
Class to hold geometrical description of a silicon detector element.
static Amg::Vector3D centerOfGravity(const std::vector< DetElementCollection * > &)
Calculates center of gravity (average center of associated det-elements).
void setIdHash(IdentifierHash id)
void setGlobalFrameToAlignFrameTransform(const Amg::Transform3D &t)
set global to alignment frame transforms
void setIdentifier(Identifier identifier)
Set and return identifier of module.
const std::string & name() const
void setName(const std::string &name)
Set and return name of align module (i.e.
void addDetElement(AlignModule::DetectorType detType, const TrkDetElementBase *det, const Amg::Transform3D &transform, Identifier id=Identifier())
used to add a detector element to the align module with a align frame to detector element local frame...
This is the base class for all tracking detector elements with read-out relevant information.
virtual const Amg::Transform3D & transform() const =0
Return local to global transform.
virtual IdentifierHash identifyHash() const =0
Identifier hash.
Eigen::Affine3d Transform3D
Eigen::Translation< double, 3 > Translation3D
@ OWN_ELEMENTS
this data object owns its elements
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
std::vector< AlignModule * > AlignModuleList