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