ATLAS Offline Software
Loading...
Searching...
No Matches
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
19
20
23
24
25template < >
26inline
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
#define endmsg
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 > TgcL1RdoContainerCnv
virtual bool compareClassGuid(const Guid &clid) const