ATLAS Offline Software
CompetingMuonClustersOnTrackCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //-----------------------------------------------------------------------------
6 //
7 // file: MuonCompetingRIOsOnTrackCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
16 
17 void
20  MsgStream &log )
21 {
22  auto containedChildRots = std::make_unique<std::vector< const Muon::MuonClusterOnTrack * > >();
23 
24  for (const TPObjRef& ref : persObj->m_containedChildRots) {
25  ITPConverterFor<Trk::MeasurementBase> *rotCnv = nullptr;
26  const Muon::MuonClusterOnTrack* mcot = dynamic_cast<const Muon::MuonClusterOnTrack*>(createTransFromPStore(&rotCnv, ref, log));
27  containedChildRots->push_back( mcot );
28  }
29 
30  ITPConverterFor<Trk::Surface> *surfaceCnv = nullptr;
31  Trk::Surface* associatedSurface = createTransFromPStore(&surfaceCnv, persObj->m_associatedSurface, log);
32 
34  Amg::MatrixX(),
35  associatedSurface,
36  std::move(*containedChildRots),
37  {}// assgnProb
38  );
39 
40  fillTransFromPStore( &m_cRotCnv, persObj->m_competingROT, transObj, log );
41 }
42 
43 void
46  MsgStream &/*log*/ )
47 {
48  throw std::runtime_error( "CompetingMuonClustersOnTrackCnv_p1::transToPers is deprecated!" );
49 }
50 
51 
Trk::LocalParameters
Definition: LocalParameters.h:98
ITPConverterFor< Trk::MeasurementBase >
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
MeasurementBase.h
Muon::CompetingMuonClustersOnTrack_p1::m_containedChildRots
std::vector< TPObjRef > m_containedChildRots
Definition: CompetingMuonClustersOnTrack_p1.h:27
CompetingMuonClustersOnTrack.h
Muon::CompetingMuonClustersOnTrack
Definition: CompetingMuonClustersOnTrack.h:54
TPObjRef
Definition: TPObjRef.h:20
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
CompetingMuonClustersOnTrackCnv_p1::m_cRotCnv
CompetingRIOsOnTrackCnv_p1 * m_cRotCnv
Definition: CompetingMuonClustersOnTrackCnv_p1.h:40
CompetingMuonClustersOnTrackCnv_p1.h
Muon::CompetingMuonClustersOnTrack_p1::m_associatedSurface
TPObjRef m_associatedSurface
Definition: CompetingMuonClustersOnTrack_p1.h:28
CompetingMuonClustersOnTrackCnv_p1::transToPers
virtual void transToPers(const Muon::CompetingMuonClustersOnTrack *transObj, Muon::CompetingMuonClustersOnTrack_p1 *persObj, MsgStream &log)
Definition: CompetingMuonClustersOnTrackCnv_p1.cxx:44
RIO_OnTrack.h
Muon::CompetingMuonClustersOnTrack_p1
Version 1 of the persistent class representing the transient class Muon::MuonClusterOnTrack.
Definition: CompetingMuonClustersOnTrack_p1.h:20
Muon::CompetingMuonClustersOnTrack_p1::m_competingROT
TPObjRef m_competingROT
link to base MuonClusterOnTrack_p1, inheriting from RIO_OnTrack_p1
Definition: CompetingMuonClustersOnTrack_p1.h:25
ref
const boost::regex ref(r_ef)
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonClusterOnTrack.h
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition: MuonClusterOnTrack.h:34
ITPConverterFor< TRANS_BASE >::createTransFromPStore
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
Definition: TPConverter.h:172
CompetingMuonClustersOnTrackCnv_p1::persToTrans
virtual void persToTrans(const Muon::CompetingMuonClustersOnTrack_p1 *persObj, Muon::CompetingMuonClustersOnTrack *transObj, MsgStream &log)
Definition: CompetingMuonClustersOnTrackCnv_p1.cxx:18