11#include "G4NistManager.hh"
12#include "G4LogicalVolume.hh"
13#include "G4PVPlacement.hh"
14#include "G4GDMLParser.hh"
23 declareProperty(
"GeoDetectorName",
m_geoDetectorName,
"Name of the detector in GeoModel, if different from G4.");
24 declareProperty(
"GDMLFileOut",
m_dumpGDMLFile,
"File name where the GDML description for the detector will be dumped.");
30 ATH_MSG_VERBOSE( name() <<
" GeoDetectorTool::initialize(): Starting" );
54 ATH_MSG_VERBOSE( name() <<
" GeoDetectorTool::initialize(): Finished" );
55 return StatusCode::SUCCESS;
61 ATH_MSG_VERBOSE( name() <<
" GeoDetectorTool::BuildGeometry(): Starting" );
62 G4LogicalVolume* temp = this->
Convert();
69 ATH_MSG_VERBOSE( name() <<
" GeoDetectorTool::BuildGeometry(): Finished" );
74 ATH_MSG_DEBUG( name() <<
" GeoDetectorTool::PositionInParent(): Starting" );
90 G4LogicalVolume *temp=Builder.
BuildTree();
107 ATH_MSG_VERBOSE( name() <<
" GeoDetectorTool::SetInitialTransformation(): Starting" );
110 ATH_MSG_VERBOSE( name() <<
" GeoDetectorTool::SetInitialTransformation(): Creating new G4RotationMatrix" );
115 ATH_MSG_VERBOSE( name() <<
" GeoDetectorTool::SetInitialTransformation(): Finished" );
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
DetectorGeometryBase(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_detectorName
virtual void PositionInParent() override
Main builder to create/position all volumes described in a GeoModel Tree.
VolumeBuilder * GetVolumeBuilder(std::string)
G4LogicalVolume * BuildTree()
HepGeom::Transform3D GetDetectorTransform()