ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace {
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}
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...
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...
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...
MsgStream & msg
Definition testRead.cxx:32