66 MsgStream log(msgSvc(),
"TBDetDescrCnv");
68 <<
"in createObj: creating a TBDetDescrManager object in the detector store"
76 log << MSG::FATAL <<
"Could not cast to DetDescrAddress." <<
endmsg;
77 return StatusCode::FAILURE;
81 std::string mgrKey = *( ddAddr->par() );
83 log << MSG::DEBUG <<
"No Manager key " <<
endmsg;
86 log << MSG::DEBUG <<
"Manager key is " << mgrKey <<
endmsg;
98 G4PhysicalVolumeStore *physicalVolumeStore = G4PhysicalVolumeStore::GetInstance();
104 if (name.length() > 0) {
107 G4VPhysicalVolume *thePhysicalVolume = physicalVolumeStore->GetVolume(det,
false);
111 if (thePhysicalVolume) {
112 HepGeom::Vector3D<double> position = thePhysicalVolume->GetTranslation();
113 CLHEP::HepRotation rotation;
114 G4RotationMatrix *
r=thePhysicalVolume->GetRotation();
121 rotationEigen<<rotation.xx(),rotation.xy(),rotation.xz(),
122 rotation.yx(),rotation.yy(),rotation.yz(),
123 rotation.zx(),rotation.zy(),rotation.zz();
132 <<
"TBElement '" << name <<
"' not found among G4 volumes"
138 return StatusCode::SUCCESS;