ATLAS Offline Software
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 
10 void 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;
19 
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 }
RIO_OnTrackCnv_p2.h
Trk::RIO_OnTrack_p2::m_localParams
TPObjRef m_localParams
Definition: RIO_OnTrack_p2.h:22
Trk::RIO_OnTrack_p2
Definition: RIO_OnTrack_p2.h:15
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
Trk::ErrorMatrix
Definition: ErrorMatrixCnv_p1.h:25
EigenHelpers::vectorToEigenMatrix
static void vectorToEigenMatrix(VECTOR &vec, COVARIANCE &cov, const char *)
Helper fn to fill the covariance from the raw data (vec<float>)
Definition: EigenHelpers.h:22
RIO_OnTrackCnv_p2::m_errorMxCnv
ErrorMatrixCnv_p1 * m_errorMxCnv
Definition: RIO_OnTrackCnv_p2.h:32
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EigenHelpers.h
python.xAODType.dummy
dummy
Definition: xAODType.py:4
Trk::MeasurementBase::m_localParams
LocalParameters m_localParams
Definition: MeasurementBase.h:111
RIO_OnTrack.h
Trk::RIO_OnTrack::idDE
virtual IdentifierHash idDE() const =0
returns the DE hashID
Trk::MeasurementBase::m_localCovariance
Amg::MatrixX m_localCovariance
Definition: MeasurementBase.h:112
RIO_OnTrackCnv_p2::transToPers
virtual void transToPers(const Trk::RIO_OnTrack *transObj, Trk::RIO_OnTrack_p2 *persObj, MsgStream &log)
Definition: RIO_OnTrackCnv_p2.cxx:34
RIO_OnTrackCnv_p2::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: RIO_OnTrackCnv_p2.h:33
Trk::RIO_OnTrack::m_identifier
Identifier m_identifier
Identifier of the RIO_OnTrack (comes from the associated Trk::PrepRawData)
Definition: RIO_OnTrack.h:149
RIO_OnTrackCnv_p2::m_localParCnv
LocalParametersCnv_p1 * m_localParCnv
Definition: RIO_OnTrackCnv_p2.h:31
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:152
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Trk::RIO_OnTrack_p2::m_localErrMat
TPObjRef m_localErrMat
Definition: RIO_OnTrack_p2.h:24
RIO_OnTrackCnv_p2::persToTrans
virtual void persToTrans(const Trk::RIO_OnTrack_p2 *persObj, Trk::RIO_OnTrack *transObj, MsgStream &log)
Definition: RIO_OnTrackCnv_p2.cxx:10
Trk::RIO_OnTrack::detectorElement
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
Trk::RIO_OnTrack_p2::m_id
unsigned long long m_id
Definition: RIO_OnTrack_p2.h:19