ATLAS Offline Software
Loading...
Searching...
No Matches
SimulationHitCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
8
10{
11 MsgStream mlog(msgSvc(), "SimulationHitCollectionConverter" );
12
14 SimulationHitCollection_PERS *pPersColl = TPConverter.createPersistent( transCont, mlog );
15
16 return pPersColl;
17}
18
20{
21 MsgStream mlog(msgSvc(), "SimulationHitCollectionConverter" );
22
23 //GUID of persistence collection class (see selection.xml in ForwardRegion_EventTPCnv, class item SimulationHitCollection_p1
24 static const pool::Guid p1_guid("DD6CF87F-4D7E-4BF6-9FAC-156DB34C08C7");
25
26 SimulationHitCollectionCnv_p1 TPConverter_p1;
27 SimulationHitCollection *pTransColl=NULL;
28
29 if(this->compareClassGuid(p1_guid)){
30 std::unique_ptr<SimulationHitCollection_p1> col_vect(this->poolReadObject<SimulationHitCollection_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}
static const LVL1_ROICnv_p1 TPConverter
SimulationHitCollection_p1 SimulationHitCollection_PERS
T_AtlasHitsVectorCnv< SimulationHitCollection, SimulationHitCollection_p1, SimulationHitCnv_p1 > SimulationHitCollectionCnv_p1
AtlasHitsVector< SimulationHit > SimulationHitCollection
SimulationHitCollection * createTransient()
SimulationHitCollection_PERS * createPersistent(SimulationHitCollection *transCont)
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)