11#include <GeoModelKernel/GeoPhysVol.h>
16 const std::string &name,
17 const IInterface *parent)
29 ATH_CHECK(detStore()->retrieve(theExpt,
"ATLAS"));
34 std::string
node{
"InnerDetector"};
35 std::string table{
"BCMPrimeXDD"};
40 ATH_MSG_ERROR(
"No BCMPrime geometry found. BCMPrime can not be built.");
41 return StatusCode::FAILURE;
57 const GeoVPhysVol* topVolume =
createTopVolume(world, gmxInterface,
node, table,
"ITkPixel",
"ITkPixelDetector",sqlreader);
62 return StatusCode::FAILURE;
71 return StatusCode::SUCCESS;
82 return StatusCode::SUCCESS;
92 std::string folderName =
"/ITk/Align";
94 ATH_MSG_DEBUG(
"Registering callback on AlignableTransformContainer with folder " << folderName );
96 StatusCode
sc = detStore()->regFcn(&IGeoModelTool::align,
dynamic_cast<IGeoModelTool *
>(
this), atc, folderName);
98 ATH_MSG_ERROR(
"Could not register callback on AlignableTransformContainer with folder " <<
101 return StatusCode::FAILURE;
103 ATH_MSG_WARNING(
"Unable to register callback on AlignableTransformContainer with folder " <<
104 folderName <<
", Alignment disabled (only if no Run2 scheme is loaded)!" );
107 ATH_MSG_INFO(
"Alignment disabled. No callback registered" );
110 return StatusCode::SUCCESS;
121 return StatusCode::FAILURE;
126 ATH_MSG_DEBUG(
"Alignment disabled. No alignments applied" );
127 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define IOVSVC_CALLBACK_ARGS_P(I, K)
short hand for IOVSvc call back argument list, to be used when access to formal arguments is needed,...
an iterator over instances of a given type in StoreGateSvc.
GeoPhysVol * getPhysVol()
Destructor.
void addManager(const GeoVDetectorManager *)
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring