22 if (this->
initialize(log) != StatusCode::SUCCESS) {
23 log << MSG::FATAL <<
"Could not initialize RIO_OnTRackCnv_p1 " <<
endmsg;
27 if (
m_pixId->is_shortened_pixel_id(persObj->
m_id)) {
39 EigenHelpers::vectorToEigenMatrix(dummy.values, transObj->
m_localCovariance,
"RIO_OnTrackCnv_p1");
43 size_t size = dummy.values.size();
47 transObj->
m_localCovariance<<dummy.values[0],dummy.values[1],dummy.values[1],dummy.values[2];
49 throw std::runtime_error(
"RIO_OnTrackCnv_p2::persToTrans - matrix has unexpected size of "+std::to_string (size)+
"!");
57 log << MSG::WARNING<<
"Unable to reset DetEl for this RIO_OnTrack, "
58 <<
"probably because of a problem with the Identifier/IdentifierHash : ("
65 throw std::runtime_error(
"RIO_OnTrackCnv_p1::transToPers is deprecated!");
72 SmartIF<StoreGateSvc> detStore(Gaudi::svcLocator()->service(
"DetectorStore"));
73 CHECK( detStore.isValid() );
78 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
virtual void persToTrans(const Trk::RIO_OnTrack_p1 *persObj, Trk::RIO_OnTrack *transObj, MsgStream &log)
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
LocalParametersCnv_p1 * m_localParCnv
virtual void transToPers(const Trk::RIO_OnTrack *transObj, Trk::RIO_OnTrack_p1 *persObj, MsgStream &log)
ErrorMatrixCnv_p1 * m_errorMxCnv
StatusCode initialize(MsgStream &log)
LocalParameters m_localParams
Amg::MatrixX m_localCovariance
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
Identifier identify() const
return the identifier -extends MeasurementBase
virtual IdentifierHash idDE() const =0
returns the DE hashID
Identifier m_identifier
Identifier of the RIO_OnTrack (comes from the associated Trk::PrepRawData)