ATLAS Offline Software
Loading...
Searching...
No Matches
MuCTPIL1TopoCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// Local include(s):
7#include "MuCTPIL1TopoCnv.h"
8
14
15 return m_converter.createPersistent( transObj, msg() );
16
17}
18
24
25 static const pool::Guid p1_guid( "BC2BAC47-504A-4A8A-89D9-2086B9038E18" );
26
27 if( this->compareClassGuid( p1_guid ) ) {
28 std::unique_ptr< MuCTPIL1Topo_p1 > pers_ref( this->poolReadObject< MuCTPIL1Topo_p1 >() );
29 return m_converter.createTransient( pers_ref.get(), msg() );
30
31 } else {
32 throw std::runtime_error( "Unsupported persistent version of MuCTPIL1Topo" );
33 return 0;
34 }
35}
MuCTPIL1Topo_p1 MuCTPIL1Topo_PERS
MuCTPI input class to the L1Topo simulation.
virtual LVL1::MuCTPIL1Topo * createTransient() override
Function reading a version of MuCTPIL1Topo from POOL and converting it to a transient MuCTPIL1Topo ob...
MuCTPIL1TopoCnv_p1 m_converter
virtual MuCTPIL1Topo_PERS * createPersistent(LVL1::MuCTPIL1Topo *transObj) override
Function creating a persistent MuCTPIL1Topo_PERS object from a transient MuCTPIL1Topo one.