ATLAS Offline Software
TauJetContainerCnv_p5.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_p5.cxx
7 // author: Lukasz Janyst
8 // date: May 2008
9 //-----------------------------------------------------------------------------
10 
14 
15 
16 static const TauJetCnv_p5 tauCnv;
17 
20  MsgStream &msg )
21 {
22  trans->clear();
23  trans->setROIAuthor (pers->m_ROIauthor);
24  TauJetContainer_p5 :: 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_p5 *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_p5() );
43  tauCnv.transToPers( (*it), &pers->back(), msg );
44  }
45 
46 }
TauJetContainerCnv_p5.h
TauJet_p5
Definition: TauJet_p5.h:35
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TauJetContainer_p5
Definition: TauJetContainer_p5.h:19
TauJetCnv_p5::persToTrans
void persToTrans(const TauJet_p5 *pers, Analysis::TauJet *trans, MsgStream &msg) const
Fills a transient object from a persistent object.
Definition: TauJetCnv_p5.cxx:55
TauJetCnv_p5::transToPers
void transToPers(const Analysis::TauJet *trans, TauJet_p5 *pers, MsgStream &msg) const
Fills a persistent object from a transient object
Definition: TauJetCnv_p5.cxx:130
TauJetCnv_p5
Transient<->persistent converter for Analysis::TauJet v5.
Definition: TauJetCnv_p5.h:28
TauJetContainer.h
TauJetCnv_p5.h
TauJetContainerCnv_p5::persToTrans
virtual void persToTrans(const TauJetContainer_p5 *persObj, Analysis ::TauJetContainer *transObj, MsgStream &msg)
Definition: TauJetContainerCnv_p5.cxx:18
TauJetContainerCnv_p5::transToPers
virtual void transToPers(const Analysis ::TauJetContainer *transObj, TauJetContainer_p5 *persObj, MsgStream &msg)
Definition: TauJetContainerCnv_p5.cxx:33
TauJetContainer_p5::m_ROIauthor
std ::string m_ROIauthor
Definition: TauJetContainer_p5.h:21
xAOD::TauJetContainer
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
Definition: Event/xAOD/xAODTau/xAODTau/TauJetContainer.h:17
TauJet
@ TauJet
Definition: TruthClasses.h:47
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7