ATLAS Offline Software
Loading...
Searching...
No Matches
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
17void
20 MsgStream &log )
21{
22 auto containedChildRots = std::make_unique<std::vector< const Muon::MuonClusterOnTrack * > >();
23
24 for (const TPObjRef& ref : persObj->m_containedChildRots) {
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
35 associatedSurface,
36 std::move(*containedChildRots),
37 {}// assgnProb
38 );
39
40 fillTransFromPStore( &m_cRotCnv, persObj->m_competingROT, transObj, log );
41}
42
43void
46 MsgStream &/*log*/ )
47{
48 throw std::runtime_error( "CompetingMuonClustersOnTrackCnv_p1::transToPers is deprecated!" );
49}
50
51
const boost::regex ref(r_ef)
virtual void transToPers(const Muon::CompetingMuonClustersOnTrack *transObj, Muon::CompetingMuonClustersOnTrack_p1 *persObj, MsgStream &log)
virtual void persToTrans(const Muon::CompetingMuonClustersOnTrack_p1 *persObj, Muon::CompetingMuonClustersOnTrack *transObj, MsgStream &log)
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Version 1 of the persistent class representing the transient class Muon::MuonClusterOnTrack.
TPObjRef m_competingROT
link to base MuonClusterOnTrack_p1, inheriting from RIO_OnTrack_p1
Class for competing MuonClusters, it extends the Trk::CompetingRIOsOnTrack base class.
Base class for Muon cluster RIO_OnTracks.
This class is an object reference used in Athena persistent data model.
Definition TPObjRef.h:20
Abstract Base Class for tracking surfaces.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.