|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/IService.h"
11 #include "GaudiKernel/ISvcLocator.h"
14 #include "GeoModelKernel/GeoDefinitions.h"
15 #include "GeoModelKernel/GeoVolumeCursor.h"
45 theToyFactory.create(world);
48 catch (
const std::bad_alloc&) {
50 return StatusCode::FAILURE;
53 theExpt->
addManager(theToyFactory.getDetectorManager());
54 if (
detStore()->record(theToyFactory.getDetectorManager(),theToyFactory.getDetectorManager()->getName()).isSuccess())
return StatusCode::SUCCESS;
55 ATH_MSG_FATAL(
"Failed to record Toy Detector Manager into Detector Store!");
58 ATH_MSG_FATAL(
"Attempt to build Toy Detector Geometry one more time. The geometry can be built only once!");
60 return StatusCode::FAILURE;
65 GeoVolumeCursor
cursor(volume);
67 GeoPVConstLink physChild =
cursor.getVolume();
69 for(
int k{0};
k<
level;++
k) std::cout <<
"... ";
71 <<
" Transform:" <<
"\n";
72 for(
int i{0};
i<3;++
i) {
73 for(
int j{0};j<4;++j) {
74 std::cout << position(
i,j) <<
" ";
83 #endif // BUILDVP1LIGHT
def retrieve(aClass, aKey=None)
GeoPhysVol * getPhysVol()
Destructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
Eigen::Affine3d Transform3D
std::string to_string(const DetectorType &type)
void addManager(const GeoVDetectorManager *)