ATLAS Offline Software
InDetLowBetaContainerCnv_p1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETLOWBETACONTAINER_CNV_P1_H
6 #define INDETLOWBETACONTAINER_CNV_P1_H
7 
9 
13 
14 
15 class InDetLowBetaContainerCnv_p1 : public T_AthenaPoolTPPtrVectorCnv<InDet::InDetLowBetaContainer, InDetLowBetaContainer_p1, InDetLowBetaCandidateCnv_p1> {
16 
17  public:
18 
20 
21 
22 };
23 
24 /* // This part is implemented in T_AthenaPoolTPConverter.h. */
25 /* // It is here temporarily to override and allow some extra debugging */
26 /* virtual void persToTrans(const InDetLowBetaContainer_p1 *persVect, */
27 /* InDetLowBetaContainer *transVect, */
28 /* MsgStream &log) { */
29 /* log << MSG::DEBUG << "InDetLowBetaContainerCnv::persToTrans" << endmsg; */
30 /* if (!persVect) { */
31 /* log << MSG::WARNING << "InDetLowBetaContainerCnv::persToTrans cannot convert NULL persVect" << endmsg; */
32 /* return; */
33 /* } */
34 /* if (!transVect) { */
35 /* log << MSG::WARNING << "InDetLowBetaContainerCnv::persToTrans cannot convert to NULL transVect" << endmsg; */
36 /* return; */
37 /* } */
38 
39 /* transVect->clear(); */
40 /* transVect->reserve(persVect->size()); */
41 
42 /* // convert vector entries one by one */
43 /* for (InDetLowBetaContainer_p1::const_iterator it = persVect->begin(); */
44 /* it != persVect->end(); ++it) { */
45 /* InDetLowBetaCandidate *p = createTransFromPStore(&m_elementCnv, *it, log); */
46 /* transVect->push_back(p); */
47 /* if (!p) */
48 /* log << MSG::WARNING << "InDetLowBetaContainerCnv::persToTrans failed for an element " << endmsg; */
49 /* } */
50 /* } */
51 
52 
53 /* virtual void transToPers(const InDetLowBetaContainer *transVect, */
54 /* InDetLowBetaContainer_p1 *persVect, */
55 /* MsgStream &log) { */
56 /* if (!persVect) { */
57 /* log << MSG::WARNING << "InDetLowBetaContainerCnv::transToPers cannot convert NULL persVect" << endmsg; */
58 /* return; */
59 /* } */
60 /* if (!transVect) { */
61 /* log << MSG::WARNING << "InDetLowBetaContainerCnv::transToPers cannot convert to NULL transVect" << endmsg; */
62 /* return; */
63 /* } */
64 
65 /* persVect->clear(); */
66 /* persVect->reserve(transVect->size()); */
67 /* // convert vector entries one by one */
68 /* for (InDetLowBetaContainer::const_iterator it = transVect->begin(); */
69 /* it != transVect->end(); ++it ) { */
70 
71 /* TPObjRef a = toPersistent(&m_elementCnv, *it, log); */
72 /* persVect->push_back(a); */
73 /* if (a.isNull()) { */
74 /* log << MSG::WARNING << "InDetLowBetaContainerCnv::transToPers failed for an element " << *it << " " */
75 /* << m_elementCnv << endmsg; */
76 /* }else { */
77 /* log << MSG::WARNING << "InDetLowBetaContainerCnv::transToPers succeeded for an element " << *it << " " */
78 /* << m_elementCnv << endmsg; */
79 /* } */
80 
81 /* } */
82 /* } */
83 /* }; */
84 
85 #endif
InDetLowBetaCandidateCnv_p1.h
InDetLowBetaContainerCnv_p1::InDetLowBetaContainerCnv_p1
InDetLowBetaContainerCnv_p1()
Definition: InDetLowBetaContainerCnv_p1.h:19
T_AthenaPoolTPConverter.h
InDetLowBetaContainerCnv_p1
Definition: InDetLowBetaContainerCnv_p1.h:15
InDetLowBetaContainer.h
InDetLowBetaContainer_p1.h
TPPtrVectorCnv
Definition: TPConverter.h:919