ATLAS Offline Software
SvxSummaryCnv_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 
8 
12 
13 #include "GaudiKernel/MsgStream.h"
14 
15 #include "TPHelpers.h"
16 
17 namespace Analysis {
18 
23  SvxSummary_p1 *persObj,
24  MsgStream &msg)
25  {
28  transObj,
29  msg);
30 
32  persObj->m_Results.assign(transObj->Results().begin(),
33  transObj->Results().end());
34 
37  &transObj->Svx(),
38  msg);
39 
41  (this,
43  transObj->TrkInSvx(),
44  persObj->m_TrkInSvx,
45  msg);
47  (this,
49  transObj->TrkFromV0(),
50  persObj->m_TrkFromV0,
51  msg);
52 
53  }
54 
59  SvxSummary *transObj,
60  MsgStream &msg)
61  {
63  fillTransFromPStore (&m_baseTagCnv, persObj->m_BaseTagInfo, transObj, msg);
64 
66  transObj->Results (std::vector<double> (persObj->m_Results.begin(),
67  persObj->m_Results.end()));
68 
70  Trk::RecVertex svx;
72  persObj->m_Svx,
73  &svx,
74  msg);
75  transObj->Svx (std::move (svx));
76 
77  std::vector<const Rec::TrackParticle*> trkInSvx;
80  persObj->m_TrkInSvx,
81  trkInSvx,
82  msg);
83  transObj->TrkInSvx (std::move (trkInSvx));
84 
85  std::vector<const Rec::TrackParticle*> trkFromV0;
88  persObj->m_TrkFromV0,
89  trkFromV0,
90  msg);
91  transObj->TrkFromV0 (std::move (trkFromV0));
92  }
93 
94 }
Analysis::SvxSummary::TrkFromV0
void TrkFromV0(const std::vector< const Rec::TrackParticle * > &v0t)
Definition: SvxSummary.h:44
Analysis::transToPersVectorObj
void transToPersVectorObj(CNV *masterCvt, CNVForObj **cnv, const std::vector< ObjType * > &transVector, std::vector< TPObjRef > &result, MsgStream &msg)
Translate a set of pointers to objects to their persistent rep, saving them in the tlp container.
Definition: TPHelpers.h:38
SvxSummaryCnv_p1.h
TPHelpers.h
BaseTagInfoCnv_p1.h
SvxSummary.h
Analysis::SvxSummary::TrkInSvx
void TrkInSvx(const std::vector< const Rec::TrackParticle * > &vtl)
Definition: SvxSummary.h:41
Analysis::SvxSummary::Results
void Results(const std::vector< double > &res)
Definition: SvxSummary.h:38
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
Analysis::SvxSummary::Svx
void Svx(const Trk::RecVertex &svx)
Set/Get method.
Definition: SvxSummary.h:37
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
Analysis::SvxSummaryCnv_p1::persToTrans
virtual void persToTrans(const SvxSummary_p1 *persObj, SvxSummary *transObj, MsgStream &log)
Load from disk format to in-memory format.
Definition: SvxSummaryCnv_p1.cxx:58
Analysis::SvxSummaryCnv_p1::transToPers
virtual void transToPers(const SvxSummary *transObj, SvxSummary_p1 *persObj, MsgStream &log)
Given a transient rep, save it to a persistent one.
Definition: SvxSummaryCnv_p1.cxx:22
Analysis::SvxSummary_p1::m_TrkFromV0
std::vector< TPObjRef > m_TrkFromV0
Definition: SvxSummary_p1.h:32
Analysis::persToTransVectorObj
void persToTransVectorObj(CNV *masterCvt, CNVForObj **cnv, const std::vector< TPObjRef > &persVector, std::vector< ObjType * > &result, MsgStream &msg)
Given a vector of poitners to an object, create the persistent from the transient.
Definition: TPHelpers.h:20
Analysis::SvxSummaryCnv_p1::m_trackParticleCnv
ITPConverterFor< Rec::TrackParticle > * m_trackParticleCnv
Definition: SvxSummaryCnv_p1.h:44
Analysis::SvxSummary_p1
Definition: SvxSummary_p1.h:19
Analysis::SvxSummaryCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition: SvxSummaryCnv_p1.h:42
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::SvxSummary_p1::m_Svx
TPObjRef m_Svx
All of this data will be written out.
Definition: SvxSummary_p1.h:27
Analysis::SvxSummaryCnv_p1::m_recoVertexCnv
ITPConverterFor< Trk::Vertex > * m_recoVertexCnv
Definition: SvxSummaryCnv_p1.h:43
Analysis::SvxSummary_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Basic info.
Definition: SvxSummary_p1.h:23
Analysis::SvxSummary_p1::m_TrkInSvx
std::vector< TPObjRef > m_TrkInSvx
Pointers to Rec::TrackParticle.
Definition: SvxSummary_p1.h:31
Analysis::SvxSummary_p1::m_Results
std::vector< float > m_Results
Definition: SvxSummary_p1.h:28
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Analysis::SvxSummary
Definition: SvxSummary.h:18