ATLAS Offline Software
TgcL1RdoContainerCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONEVENTATHENAPOOL_TGCL1RDOCONTAINERCNV_H
6 #define MUONEVENTATHENAPOOL_TGCL1RDOCONTAINERCNV_H
7 
8 /*
9  custom POOL TP converter for TGC L1 trigger RDO
10  @author Toshi Sumida
11  CERN, May 2020
12 */
13 
14 
15 #include "MuonRdoContainerTPCnv.h"
19 
20 
23 
24 
25 template < >
26 inline
29 {
30  MsgStream log(msgSvc(), "TgcL1RdoContainerCnv" );
31  log << MSG::DEBUG << " **** Entered createTransient() "
32  << endmsg;
33 
34  // the use of auto pointers ensures that the persistent object is deleted
35  // using the correct persistent type pointer
36 
37  TgcL1RdoContainer *trans_cont = 0;
38  static const pool::Guid p1_guid("799C629C-ECA9-4963-9C84-A4AD7D775B24");
39 
40  if( compareClassGuid(p1_guid) ) {
41  std::unique_ptr< TgcL1RdoContainer_p1 > col_vect( this->poolReadObject<TgcL1RdoContainer_p1>() );
42  trans_cont = m_TPconverter.createTransient( col_vect.get(), log );
43  }
44  else {
45  throw std::runtime_error("Unsupported persistent version of TGC RDO container");
46  }
47  return trans_cont;
48 }
49 
50 
51 #endif
52 
53 
TgcL1RdoContainer
Definition: TgcL1RdoContainer.h:25
TgcL1RdoContainer.h
TgcL1RdoContainerCnv_p1.h
MuonRdoContainerTPCnv
Definition: MuonRdoContainerTPCnv.h:25
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TgcL1RdoContainerCnv
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 > TgcL1RdoContainerCnv
Definition: TgcL1RdoContainerCnv.h:22
MuonRdoContainerTPCnv.h
MuonRdoContainerTPCnv::createTransient
virtual T * createTransient()
Definition: CscRawDataContainerCnv.h:25
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonRdoContainerTPCnv::m_TPconverter
CONV m_TPconverter
convertor
Definition: MuonRdoContainerTPCnv.h:45
T_AthenaPoolCustCnv< T, P >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TgcL1RdoContainer_p1.h