ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_ODHitCollectionCnv.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
9
11 MsgStream mlog(msgSvc(), "ALFA_ODHitCollectionConverter" );
13 ALFA_ODHitCollection_PERS *persObj = TPConverter.createPersistent( transCont, mlog );
14 return persObj;
15}
16
17
19 MsgStream mlog(msgSvc(), "ALFA_ODHitCollectionConverter" );
20
21 ALFA_ODHitCollectionCnv_p1 TPConverter_p1;
22
23 ALFA_ODHitCollection *trans_cont(nullptr); // probably inicialization
24 static const pool::Guid p1_guid("11D7B0C9-54FF-44BF-A673-E9691004488B");
25
26 if( this->compareClassGuid(p1_guid)) {
27 std::unique_ptr< ALFA_ODHitCollection_p1 > col_vect( this->poolReadObject< ALFA_ODHitCollection_p1 >() );
28 trans_cont = TPConverter_p1.createTransient( col_vect.get(), mlog );
29 }
30// else if( m_token.find("CLID=35722E01-C4E3-420E-8A7E-E375C5E7989D") != std::string::npos) {
31 // old version from before TP separation, just return it
32// trans_cont = this->poolReadObject<ALFA_HitCollection>();
33// }
34 else {
35 throw std::runtime_error("Unsupported persistent version of Data container");
36 }
37 return trans_cont;
38}
ALFA_ODHitCollection_p1 ALFA_ODHitCollection_PERS
T_AtlasHitsVectorCnv< ALFA_ODHitCollection, ALFA_ODHitCollection_p1, ALFA_ODHitCnv_p1 > ALFA_ODHitCollectionCnv_p1
AtlasHitsVector< ALFA_ODHit > ALFA_ODHitCollection
static const LVL1_ROICnv_p1 TPConverter
ALFA_ODHitCollection * createTransient()
ALFA_ODHitCollection_PERS * createPersistent(ALFA_ODHitCollection *transCont)
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)