ATLAS Offline Software
CscClusterOnTrackCnv_p1.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 //-----------------------------------------------------------------------------
6 //
7 // file: CscClusterOnTrackCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
11 
14 
15 
18  Muon::CscClusterOnTrack *transObj, MsgStream &log )
19 {
21  m_elCnv.persToTrans(&persObj->m_prdLink,&rio,log);
22 
23  Amg::MatrixX locerr;
24  locerr.setZero();
25  *transObj = Muon::CscClusterOnTrack (rio,
26  Trk::LocalParameters(), // locpos,
27  std::move(locerr),
28  Identifier(),
29  nullptr, // detEL
30  persObj->m_positionAlongStrip,
31  static_cast<Muon::CscClusterStatus>(persObj->m_status));
32  fillTransFromPStore( &m_RIOCnv, persObj->m_RIO, transObj, log );
33 }
34 
35 
38  Muon::CscClusterOnTrack_p1 * , MsgStream & )
39 {
40  throw std::runtime_error("CscClusterOnTrackCnv_p1::transToPers is deprecated!");
41 }
42 
43 
Trk::LocalParameters
Definition: LocalParameters.h:98
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
CscClusterOnTrackCnv_p1::m_elCnv
ElementLinkCnv_p1< ElementLinkToIDC_CSC_Container > m_elCnv
Definition: CscClusterOnTrackCnv_p1.h:44
Muon::CscClusterOnTrack_p1::m_prdLink
ElementLinkInt_p1 m_prdLink
Link to PRD.
Definition: CscClusterOnTrack_p1.h:29
CscClusterOnTrackCnv_p1.h
Muon::CscClusterOnTrack_p1::m_status
unsigned int m_status
Corresponds to CscClusterStatus in transient class.
Definition: CscClusterOnTrack_p1.h:32
Muon::CscClusterOnTrack_p1::m_positionAlongStrip
float m_positionAlongStrip
position along strip (double in transient world)
Definition: CscClusterOnTrack_p1.h:35
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
CscClusterOnTrackCnv_p1::transToPers
void transToPers(const Muon ::CscClusterOnTrack *transObj, Muon ::CscClusterOnTrack_p1 *persObj, MsgStream &log)
Definition: CscClusterOnTrackCnv_p1.cxx:37
CscClusterOnTrack.h
CscClusterOnTrackCnv_p1::persToTrans
void persToTrans(const Muon ::CscClusterOnTrack_p1 *persObj, Muon ::CscClusterOnTrack *transObj, MsgStream &log)
Definition: CscClusterOnTrackCnv_p1.cxx:17
Muon::CscClusterOnTrack
Class to represent the calibrated clusters created from CSC strips.
Definition: CscClusterOnTrack.h:47
CscClusterOnTrackCnv_p1::m_RIOCnv
RIO_OnTrackCnv_p1 * m_RIOCnv
Definition: CscClusterOnTrackCnv_p1.h:43
Muon::CscClusterOnTrack_p1::m_RIO
TPObjRef m_RIO
link to base MuonClusterOnTrack_p1, inheriting from RIO_OnTrack_p1
Definition: CscClusterOnTrack_p1.h:26
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::CscClusterOnTrack_p1
Version 1 of the persistent class representing the transient class Muon::CscClusterOnTrack.
Definition: CscClusterOnTrack_p1.h:21
Muon::CscClusterStatus
CscClusterStatus
Enum to represent the cluster status - see the specific enum values for more details.
Definition: CscClusterStatus.h:23
Identifier
Definition: IdentifierFieldParser.cxx:14