ATLAS Offline Software
Loading...
Searching...
No Matches
TruthTrajectoryCnv_p3.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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
15namespace {
16 const HepMcParticleLinkCnv_p3 particleLinkConverter;
17}
18
20 TruthTrajectory* trans,
21 MsgStream& msg ) const
22{
23 trans->resize(pers->size());
24 for(Trk::TruthTrajectory_p3::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}
virtual void persToTrans(const Trk::TruthTrajectory_p3 *persObj, TruthTrajectory *transObj, MsgStream &msg) const override
Method creating the transient representation of Analysis::TruthTrajectory from its persistent represe...
virtual void transToPers(const TruthTrajectory *transObj, Trk::TruthTrajectory_p3 *persObj, MsgStream &msg) const override
Method creating the persistent representation TruthTrajectory_p3 from its transient representation An...
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...
MsgStream & msg
Definition testRead.cxx:32