ATLAS Offline Software
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 
9 {
11 };
12 
13 TrigRNNOutputCnv::TrigRNNOutputCnv(ISvcLocator* svcloc) :
15  m_impl (new TrigRNNOutputCnv_impl)
16 {}
17 
19 {
20  delete m_impl;
21 }
22 
24 {
25  MsgStream mlog(msgSvc(), "TrigRNNOutputConverter" );
26  mlog << MSG::DEBUG << "TrigRNNOutputCnv::createPersistent" << endmsg;
27 
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 }
TrigRNNOutputCnv::m_impl
TrigRNNOutputCnv_impl * m_impl
Definition: TrigRNNOutputCnv.h:47
TrigRNNOutputCnv::createTransient
TrigRNNOutput * createTransient()
Definition: TrigRNNOutputCnv.cxx:34
TrigRNNOutputCnv_impl
Definition: TrigRNNOutputCnv.cxx:9
TrigRNNOutputCnv::TrigRNNOutputCnv
TrigRNNOutputCnv(ISvcLocator *svcloc)
Definition: TrigRNNOutputCnv.cxx:13
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigRNNOutputCnv.h
TopLevelTPConverter::createTransient
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
Definition: TopLevelTPConverter.h:62
TrigRNNOutputCnv_tlp1.h
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigRNNOutput_tlp1
Definition: TrigRNNOutput_tlp1.h:23
TrigRNNOutput
This class carries the output of the Neural Network of TrigMultiVarHypo.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigRNNOutput.h:21
TrigRNNOutputCnv::~TrigRNNOutputCnv
~TrigRNNOutputCnv()
Definition: TrigRNNOutputCnv.cxx:18
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigRNNOutputCnv_impl::m_TPConverter
TrigRNNOutputCnv_tlp1 m_TPConverter
Definition: TrigRNNOutputCnv.cxx:10
TrigRNNOutputCnv::createPersistent
TrigRNNOutput_PERS * createPersistent(TrigRNNOutput *transCont)
Definition: TrigRNNOutputCnv.cxx:23
TopLevelTPConverter::createPersistent
virtual TL_PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of transObj.
Definition: TopLevelTPConverter.h:110
T_AthenaPoolCustCnv< TrigRNNOutput, TrigRNNOutput_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigRNNOutputCnv_tlp1
Definition: TrigRNNOutputCnv_tlp1.h:25