ATLAS Offline Software
TruthTrajectoryCnv_p2.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 // T/P converter for TruthTrajectory.
6 // Andrei Gaponenko <agaponenko@lbl.gov>, 2007
7 // Olivier Arnaez <olivier.arnaez@cern.ch>, 2015
8 
12 
14 
15 namespace {
16  const HepMcParticleLinkCnv_p2 particleLinkConverter;
17 }
18 
20  TruthTrajectory* trans,
21  MsgStream& msg ) const
22 {
23  trans->resize(pers->size());
24  for(Trk::TruthTrajectory_p2::size_type i=0; i<trans->size(); i++) {
25  particleLinkConverter.persToTrans( &((*pers)[i]), &((*trans)[i]), msg);
26  }
27 }
28 
31  MsgStream& msg ) const
32 {
33  pers->resize(trans->size());
34  for(TruthTrajectory::size_type i=0; i<trans->size(); i++) {
35  particleLinkConverter.transToPers( &((*trans)[i]), &((*pers)[i]), msg);
36  }
37 }
TruthTrajectoryCnv_p2::persToTrans
virtual void persToTrans(const Trk::TruthTrajectory_p2 *persObj, TruthTrajectory *transObj, MsgStream &msg) const override
Method creating the transient representation of Analysis::TruthTrajectory from its persistent represe...
Definition: TruthTrajectoryCnv_p2.cxx:19
TruthTrajectoryCnv_p2.h
lumiFormat.i
int i
Definition: lumiFormat.py:92
Trk::TruthTrajectory_p2
Definition: TruthTrajectory_p2.h:22
TruthTrajectory_p2.h
TruthTrajectory
Definition: TruthTrajectory.h:26
HepMcParticleLinkCnv_p2.h
TruthTrajectoryCnv_p2::transToPers
virtual void transToPers(const TruthTrajectory *transObj, Trk::TruthTrajectory_p2 *persObj, MsgStream &msg) const override
Method creating the persistent representation TruthTrajectory_p2 from its transient representation An...
Definition: TruthTrajectoryCnv_p2.cxx:29
TruthTrajectory.h
HepMcParticleLinkCnv_p2
Definition: HepMcParticleLinkCnv_p2.h:29
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7