15#include "GeoModelKernel/GeoDefinitions.h"
16#include "GaudiKernel/SystemOfUnits.h"
24 for (
unsigned int s=0;s<positionRecSet->
size(); s++) {
25 const IRDBRecord *currentRec= (*positionRecSet)[s];
26 if (key == currentRec->
getString(
"NAME")) {
34 double x = currentRec->
getDouble(
"TRANSX")*Gaudi::Units::mm;
35 double y = currentRec->
getDouble(
"TRANSY")*Gaudi::Units::mm;
36 double z = currentRec->
getDouble(
"TRANSZ")*Gaudi::Units::mm;
38 double phi = currentRec->
getDouble(
"PHI")*Gaudi::Units::rad;
39 double rotationAngle = currentRec->
getDouble(
"ROTATIONANGLE")*Gaudi::Units::rad;
42 return GeoTrf::Translate3D(
x,
y,
z)*GeoTrf::Rotate3D(rotationAngle,axis);
Scalar phi() const
phi method
Scalar theta() const
theta method
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
Ensure that the extensions for the Vector3D are properly loaded.
static const IRDBRecord * getTransformRecord(IRDBRecordset_ptr positionRecSet, const std::string &key)
static GeoTrf::Transform3D getTransform(const IRDBRecord *currentRec)
IRDBRecord is one record in the IRDBRecordset object.
virtual const std::string & getString(const std::string &fieldName) const =0
Get string field value.
virtual double getDouble(const std::string &fieldName) const =0
Get double field value.
virtual unsigned int size() const =0