ATLAS Offline Software
Loading...
Searching...
No Matches
CscStripPrepDataContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include "GaudiKernel/StatusCode.h"
8#include "GaudiKernel/MsgStream.h"
11
13 CscStripPrepDataContainerCnvBase(svcloc, "CscStripPrepDataContainerCnv")
14{
15}
16
18
20 // Call base clase initialize
22
23 return StatusCode::SUCCESS;
24}
25
30
32 static const pool::Guid p0_guid("A41C9D99-F977-43B5-8DFC-819F057A9136"); // before t/p split
33 static const pool::Guid p1_guid("6075244C-C6BB-4E24-B711-E7E4ED0F7462"); // with CscStripPrepData_tlp1
34
35 Muon::CscStripPrepDataContainer* p_collection(nullptr);
36 if( compareClassGuid(p1_guid) ) {
37 std::unique_ptr< CscStripPrepDataContainer_PERS > p_coll( poolReadObject< CscStripPrepDataContainer_PERS >() );
38 p_collection = m_TPConverter.createTransient( p_coll.get(), msg() );
39 }
40
41 else if( compareClassGuid(p0_guid) ) {
42 throw std::runtime_error("Not currently supporting reading non TP-split PRDs");
43 }
44 else {
45 throw std::runtime_error("Unsupported persistent version of CscStripPrepDataContainer");
46
47 }
48 return p_collection;
49}
#define ATH_CHECK
Evaluate an expression and check for errors.
T_AthenaPoolCustomCnv< Muon::CscStripPrepDataContainer, CscStripPrepDataContainer_PERS > CscStripPrepDataContainerCnvBase
Muon::CscStripPrepDataContainer_tlp1 CscStripPrepDataContainer_PERS
virtual Muon::CscStripPrepDataContainer * createTransient()
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
virtual CscStripPrepDataContainer_PERS * createPersistent(Muon::CscStripPrepDataContainer *transCont)
CscStripPrepDataContainerCnv_tlp1 m_TPConverter
MuonPrepDataContainerT< CscStripPrepData > CscStripPrepDataContainer