ATLAS Offline Software
Loading...
Searching...
No Matches
TrigRNNOutputCnv.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#include "TrigRNNOutputCnv.h"
7
12
17
22
24{
25 MsgStream mlog(msgSvc(), "TrigRNNOutputConverter" );
26 mlog << MSG::DEBUG << "TrigRNNOutputCnv::createPersistent" << endmsg;
27
28 TrigRNNOutput_PERS *persObj = m_impl->m_TPConverter.createPersistent( transCont, mlog );
29
30 return persObj;
31}
32
33
35{
36 MsgStream mlog(msgSvc(), "TrigRNNOutputConverter" );
37 mlog << MSG::DEBUG << "TrigRNNOutputCnv::createTransient " << endmsg;
38
39 static const pool::Guid tlp1_guid("BA106EC3-F776-DE11-BCB3-000423DD5A1A");
40
41 TrigRNNOutput *trans_cont(0);
42
43 if (compareClassGuid(tlp1_guid)) {
44 mlog << MSG::DEBUG << "TrigRNNOutputCnv::reading tlp1 persistent object" << endmsg;
45 std::unique_ptr< TrigRNNOutput_tlp1 > col_vect( this->poolReadObject< TrigRNNOutput_tlp1 >() );
46 trans_cont = m_impl->m_TPConverter.createTransient( col_vect.get(), mlog );
47 } else {
48 throw std::runtime_error("Unsupported persistent version of Data container");
49 }
50 return trans_cont;
51
52}
#define endmsg
TrigRNNOutput_tlp1 TrigRNNOutput_PERS
virtual bool compareClassGuid(const Guid &clid) const
Compatibility for old converter classes that don't get passed the key.
TrigRNNOutputCnv(ISvcLocator *svcloc)
TrigRNNOutputCnv_impl * m_impl
TrigRNNOutput * createTransient()
TrigRNNOutput_PERS * createPersistent(TrigRNNOutput *transCont)
This class carries the output of the Neural Network of TrigMultiVarHypo.
TrigRNNOutputCnv_tlp1 m_TPConverter