|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/MsgStream.h"
17 #include "GaudiKernel/Bootstrap.h"
18 #include "GaudiKernel/ISvcLocator.h"
25 #include "G4PhysicalVolumeStore.hh"
26 #include "G4VPhysicalVolume.hh"
28 #include <CLHEP/Geometry/Vector3D.h>
39 log << MSG::INFO <<
"in initialize" <<
endmsg;
42 log << MSG::ERROR <<
"DetDescrConverter::initialize failed" <<
endmsg;
46 return StatusCode::SUCCESS;
55 log << MSG::INFO <<
"in finalize" <<
endmsg;
57 return StatusCode::SUCCESS;
68 <<
"in createObj: creating a TBDetDescrManager object in the detector store"
77 return StatusCode::FAILURE;
81 std::string mgrKey = *( ddAddr->par() );
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();
114 G4RotationMatrix *
r=thePhysicalVolume->GetRotation();
131 <<
"TBElement '" <<
name <<
"' not found among G4 volumes"
137 return StatusCode::SUCCESS;
166 MsgStream
log(
msgSvc(),
"TBDetDescrCnv");
168 <<
"in TBDetDescrCnv::TBDetDescrCnv "
const std::string & name() const
const long DetDescr_StorageType
std::vector< Identifier > ID
convert to and from a SG storable
DataObject * asStorable(T *pObject)
void setElement(const TBElement &element)
const TBElement & getElement(TBElementID::TBElementID id) const
static const CLID & ID()
the CLID of T
static long storageType()
msgSvc
Provide convenience handles for various services.
TBDetDescrCnv(ISvcLocator *svcloc)
::StatusCode StatusCode
StatusCode definition for legacy code.
static const CLID & classID()
Default, invalid implementation of ClassID_traits.
uint32_t CLID
The Class ID type.
virtual StatusCode finalize()
Eigen::Matrix< double, 3, 1 > Vector3D
virtual StatusCode initialize()
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
virtual long repSvcType() const
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)