ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_LocRecODEvCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8
9
11 MsgStream mlog(msgSvc(), "ALFA_LocRecODEvCollectionConverter" );
13 ALFA_LocRecODEvCollection_PERS *persObj = TPConverter.createPersistent( transCont, mlog );
14 return persObj;
15}
16
17
19 MsgStream mlog(msgSvc(), "ALFA_LocRecODEvCollectionConverter" );
20
22
23 ALFA_LocRecODEvCollection *trans_cont(nullptr); // probably inicialization
24 static const pool::Guid p1_guid ("D6688847-9903-4FDE-B709-879B0E470073");
25
26 if( this->compareClassGuid(token, p1_guid)) {
27 std::unique_ptr< ALFA_LocRecODEvCollection_p1 > col_vect( this->poolReadObject< ALFA_LocRecODEvCollection_p1 >(token) );
28 trans_cont = TPConverter_p1.createTransient( col_vect.get(), mlog );
29 } else {
30 throw std::runtime_error("Unsupported persistent version of Data container");
31 }
32 return trans_cont;
33}
ALFA_LocRecODEvCollection_p1 ALFA_LocRecODEvCollection_PERS
static const LVL1_ROICnv_p1 TPConverter
ALFA_LocRecODEvCollection_PERS * createPersistent(ALFA_LocRecODEvCollection *transCont)
ALFA_LocRecODEvCollection * createTransient(const Token *token)
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21