ATLAS Offline Software
Loading...
Searching...
No Matches
MaterialStepCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6// MaterialStepCollectionCnv.cxx, (c) ATLAS Detector software
8
10#include "GaudiKernel/MsgStream.h"
11
12
13//-----------------------------------------------------------------------------
14// Constructor
15//-----------------------------------------------------------------------------
16
21
24 const std::string& key)
25{
26 MsgStream log (m_msgSvc, "MaterialStepCollectionCnv:" + key);
27 return m_TPConverter.createPersistent( transCont, log );
28}
29
30
33{
34 MsgStream log (m_msgSvc, "MaterialStepCollectionCnv:" + key);
35
36 static const pool::Guid p1_guid( "DF8A7FA8-693F-44E0-A5E5-F9907B8B429E" );
37
38 Trk::MaterialStepCollection* tCollection = nullptr;
39 if( compareClassGuid( p1_guid ) ) {
40
41 std::unique_ptr< MaterialStepCollection_PERS > p_coll( poolReadObject< MaterialStepCollection_PERS >() );
42 tCollection = m_TPConverter.createTransient( p_coll.get(), log );
43 }
44
45 return tCollection;
46}
T_AthenaPoolCustomCnvWithKey< Trk::MaterialStepCollection, MaterialStepCollection_PERS > MaterialStepCollectionCnvBase
Trk::MaterialStepCollection_p1 MaterialStepCollection_PERS
virtual Trk::MaterialStepCollection * createTransientWithKey(const std::string &key) override
method to be implemented by the developer.
MaterialStepCollectionCnv_p1 m_TPConverter
MaterialStepCollectionCnv(ISvcLocator *svcloc)
IMessageSvc * m_msgSvc
MsgStream svc.
virtual MaterialStepCollection_PERS * createPersistentWithKey(Trk::MaterialStepCollection *transCont, const std::string &key) override
method to be implemented by the developer.
DataVector< Trk::MaterialStep > MaterialStepCollection