ATLAS Offline Software
Loading...
Searching...
No Matches
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
18
19// JetEventTPCnv includes
22#include <atomic>
23
24// Forward declaration
25class MsgStream;
26class Jet;
27
28class JetCnv_p4 : public T_AthenaPoolTPCnvConstBase<Jet, Jet_p4>
29{
30 public:
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
57 override
58 {
59 m_taginfoCnv.setTopConverter(topCnv, 0);
60 m_tagAssCnv.setTopConverter(topCnv,0);
61 }
62
64 // Protected method:
66 protected:
67
70 std::vector<TPObjRef>,
72
74
77 std::vector<TPObjRef>,
79
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
TopLevelTPCnvBase AthenaPoolTopLevelTPCnvBase
TPPolyVectorCnvConst< TRANS, PERS, CONV > T_AthenaPoolTPPolyVectorCnvConst
TPConverterConstBase< TRANS, PERS > T_AthenaPoolTPCnvConstBase
Common base class for all TP converters, specialized for a given transient type.
Definition TPConverter.h:37
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
std::atomic< int > m_nIndexTest
Definition JetCnv_p4.h:84
JetCnv_p4()
Default constructor:
Definition JetCnv_p4.cxx:42
TagInfoCollectionCnv m_taginfoCnv
Definition JetCnv_p4.h:73
std::atomic< bool > m_badIndex
Definition JetCnv_p4.h:83
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.
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
TagAssCollectionCnv m_tagAssCnv
Definition JetCnv_p4.h:80
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
virtual void initPrivateConverters(AthenaPoolTopLevelTPCnvBase *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
virtual void transToPers(const TRANS *transObj, PERS *persObj, MsgStream &log) const =0
Convert transient representation to persistent one.
virtual void persToTrans(const PERS *persObj, TRANS *transObj, MsgStream &log) const =0
Convert persistent representation to transient one.
MsgStream & msg
Definition testRead.cxx:32