ATLAS Offline Software
TauJetContainerCnv_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 //-----------------------------------------------------------------------------
6 // file: TauJetConainerCnv_p1.cxx
7 // author: Kyle Cranmer, Sebastien Binet, Lukasz Janyst
8 // date: April 2007
9 //-----------------------------------------------------------------------------
10 
14 
15 
16 static const TauJetCnv_p1 tauCnv;
17 
20  MsgStream &msg )
21 {
22  trans->clear();
23  trans->setROIAuthor (pers->m_ROIauthor);
24  TauJetContainer_p1 :: 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_p1 *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_p1() );
43  tauCnv.transToPers( (*it), &pers->back(), msg );
44  }
45 
46 }
TauJetCnv_p1
Definition: TauJetCnv_p1.h:24
TauJetContainerCnv_p1.h
TauJetContainer_p1
Definition: TauJetContainer_p1.h:19
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TauJetContainerCnv_p1::transToPers
virtual void transToPers(const Analysis ::TauJetContainer *transObj, TauJetContainer_p1 *persObj, MsgStream &msg)
Definition: TauJetContainerCnv_p1.cxx:33
TauJetContainerCnv_p1::persToTrans
virtual void persToTrans(const TauJetContainer_p1 *persObj, Analysis ::TauJetContainer *transObj, MsgStream &msg)
Definition: TauJetContainerCnv_p1.cxx:18
TauJetCnv_p1::persToTrans
void persToTrans(const TauJet_p1 *persObj, Analysis ::TauJet *transObj, MsgStream &msg) const
Definition: TauJetCnv_p1.cxx:39
TauJet_p1
Definition: TauJet_p1.h:24
TauJetContainer.h
TauJetCnv_p1::transToPers
void transToPers(const Analysis ::TauJet *transObj, TauJet_p1 *persObj, MsgStream &msg) const
Definition: TauJetCnv_p1.cxx:77
xAOD::TauJetContainer
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
Definition: Event/xAOD/xAODTau/xAODTau/TauJetContainer.h:17
TauJetCnv_p1.h
TauJet
@ TauJet
Definition: TruthClasses.h:47
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
TauJetContainer_p1::m_ROIauthor
std ::string m_ROIauthor
Definition: TauJetContainer_p1.h:21