ATLAS Offline Software
Loading...
Searching...
No Matches
RIO_OnTrackCnv_p2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5
9
10void RIO_OnTrackCnv_p2::persToTrans( const Trk::RIO_OnTrack_p2 *persObj, Trk::RIO_OnTrack *transObj, MsgStream &log )
11{
12// static int count = 0;
13// if( count++ < 10 ) {
14// log << MSG::INFO << ">>>>--------- RIO_OnTrack ID = " << persObj->m_id << endmsg;
15// }
16
17 transObj->m_identifier = persObj->m_id;
18 fillTransFromPStore( &m_localParCnv, persObj->m_localParams, &transObj->m_localParams, log );
19
20 Trk::ErrorMatrix dummy;
21 fillTransFromPStore( &m_errorMxCnv, persObj->m_localErrMat, &dummy, log );
22 EigenHelpers::vectorToEigenMatrix(dummy.values, transObj->m_localCovariance, "RIO_OnTrackCnv_p2");
23
24 // Attempt to call supertool to fill in detElements
25 m_eventCnvTool->recreateRIO_OnTrack(transObj);
26// std::cout<<"RIO_OnTrackCnv_p2::persToTrans after : detEl="<<transObj->detectorElement()<<std::endl;
27 if (transObj->detectorElement()==nullptr)
28 log << MSG::WARNING<<"Unable to reset DetEl for this RIO_OnTrack, "
29 << "probably because of a problem with the Identifier/IdentifierHash : ("
30 << transObj->identify()<<"/"<<transObj->idDE()<<endmsg;
31}
32
33
35{
36 throw std::runtime_error("RIO_OnTrackCnv_p2::transToPers is deprecated!");
37 // Take this opportunity to flatten all ROTs i.e. never use this top level convertor
38}
#define endmsg
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
ErrorMatrixCnv_p1 * m_errorMxCnv
LocalParametersCnv_p1 * m_localParCnv
virtual void transToPers(const Trk::RIO_OnTrack *transObj, Trk::RIO_OnTrack_p2 *persObj, MsgStream &log)
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
virtual void persToTrans(const Trk::RIO_OnTrack_p2 *persObj, Trk::RIO_OnTrack *transObj, MsgStream &log)
LocalParameters m_localParams
Amg::MatrixX m_localCovariance
unsigned long long m_id
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Definition RIO_OnTrack.h:70
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)