ATLAS Offline Software
Loading...
Searching...
No Matches
ChamberT0sCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "ChamberT0sCnv.h"
9
11
13 using namespace Muon;
14 MsgStream log(msgSvc(), "MuonChamberT0sConverter" );
15 ChamberT0s_PERS *persObj = TPconverter_p1.createPersistentConst( transObj, log );
16// if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "ChamberT0s write Success" << endmsg;
17 return persObj;
18}
19
21 using namespace Muon;
22 static const pool::Guid p1_guid("67E3F1AE-6254-4B29-8D61-5F17D0C19BB2");
23 if( compareClassGuid(p1_guid) ) {
24 // using unique_ptr ensures deletion of the persistent object
25 std::unique_ptr< ChamberT0s_p1 > col_vect( poolReadObject< ChamberT0s_p1 >() );
26 MsgStream log(msgSvc(), "MuonChamberT0sConverter_p1" );
27 //log << MSG::DEBUG << "Reading ChamberT0s_p1" << endmsg;
28 return TPconverter_p1.createTransientConst( col_vect.get(), log );
29 }
30 throw std::runtime_error("Unsupported persistent version of ChamberT0s");
31}
Muon::ChamberT0s_p1 ChamberT0s_PERS
static const EventInfoCnv_p1 TPconverter_p1
virtual ChamberT0s_PERS * createPersistent(Muon::ChamberT0s *transObj)
virtual Muon::ChamberT0s * createTransient()
Stores links between chambers and the reconstructed T0.
Definition ChamberT0s.h:17
virtual bool compareClassGuid(const Guid &clid) const
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.