ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_SIDSimHitCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
8
10{
11 MsgStream mlog(msgSvc(), "AFP_SIDSimHitCollectionConverter" );
12
14 AFP_SIDSimHitCollection_PERS *pPersColl = TPConverter.createPersistent( transCont, mlog );
15
16 return pPersColl;
17}
18
20{
21 MsgStream mlog(msgSvc(), "AFP_SIDSimHitCollectionConverter" );
22
23 //GUID of persistence collection class (see selection.xml in AFP_EventTPCnv, class item AFP_SIDSimHitCollection_p1
24 static const pool::Guid p1_guid("AAA03560-D4CC-40C3-80D6-165448375201");
25
26 AFP_SIDSimHitCollectionCnv_p1 TPConverter_p1;
27 AFP_SIDSimHitCollection *pTransColl=nullptr;
28
29 if(this->compareClassGuid(p1_guid)){
30 std::unique_ptr<AFP_SIDSimHitCollection_p1> col_vect(this->poolReadObject<AFP_SIDSimHitCollection_p1>());
31 pTransColl=TPConverter_p1.createTransient(col_vect.get(), mlog);
32 }
33 else{
34 throw std::runtime_error("Unsupported persistent version of Data container");
35 }
36
37 return pTransColl;
38}
AFP_SIDSimHitCollection_p1 AFP_SIDSimHitCollection_PERS
T_AtlasHitsVectorCnv< AFP_SIDSimHitCollection, AFP_SIDSimHitCollection_p1, AFP_SIDSimHitCnv_p1 > AFP_SIDSimHitCollectionCnv_p1
AtlasHitsVector< AFP_SIDSimHit > AFP_SIDSimHitCollection
static const LVL1_ROICnv_p1 TPConverter
AFP_SIDSimHitCollection * createTransient()
AFP_SIDSimHitCollection_PERS * createPersistent(AFP_SIDSimHitCollection *transCont)
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)