ATLAS Offline Software
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 
10 static const ChamberT0sCnv_p1 TPconverter_p1;
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 }
ChamberT0sCnv.h
Muon::ChamberT0s
Stores links between chambers and the reconstructed T0.
Definition: ChamberT0s.h:17
ChamberT0sCnv::createTransient
virtual Muon::ChamberT0s * createTransient()
Definition: ChamberT0sCnv.cxx:20
ChamberT0sCnv::createPersistent
virtual ChamberT0s_PERS * createPersistent(Muon::ChamberT0s *transObj)
Definition: ChamberT0sCnv.cxx:12
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::ChamberT0s_p1
Definition: ChamberT0s_p1.h:13
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TPConverterConstBase::createPersistentConst
virtual PERS * createPersistentConst(const TRANS *transObj, MsgStream &log) const
ChamberT0sCnv_p1.h
ChamberT0s.h
ChamberT0s_p1.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TPConverterConstBase::createTransientConst
virtual TRANS * createTransientConst(const PERS *persObj, MsgStream &log) const
ChamberT0sCnv_p1
Definition: ChamberT0sCnv_p1.h:22