ATLAS Offline Software
Loading...
Searching...
No Matches
PRD_MultiTruthCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
15
16constexpr pool::Guid s_p0_guid("30794FF9-F003-44A6-8553-ED61E2039882");
17constexpr pool::Guid s_p1_guid("6649A9D1-719F-4954-A385-D01BCA8E41EF");
18constexpr pool::Guid s_p2_guid("714F2E4A-419D-4BDB-8080-BEEB6CDBA0DA");
19constexpr pool::Guid s_p3_guid("68703476-9D09-4504-B492-E5E4DC933E71");
20constexpr pool::Guid s_p4_guid("018E41E8-F175-7EB8-AF1D-5CA0794CAF9B");
21
22//================================================================
26
27//================================================================
29 MsgStream log(msgSvc(), "PRD_MultiTruthCollectionCnv");
30 log<<MSG::DEBUG<<"Writing PRD_MultiTruthCollection_p4"<<endmsg;
32 m_converter_p4.transToPers(trans,pers,log);
33 return pers;
34}
35
36//================================================================
38 MsgStream log(msgSvc(), "PRD_MultiTruthCollectionCnv" );
39 std::unique_ptr<PRD_MultiTruthCollection> trans(new PRD_MultiTruthCollection());
40
42 log<<MSG::DEBUG<<"Read PRD_MultiTruthCollection_p4. GUID="<<m_classID.toString()<<endmsg;
44 m_converter_p4.persToTrans(pers, trans.get(), log);
45 delete pers;
46 }
47 else if (compareClassGuid(s_p3_guid)) {
48 log<<MSG::DEBUG<<"Read PRD_MultiTruthCollection_p3. GUID="<<m_classID.toString()<<endmsg;
50 m_converter_p3.persToTrans(pers, trans.get(), log);
51 delete pers;
52 }
53 else if (compareClassGuid(s_p2_guid)) {
54 log<<MSG::DEBUG<<"Read PRD_MultiTruthCollection_p2. GUID="<<m_classID.toString()<<endmsg;
56 m_converter_p2.persToTrans(pers, trans.get(), log);
57 delete pers;
58 }
59 else if (compareClassGuid(s_p1_guid)) {
60 log<<MSG::DEBUG<<"Read PRD_MultiTruthCollection_p1. GUID="<<m_classID.toString()<<endmsg;
62 m_converter_p1.persToTrans(pers, trans.get(), log);
63 delete pers;
64 }
65 else if (compareClassGuid(s_p0_guid)) {
66 log<<MSG::DEBUG<<"Read version p0 of PRD_MultiTruthCollection. GUID="<<m_classID.toString()<<endmsg;
68 }
69 else {
70 log<<MSG::ERROR<<"Unsupported persistent version of PRD_MultiTruthCollection. GUID="
71 <<m_classID.toString()<<endmsg;
72 throw std::runtime_error("Unsupported persistent version of Data Collection");
73 }
74
75 return trans.release();
76}
77
78//================================================================
#define endmsg
constexpr pool::Guid s_p4_guid("018E422D-E420-7894-9245-A824C0ECE535")
constexpr pool::Guid s_p3_guid("68703476-9D09-4504-B492-E5E4DC933E71")
constexpr pool::Guid s_p1_guid("6649A9D1-719F-4954-A385-D01BCA8E41EF")
constexpr pool::Guid s_p2_guid("714F2E4A-419D-4BDB-8080-BEEB6CDBA0DA")
constexpr pool::Guid s_p0_guid("30794FF9-F003-44A6-8553-ED61E2039882")
constexpr pool::Guid s_p4_guid("018E41E8-F175-7EB8-AF1D-5CA0794CAF9B")
Trk::PRD_MultiTruthCollection_p4 PRD_MultiTruthCollectionPERS
T_AthenaPoolCustomCnv< PRD_MultiTruthCollection, PRD_MultiTruthCollectionPERS > PRD_MultiTruthCollectionCnvBase
constexpr pool::Guid s_p3_guid("018F1ACE-8405-7174-9305-46B503B5EF52")
constexpr pool::Guid s_p0_guid("B35041E8-D980-458E-AC06-79028CF79D5D")
constexpr pool::Guid s_p1_guid("D62AFEEE-EF2C-437A-B7BE-CA926D38CCFA")
constexpr pool::Guid s_p2_guid("D62AFEEE-EF2C-437A-B7BE-CA926D38CCFB")
PRD_MultiTruthCollectionCnv_p1 m_converter_p1
PRD_MultiTruthCollectionCnv_p2 m_converter_p2
PRD_MultiTruthCollectionCnv_p4 m_converter_p4
virtual PRD_MultiTruthCollection * createTransient()
virtual PRD_MultiTruthCollectionPERS * createPersistent(PRD_MultiTruthCollection *)
PRD_MultiTruthCollectionCnv_p3 m_converter_p3
A PRD is mapped onto all contributing particles.