ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetEventTPCnv
JetEventTPCnv
JetCnv_p4.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// JetCnv_p4.h
8
// Header file for class JetCnv_p4
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef JETEVENTTPCNV_JETCNV_P4_H
12
#define JETEVENTTPCNV_JETCNV_P4_H
13
14
// STL includes
15
16
// AthenaPoolCnvSvc includes
17
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
18
19
// JetEventTPCnv includes
20
#include "
JetEventTPCnv/Jet_p4.h
"
21
#include "
JetEvent/JetTagInfoBase.h
"
22
#include <atomic>
23
24
// Forward declaration
25
class
MsgStream;
26
class
Jet
;
27
28
class
JetCnv_p4
:
public
T_AthenaPoolTPCnvConstBase
<Jet, Jet_p4>
29
{
30
public
:
31
using
base_class::transToPers
;
32
using
base_class::persToTrans
;
33
34
37
JetCnv_p4
();
38
39
43
virtual
void
persToTrans
(
const
Jet_p4
* persObj,
44
Jet
* transObj,
45
MsgStream&
msg
)
const override
;
46
50
virtual
void
transToPers
(
const
Jet
* transObj,
51
Jet_p4
* persObj,
52
MsgStream&
msg
)
const override
;
53
56
inline
virtual
void
initPrivateConverters
(
TopLevelTPCnvBase
*topCnv)
57
override
58
{
59
m_taginfoCnv
.setTopConverter(topCnv, 0);
60
m_tagAssCnv
.setTopConverter(topCnv,0);
61
}
62
64
// Protected method:
66
protected
:
67
69
typedef
T_AthenaPoolTPPolyVectorCnvConst<std::vector<const JetTagInfoBase*>
,
70
std::vector<TPObjRef>,
71
ITPConverterFor<JetTagInfoBase>
>
TagInfoCollectionCnv
;
72
73
TagInfoCollectionCnv
m_taginfoCnv
;
74
76
typedef
T_AthenaPoolTPPolyVectorCnvConst<std::vector<const JetAssociationBase*>
,
77
std::vector<TPObjRef>,
78
ITPConverterFor<JetAssociationBase>
>
TagAssCollectionCnv
;
79
80
TagAssCollectionCnv
m_tagAssCnv
;
81
82
// See persToTrans().
83
mutable
std::atomic<bool>
m_badIndex
;
84
mutable
std::atomic<int>
m_nIndexTest
;
85
86
};
87
88
89
#endif
//> JETEVENTTPCNV_JETCNV_P4_H
JetTagInfoBase.h
Jet_p4.h
T_AthenaPoolTPConverter.h
T_AthenaPoolTPPolyVectorCnvConst
TPPolyVectorCnvConst< TRANS, PERS, CONV > T_AthenaPoolTPPolyVectorCnvConst
Definition
T_AthenaPoolTPConverter.h:63
T_AthenaPoolTPCnvConstBase
TPConverterConstBase< TRANS, PERS > T_AthenaPoolTPCnvConstBase
Definition
T_AthenaPoolTPConverter.h:44
ITPConverterFor
Common base class for all TP converters, specialized for a given transient type.
Definition
TPConverter.h:37
JetCnv_p4::persToTrans
virtual void persToTrans(const Jet_p4 *persObj, Jet *transObj, MsgStream &msg) const override
Method creating the transient representation of Jet from its persistent representation Jet_p4.
Definition
JetCnv_p4.cxx:55
JetCnv_p4::m_nIndexTest
std::atomic< int > m_nIndexTest
Definition
JetCnv_p4.h:84
JetCnv_p4::JetCnv_p4
JetCnv_p4()
Default constructor:
Definition
JetCnv_p4.cxx:42
JetCnv_p4::m_taginfoCnv
TagInfoCollectionCnv m_taginfoCnv
Definition
JetCnv_p4.h:73
JetCnv_p4::m_badIndex
std::atomic< bool > m_badIndex
Definition
JetCnv_p4.h:83
JetCnv_p4::initPrivateConverters
virtual void initPrivateConverters(TopLevelTPCnvBase *topCnv) override
Init the converter so that it knows about its "parents" when it has to walk the lookup chain.
Definition
JetCnv_p4.h:56
JetCnv_p4::transToPers
virtual void transToPers(const Jet *transObj, Jet_p4 *persObj, MsgStream &msg) const override
Method creating the persistent representation Jet_p4 from its transient representation Jet.
Definition
JetCnv_p4.cxx:205
JetCnv_p4::TagInfoCollectionCnv
T_AthenaPoolTPPolyVectorCnvConst< std::vector< const JetTagInfoBase * >, std::vector< TPObjRef >, ITPConverterFor< JetTagInfoBase > > TagInfoCollectionCnv
Hold onto the converter for the jet tag info objects.
Definition
JetCnv_p4.h:71
JetCnv_p4::m_tagAssCnv
TagAssCollectionCnv m_tagAssCnv
Definition
JetCnv_p4.h:80
JetCnv_p4::TagAssCollectionCnv
T_AthenaPoolTPPolyVectorCnvConst< std::vector< const JetAssociationBase * >, std::vector< TPObjRef >, ITPConverterFor< JetAssociationBase > > TagAssCollectionCnv
Hold onto the converter for the jet assoctiaion objects.
Definition
JetCnv_p4.h:78
Jet_p4
Definition
Jet_p4.h:37
Jet
Definition
Reconstruction/Jet/JetEvent/JetEvent/Jet.h:47
TPConverterConstBase::transToPers
virtual void transToPers(const TRANS *transObj, PERS *persObj, MsgStream &log) const =0
Convert transient representation to persistent one.
TPConverterConstBase::persToTrans
virtual void persToTrans(const PERS *persObj, TRANS *transObj, MsgStream &log) const =0
Convert persistent representation to transient one.
TopLevelTPCnvBase
Base class for top-level TP converters.
Definition
TopLevelTPCnvBase.h:32
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0