ATLAS Offline Software
Loading...
Searching...
No Matches
TrigOperationalInfoCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5
8
17
18//create persistent
20{
21 MsgStream mlog(msgSvc(), "TrigOperationalInfoConverter" );
22
23 TrigOperationalInfo_PERS *persObj = m_TPConverter->createPersistent( transObj, mlog );
24
25 return persObj;
26}
27
28//createTransient
30{
31 MsgStream mlog(msgSvc(), "TrigOperationalInfoConverter" );
32
33 static const pool::Guid p1_guid("765F0281-801B-4F5C-8C4C-5BE7E7DB5E42");
34
35 TrigOperationalInfo *trans_obj(0);
36
37 if( compareClassGuid(p1_guid) ) {
38
39 std::unique_ptr< TrigOperationalInfo_p1 > col_vect( this->poolReadObject< TrigOperationalInfo_p1 >() );
40 trans_obj = m_TPConverter->createTransient( col_vect.get(), mlog );
41 } else {
42
43 throw std::runtime_error("Unsupported persistent version of Data container");
44 }
45
46 return trans_obj;
47
48}
49
TrigOperationalInfo_p1 TrigOperationalInfo_PERS
Compatibility for old converter classes that don't get passed the key.
TrigOperationalInfo_PERS * createPersistent(TrigOperationalInfo *transObj)
TrigOperationalInfoCnv_p1 * m_TPConverter
TrigOperationalInfo * createTransient()
TrigOperationalInfoCnv(ISvcLocator *svcloc)
This class defined generic object to store operational info available during triggering online i....