ATLAS Offline Software
Reconstruction
tauEventTPCnv
src
TauJetContainerCnv_p2.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_p2.cxx
7
// author: Ilija Vukotic
8
// date: April 2008
9
//-----------------------------------------------------------------------------
10
11
#include "
tauEvent/TauJetContainer.h
"
12
#include "
tauEventTPCnv/TauJetContainerCnv_p2.h
"
13
#include "
tauEventTPCnv/TauJetCnv_p2.h
"
14
15
16
static
const
TauJetCnv_p2
tauCnv;
17
18
void
TauJetContainerCnv_p2 :: persToTrans
(
const
TauJetContainer_p2
*pers,
19
Analysis :: TauJetContainer
*trans,
20
MsgStream &
msg
)
21
{
22
trans->clear();
23
trans->setROIAuthor (pers->
m_ROIauthor
);
24
TauJetContainer_p2 :: const_iterator
it
= pers->begin();
25
for
( ;
it
!= pers->end(); ++
it
)
26
{
27
Analysis :: TauJet
*tau =
new
Analysis :: TauJet
();
28
tauCnv.
persToTrans
( &(*
it
), tau,
msg
);
29
trans->push_back( tau );
30
}
31
}
32
33
void
TauJetContainerCnv_p2 :: transToPers
(
const
Analysis :: TauJetContainer
*trans,
34
TauJetContainer_p2
*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_p2
() );
43
tauCnv.
transToPers
( (*
it
), &pers->back(),
msg
);
44
}
45
46
}
TauJetContainer_p2::m_ROIauthor
std ::string m_ROIauthor
Definition:
TauJetContainer_p2.h:21
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
TauJetContainerCnv_p2.h
TauJetCnv_p2
Definition:
TauJetCnv_p2.h:20
TauJetContainer_p2
Definition:
TauJetContainer_p2.h:19
TauJetCnv_p2::transToPers
void transToPers(const Analysis ::TauJet *transObj, TauJet_p2 *persObj, MsgStream &msg) const
Definition:
TauJetCnv_p2.cxx:78
TauJetContainer.h
TauJet_p2
Definition:
TauJet_p2.h:24
TauJetContainerCnv_p2::persToTrans
virtual void persToTrans(const TauJetContainer_p2 *persObj, Analysis ::TauJetContainer *transObj, MsgStream &msg)
Definition:
TauJetContainerCnv_p2.cxx:18
TauJetContainerCnv_p2::transToPers
virtual void transToPers(const Analysis ::TauJetContainer *transObj, TauJetContainer_p2 *persObj, MsgStream &msg)
Definition:
TauJetContainerCnv_p2.cxx:33
xAOD::TauJetContainer
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
Definition:
Event/xAOD/xAODTau/xAODTau/TauJetContainer.h:17
TauJetCnv_p2::persToTrans
void persToTrans(const TauJet_p2 *persObj, Analysis ::TauJet *transObj, MsgStream &msg) const
Definition:
TauJetCnv_p2.cxx:39
TauJet
@ TauJet
Definition:
TruthClasses.h:47
TauJetCnv_p2.h
python.AutoConfigFlags.msg
msg
Definition:
AutoConfigFlags.py:7
Generated on Thu Nov 7 2024 21:27:03 for ATLAS Offline Software by
1.8.18