ATLAS Offline Software
TauJetContainerCnv_p3.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 //-----------------------------------------------------------------------------
6 // file: TauJetConainerCnv_p3.cxx
7 // author: Lukasz Janyst
8 // date: May 2008
9 //-----------------------------------------------------------------------------
10 
14 
15 
16 static const TauJetCnv_p3 tauCnv;
17 
20  MsgStream &msg )
21 {
22  trans->clear();
23  trans->setROIAuthor (pers->m_ROIauthor);
24  TauJetContainer_p3 :: const_iterator it = pers->begin();
25  for( ; it != pers->end(); ++it )
26  {
28  tauCnv.persToTrans( &(*it), tau, msg );
29  trans->push_back( tau );
30  }
31 }
32 
34  TauJetContainer_p3 *pers,
35  MsgStream &msg )
36 {
37  pers->reserve( trans->size() ); // prevent re-alloc
38  pers->m_ROIauthor = trans->getROIAuthor();
39  Analysis :: TauJetContainer :: const_iterator it = trans->begin();
40  for( ; it != trans->end(); ++it )
41  {
42  pers->push_back( TauJet_p3() );
43  tauCnv.transToPers( (*it), &pers->back(), msg );
44  }
45 
46 }
TauJetCnv_p3::persToTrans
void persToTrans(const TauJet_p3 *pers, Analysis::TauJet *trans, MsgStream &msg) const
Fills a transient object from a persistent object.
Definition: TauJetCnv_p3.cxx:52
TauJetContainerCnv_p3.h
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TauJetContainerCnv_p3::transToPers
virtual void transToPers(const Analysis ::TauJetContainer *transObj, TauJetContainer_p3 *persObj, MsgStream &msg)
Definition: TauJetContainerCnv_p3.cxx:33
TauJetContainerCnv_p3::persToTrans
virtual void persToTrans(const TauJetContainer_p3 *persObj, Analysis ::TauJetContainer *transObj, MsgStream &msg)
Definition: TauJetContainerCnv_p3.cxx:18
TauJetContainer.h
TauJet_p3
Definition: TauJet_p3.h:32
TauJetCnv_p3.h
xAOD::TauJetContainer
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
Definition: Event/xAOD/xAODTau/xAODTau/TauJetContainer.h:17
TauJetContainer_p3
Definition: TauJetContainer_p3.h:19
TauJet
@ TauJet
Definition: TruthClasses.h:47
TauJetCnv_p3::transToPers
void transToPers(const Analysis::TauJet *trans, TauJet_p3 *pers, MsgStream &msg) const
Fills a persistent object from a transient object
Definition: TauJetCnv_p3.cxx:93
TauJetCnv_p3
Transient<->persistent converter for Analysis::TauCommonDetails v3.
Definition: TauJetCnv_p3.h:28
TauJetContainer_p3::m_ROIauthor
std ::string m_ROIauthor
Definition: TauJetContainer_p3.h:21
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7